Memoryblock errors when working with materials (linux/amd) #86166

Closed
opened 2021-03-01 20:35:38 +01:00 by Develon · 17 comments

System Information
Operating system: Linux-5.11.2-arch1-1-x86_64-with-arch 64 Bits
Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.40.0, 5.11.2-arch1-1, LLVM 13.0.0) AMD 4.6 (Core Profile) Mesa 21.1.0-devel (git-f67259d83b)

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: Same version, but it stopped working for some reason. Maybe a system update.

Short description of error
When working on object materials, Blender will eventually crash with Memoryblock errors. (Logs below.)

Exact steps for others to reproduce the error

  1. Open blender and select "General" under "New File"
  2. Switch the viewport display mode to "Material Preview" mode.
  3. Switch to edit mode and highlight all faces
  4. [UV Unwrap Faces] > [Reset]
  5. Open the default material in the shader editor.
  6. Add an image texture node and set the interpolition to "Closest".
  7. Load a 16x16 minecraft image texture. (Any of them.)
  8. Add a MixRGB node, set the mode to "Multiply", set the factor to 1, plug in the image data from before into "Color1", and set "Color2" to anything.
  9. Plug the output of MixRGB into Principled BSDF's Base Color.
  10. Add a new material and assign it to one of the cube's sides.
  11. Repeat steps 6-10 and mess around with Color2 until the program crashes with a Segmentation fault.

Logs
blender.crash.txt
Terminal Output.txt
system-info.txt

Final
If you want a .blend file that's close to crashing, let me know. It may be easier than recreating the scene each time.

