Page MenuHome

GPU Cycle Viewport Preview Render crash with some data after 2020-12-10
Closed, ResolvedPublic

Description

System Information
Operating system: Window 10 Pro
Graphics card: NVidia GTX 1080

Blender Version
Broken: 2.92 Alpha 2020-12-12 18:07 and latest
Worked: 2.92 Alpha 2020-12-10 21:48 and before

I know the description of the issue looks to be a bit unprecise, and I've spend sometime to try to understand and isolate the cricumstances of the crash that happend 100% on my working scene.
On a specific scene, whenever I tried to make a GPU preview render in the viewport, Blender crashes instantaniously after 2020-12-10 build. The same scene works perfectly on previous version. The render preview works properly on other scene with the newest build. The regular render works well on all blender version. I was not able to spot what data in my scene could cause the crash (trying to hide or delete object one by one).

So I've retried launching blender_factory_startup.cmd without any improvement. Here are the Crash Logs:



I've also spend some time to check the comitted files beetween the 12-10 and 12-12, and I have seen one commit that looks to be related to the render preview. Maybe these changes came with a side effect. But if I'm mistaken, my appologies to Julian Eisel :)
@Julian Eisel (Severin)
UI/Assets: Operator to load custom preview images for data-blocks
812ea9184221a8ca5785528bebc3ef342a8ecfb4

I hope that with with these information you wil be able to find something, but if you don't I could send you the problematic .blend file, But I would rather send it to you in PM.

Thanks,

Laurent

Event Timeline

Julian Eisel (Severin) changed the task status from Needs Triage to Needs Information from User.EditedJan 19 2021, 12:42 AM

rB812ea9184221 doesn't affect any code path that runs during the renders. So I doubt this is the issue. Looking at the crash log, it looks more like a Cycles issue.
It will be difficult to work on this without a way to recreate it. Have you tried if it still crashes with most objects removed? Maybe you could share the file here then?

Also, does the crash happen only for Cycles?

This appears to be an issue with Cycles that may have already been fixed.

  • Are you using OptiX in the system preferences?
  • Do you have both the GPU and CPU enabled in the preferences?
  • Is the device in the render properties set to GPU or CPU (presumably GPU based on your description)?
  • Are you using OptiX denoising for the viewport and/or render?
  • Have you checked if the problem still occurs in a current daily build?

Thanks For your anwser @Julian Eisel (Severin) and @Robert Guetzkow (rjg) !

I have tested a few things and I really don't know what to say, I'm affraid you will never be able to reproduce the issue on your side and I will understand if it is getting a bit hard to follow.

to aswer your questions :

  • Are you using OptiX in the system preferences? --> Using CUDA
  • Do you have both the GPU and CPU enabled in the preferences? --> Yes there is no crash when using CPU Only
  • Is the device in the render properties set to GPU or CPU (presumably GPU based on your description)? --> Yes GPU, same here, no crash when using CPU
  • Are you using OptiX denoising for the viewport and/or render? --> Yes Denoising on both
  • Have you checked if the problem still occurs in a current daily build? -->Just checked but the the repro is not exactly the same. More details below :

To be able to share a blend file to you, I wanted to pack all image in blend file for simplicity, but as I'm using UDIM texturing on my asset and blender doesn't support packing UDIM texture into blend file I had to break the UDIM texture and assign as many material as texture tile I have.

I have even created a 4 scenes variants to be sure, here is the result

Original ( UDIM + external textures )packed Scene ( no UDIM )Unpacked Scene ( No UDIM )Original Scene ( UDIM + External texture relinked to the unpacked Textures )
2.92a 12-11-2020Works on Render + PreviewWorks on Render + PreviewWorks on Render + PreviewWorks on Render + Preview
2.92a 12-12-2020Works on Render not in PreviewWorks on Render not in PreviewWorks on Render not in PreviewWorks on Render + Preview but crash when I move the camera during preview
2.93a 01-17-2021Works on Render not in PreviewWorks on Render + PreviewWorks on Render + PreviewWorks on Render + Preview but crash when I move the camera during preview

It is really hard for me to know why the crash circumstances changes so mutch. Here is the scene with all the data packed ( because it is the most easy to share). I hope you will be able to spot something that I didn't spot.

https://we.tl/t-j0YqfJXcAf

Thanks in advance for your help,

Hi !

I've made other tests, and the preview doesn't crash with my scene when disabling Optix Denoiser or switching to OpenImageDenoising.
But optix denoising works properly on an empty scene.

I hope you will be able to have a look

Thanks

Robert Guetzkow (rjg) changed the task status from Needs Information from User to Needs Triage.Jan 26 2021, 10:19 AM
Robert Guetzkow (rjg) changed the task status from Needs Triage to Needs Information from User.Jan 26 2021, 2:07 PM

@Laurent Boucher (tilapiatsu) Since the files in your file are packed, how are the exact steps to get to a case where it is supposed to crash? Do I need to unpack and then recreate UDIM tiles?

Hi @Robert Guetzkow (rjg)

Thanks for taking the time to look at it. Yes indeed the case where it more frequently crashes is the one with unpacked and UDIM texture. I was not sure what was the most practical thing for you to recieve, because if I have sent you that, you might need to relink texture after.

Please let me know if you prefer me to send you another .blend file with UDIM + unpacked texture if you don't want to loose more time reproducing the crash.

Best

Robert Guetzkow (rjg) changed the task status from Needs Information from User to Needs Triage.Jan 28 2021, 3:11 PM

@Laurent Boucher (tilapiatsu) Based on the stack trace and settings this may have been the same issue as T83925. Could you please check if a current daily build still crashes or if the crash stops happening in the version you've reported the bug for if you disable OptiX denoising?

Robert Guetzkow (rjg) changed the task status from Needs Triage to Needs Information from User.Jan 29 2021, 3:52 PM

Hi @Robert Guetzkow (rjg) !

Many thanks, I've retried with the last daily build, and it is now working perfectly in viewport preview and render with Optix denoising ON !

You made my day :)

Robert Guetzkow (rjg) closed this task as Resolved.Jan 30 2021, 9:36 AM
Robert Guetzkow (rjg) claimed this task.