Material Preview Not Generating MacOS #99555

Closed
opened 2022-07-08 22:51:43 +02:00 by John Dunnigan · 12 comments

System Information
Operating system: macOS-12.4-x86_64-i386-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: a2d59b2dac

Short description of error
Material Preview will not generate, shows pinkish/purple object. Render, Solid and Wireframe generate properly.

Exact steps for others to reproduce the error
Possibly having 8 or more textures{F13275398} on an object will create this problem.

**System Information** Operating system: macOS-12.4-x86_64-i386-64bit 64 Bits Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3 **Blender Version** Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: `a2d59b2dac` **Short description of error** Material Preview will not generate, shows pinkish/purple object. Render, Solid and Wireframe generate properly. **Exact steps for others to reproduce the error** Possibly having 8 or more textures{[F13275398](https://archive.blender.org/developer/F13275398/Screen_Shot_2022-07-08_at_4.50.21_PM.png)} on an object will create this problem.
Author

Added subscriber: @JohnPD

Added subscriber: @JohnPD
Author

Screen Shot 2022-07-08 at 4.50.21 PM.png

![Screen Shot 2022-07-08 at 4.50.21 PM.png](https://archive.blender.org/developer/F13275434/Screen_Shot_2022-07-08_at_4.50.21_PM.png)
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report. It is possible that you've exceeded the limit of texture image units.
Did you get any error in console? {nav Window > Toggle System Console}
Please also upload your .blend file

Hi, thanks for the report. It is possible that you've exceeded the limit of texture image units. Did you get any error in console? {nav Window > Toggle System Console} Please also upload your .blend file
Author

Scene1.blend

I've uploaded the .blend file above... And thank you for your quick response... There is no "Toggle System Console" choice under "Window" for MacOS... From what I've been able to learn, and please forgive me because I'm a novice with Blender, I may have indeed exceeded the texture limit for a single M1 chip (others have mentioned something like this). However, the M1 Max has 2 M1 chips, so I thought this may be something that those who have been optimizing Blender for MacOS might be working on.

[Scene1.blend](https://archive.blender.org/developer/F13279349/Scene1.blend) I've uploaded the .blend file above... And thank you for your quick response... There is no "Toggle System Console" choice under "Window" for MacOS... From what I've been able to learn, and please forgive me because I'm a novice with Blender, I may have indeed exceeded the texture limit for a single M1 chip (others have mentioned something like this). However, the M1 Max has 2 M1 chips, so I thought this may be something that those who have been optimizing Blender for MacOS might be working on.
Member

Thanks. textures are missing in your file. Can you pack and reupload the file with them?
To pack textures, follow: {nav File > external data > Pack Resources} then save the file.
I added random textures in place of empty texture slots but the preview generates after that (no magenta color).

Thanks. textures are missing in your file. Can you pack and reupload the file with them? To pack textures, follow: {nav File > external data > Pack Resources} then save the file. I added random textures in place of empty texture slots but the preview generates after that (no magenta color).
Author

Thanks, Pratik. I believe I've provided what you need below. Also, I can provide you with screen shots of others explaining the issue from the Blender course I'm currently taking if that would help. All the people having issues are on a Mac with the M1 chip. Those using Windows computers are having no issues.
Scene2.blend

Thanks, Pratik. I believe I've provided what you need below. Also, I can provide you with screen shots of others explaining the issue from the Blender course I'm currently taking if that would help. All the people having issues are on a Mac with the M1 chip. Those using Windows computers are having no issues. [Scene2.blend](https://archive.blender.org/developer/F13289551/Scene2.blend)
Member

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Member

@mano-wii, can you check in your M1?

@mano-wii, can you check in your M1?

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

This is a hardware limitation as described in the ERROR message in the prompt:

ERROR (gpu.shader): GPU_material_compile Linking: 
      | Error: Implementation limit of 16 active fragment shader samplers (e.g., maximum number of supported image units) exceeded, fragment shader uses 17 samplers

The problem here is that the shader is too complex and uses more textures than GPU + OpenGL supports.
It is possible that the number of supported images will be higher when other rendering APIs (like Metal) are implemented.
But hardware limitations like these are not considered bugs.

Try to reduce the number of textures used in the same material.

This is a hardware limitation as described in the ERROR message in the prompt: ``` ERROR (gpu.shader): GPU_material_compile Linking: | Error: Implementation limit of 16 active fragment shader samplers (e.g., maximum number of supported image units) exceeded, fragment shader uses 17 samplers ``` The problem here is that the shader is too complex and uses more textures than GPU + OpenGL supports. It is possible that the number of supported images will be higher when other rendering APIs (like Metal) are implemented. But hardware limitations like these are not considered bugs. Try to reduce the number of textures used in the same material.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#99555
No description provided.