**System Information** Operating system: Linux-5.11.2-arch1-1-x86_64-with-arch 64 Bits Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.40.0, 5.11.2-arch1-1, LLVM 13.0.0) AMD 4.6 (Core Profile) Mesa 21.1.0-devel (git-f67259d83b) **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: Same version, but it stopped working for some reason. Maybe a system update. **Short description of error** When working on object materials, Blender will eventually crash with Memoryblock errors. (Logs below.) **Exact steps for others to reproduce the error** 1. Open blender and select "General" under "New File" 2. Switch the viewport display mode to "Material Preview" mode. 3. Switch to edit mode and highlight all faces 4. [UV Unwrap Faces] > [Reset] 5. Open the default material in the shader editor. 6. Add an image texture node and set the interpolition to "Closest". 7. Load a 16x16 minecraft image texture. (Any of them.) 8. Add a MixRGB node, set the mode to "Multiply", set the factor to 1, plug in the image data from before into "Color1", and set "Color2" to anything. 9. Plug the output of MixRGB into Principled BSDF's Base Color. 10. Add a new material and assign it to one of the cube's sides. 11. Repeat steps 6-10 and mess around with Color2 until the program crashes with a Segmentation fault. **Logs** [blender.crash.txt](https://archive.blender.org/developer/F9857585/blender.crash.txt) [Terminal Output.txt](https://archive.blender.org/developer/F9857589/Terminal_Output.txt) [system-info.txt](https://archive.blender.org/developer/F9857590/system-info.txt) **Final** If you want a .blend file that's close to crashing, let me know. It may be easier than recreating the scene each time.
Author

Added subscriber: @Develon5543

Added subscriber: @Develon5543
Author

Hello again. I tried this experiment again after uninstalling OpenCL on my system. I think the results are a bit different, so it might be worthwhile to check on it. Also, my system-info.txt was incomplete due to a different crash, so I'll reupload that as well. All I did this time was add an image texture and mixrgb node to all 6 sides of a cube. (Each side had a new material, so 6 materials total. Also this was done while the viewport was in material preview mode)
blender.crash.txt
Terminal Output.txt
system-info.txt

Hello again. I tried this experiment again after uninstalling OpenCL on my system. I think the results are a bit different, so it might be worthwhile to check on it. Also, my system-info.txt was incomplete due to a different crash, so I'll reupload that as well. All I did this time was add an image texture and mixrgb node to all 6 sides of a cube. (Each side had a new material, so 6 materials total. Also this was done while the viewport was in material preview mode) [blender.crash.txt](https://archive.blender.org/developer/F9871257/blender.crash.txt) [Terminal Output.txt](https://archive.blender.org/developer/F9871259/Terminal_Output.txt) [system-info.txt](https://archive.blender.org/developer/F9871261/system-info.txt)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Yes, please provide your example .blend file with the steps that need to be taken after opening that file to get it to crash, thx!

Yes, please provide your example .blend file with the steps that need to be taken after opening that file to get it to crash, thx!
Author

Hi, thanks for your response. I'm going to attach a zip file with the .blend file inside of it. It also includes image assets that were created by me in order to demonstrate the type of work I was doing while making crashes.
To reproduce crashes:

  1. Open the project and make sure the viewport is showing shaders.
  2. Go to the material slots for the cube and delete "Sides Overgrown."
  3. Use Ctrl + Z to undo this action.
  4. Repeat steps 2 and 3 to cause a floating point exception or segmentation fault.

I noticed that it says "Compiling shaders..." on the bottom of the screen before Blender crashes. So it seems to be the case that shader compilation causes weird crashes here.
Crash.zip

Hi, thanks for your response. I'm going to attach a zip file with the .blend file inside of it. It also includes image assets that were created by me in order to demonstrate the type of work I was doing while making crashes. To reproduce crashes: 1. Open the project and make sure the viewport is showing shaders. 2. Go to the material slots for the cube and delete "Sides Overgrown." 3. Use Ctrl + Z to undo this action. 4. Repeat steps 2 and 3 to cause a floating point exception or segmentation fault. I noticed that it says "Compiling shaders..." on the bottom of the screen before Blender crashes. So it seems to be the case that shader compilation causes weird crashes here. [Crash.zip](https://archive.blender.org/developer/F9900023/Crash.zip)
Author

Hello. Just a quick update. I installed amdgpu pro drivers and it made the crash stop happening. All I have to do is start blender with progl in front of it. (ex: progl ./blender) This indicates an issue with the open source version of opengl.. I can mostly confirm this by noting that it was working correctly on a previous version of mesa. This could indicate a driver regression and is not fixable by blender itself. I'm not sure where this issue will go now. Perhaps it would be better off reported in mesa..

Hello. Just a quick update. I installed amdgpu pro drivers and it made the crash stop happening. All I have to do is start blender with `progl` in front of it. (ex: `progl ./blender`) This indicates an issue with the open source version of opengl.. I can mostly confirm this by noting that it was working correctly on a previous version of mesa. This could indicate a driver regression and is not fixable by blender itself. I'm not sure where this issue will go now. Perhaps it would be better off reported in mesa..
Member

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I tested the file but nothing abnormal here.


System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001

I tested the file but nothing abnormal here. --- **System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001
Author

It's likely that this issue only occurs on Linux while using the open source amd drivers. (AMDGPU not AMDGPU Pro.) Thank you for the windows testing though.

It's likely that this issue only occurs on Linux while using the open source amd drivers. (AMDGPU not AMDGPU Pro.) Thank you for the windows testing though.
Member

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

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

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Since this has been lying around for some time:

@Jeroen-Bakker: you've got the same card on linux afaict, are you using the open source drivers? Can reproduce?

Since this has been lying around for some time: - is this still an issue with updated blender builds and/or updated GPU drivers? https://builder.blender.org/download/daily/ @Jeroen-Bakker: you've got the same card on linux afaict, are you using the open source drivers? Can reproduce?
Author

Hello again. I downloaded the 3.0.0 alpha from the website and messed around with the shaders again for an extended period of time. I didn't experience any crashing this time. I'll provide my system information below:

OS: Archlinux (Linux 5.14.7-arch1-1 #1 SMP PREEMPT Wed, 22 Sep 2021 21:35:11 +0000 x86_64 GNU/Linux)
renderer: 'AMD Radeon RX 5700 XT (NAVI10, DRM 3.42.0, 5.14.7-arch1-1, LLVM 14.0.0)'
vendor: 'AMD'
version: '4.6 (Core Profile) Mesa 21.3.0-devel (git-db99462de6)'

Let me know if you need anything else.

Hello again. I downloaded the 3.0.0 alpha from the website and messed around with the shaders again for an extended period of time. I didn't experience any crashing this time. I'll provide my system information below: OS: Archlinux (Linux 5.14.7-arch1-1 #1 SMP PREEMPT Wed, 22 Sep 2021 21:35:11 +0000 x86_64 GNU/Linux) renderer: 'AMD Radeon RX 5700 XT (NAVI10, DRM 3.42.0, 5.14.7-arch1-1, LLVM 14.0.0)' vendor: 'AMD' version: '4.6 (Core Profile) Mesa 21.3.0-devel (git-db99462de6)' Let me know if you need anything else.

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

Changed status from 'Needs User Info' to: 'Resolved'
Germano Cavalcante self-assigned this 2021-10-05 16:35:30 +02:00

In #86166#1225924, @Develon5543 wrote:
I didn't experience any crashing this time.

Good to know :)
Many bugs are fixed between the official releases. It is quite possible that the problem has been fixed.
Closing as resolved then.

> In #86166#1225924, @Develon5543 wrote: > I didn't experience any crashing this time. Good to know :) Many bugs are fixed between the official releases. It is quite possible that the problem has been fixed. Closing as resolved then.
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
4 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#86166
No description provided.