Page MenuHome

Regression: Hang when saving project in material preview mode
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-11 Pro,Amd Ryzen 7 3700x,32GB RAM,(Asus TUF Plus Gaming)
Graphics card: NVIDIA GeForce GTX 1070 8GB

Blender Version
Broken: 3.2, 3.3
Working: 3.1
Caused by rB9c82c00b3280: GPUMaterial: Rework the deferred compilation to not use double locks

Short description of error
Freeze when saving project in material preview mode

Exact steps for others to reproduce the error

  • Open provided .blend file
  • switch to edit mode and viewport shading to material preview
  • make any change in scene
  • Save the file (freeze)


Event Timeline

[Blender 3.2.0 RC - is hanging,when saving project in secondary material preview viewport (2022) bug]

Szymon Warunek (szymi) updated the task description. (Show Details)
Szymon Warunek (szymi) updated the task description. (Show Details)
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.Jun 6 2022, 7:53 AM

Thanks for the report. I can confirm. This looks like a regression.
Will start bisecting.
Could you help in simplifying the file? (I'll also to this)

Pratik Borhade (PratikPB2123) renamed this task from Blender 3.2.0 RC - is hanging,when saving project in secondary material viewport shading (2022) bug to Regression: Hang when saving project in material preview mode.Jun 6 2022, 7:57 AM
Pratik Borhade (PratikPB2123) updated the task description. (Show Details)

So this happens only because some materials are invalid and their GPUPass is reused. The first material to be compiled fail but the subsequent ones are kept in a GPU_MAT_QUEUED state. Making them fail early fixes the issue but I am not sure if that doesn't hide an issue with the deferred compilation.

This is a simpler file to reproduce the issue:

I can reproduce the material being kept in queued state in 3.1 so the only change is that it is now blocking the file saving.