GPU Cycle Viewport Preview Render crash with some data after 2020-12-10 #84844

Closed
opened 2021-01-18 23:39:00 +01:00 by Laurent Boucher · 16 comments

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).

BlenderBug.mp4

So I've retried launching blender_factory_startup.cmd without any improvement. Here are the Crash Logs:
blender_debug_output.txt
blender_system_info.txt
FRED_Insect_01_fixingFur.crash.txt

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 :)
@JulianEisel
UI/Assets: Operator to load custom preview images for data-blocks
812ea91842

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

**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). [BlenderBug.mp4](https://archive.blender.org/developer/F9586473/BlenderBug.mp4) So I've retried launching blender_factory_startup.cmd without any improvement. Here are the Crash Logs: [blender_debug_output.txt](https://archive.blender.org/developer/F9586224/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F9586225/blender_system_info.txt) [FRED_Insect_01_fixingFur.crash.txt](https://archive.blender.org/developer/F9586226/FRED_Insect_01_fixingFur.crash.txt) 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 :) @JulianEisel 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

Added subscribers: @JulianEisel, @Tilapiatsu

Added subscribers: @JulianEisel, @Tilapiatsu
Member

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

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

812ea91842 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?

812ea91842 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?

Added subscriber: @rjg

Added subscriber: @rjg

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 ?
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 ](https://builder.blender.org/download/)?

Thanks For your anwser @JulianEisel and @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-2020 Works on Render + Preview Works on Render + Preview Works on Render + Preview Works on Render + Preview
2.92a 12-12-2020 Works on Render not in Preview Works on Render not in Preview Works on Render not in Preview Works on Render + Preview but crash when I move the camera during preview
2.93a 01-17-2021 Works on Render not in Preview Works on Render + Preview Works on Render + Preview Works 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,

Thanks For your anwser @JulianEisel and @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-2020| Works on Render + Preview | Works on Render + Preview | Works on Render + Preview| Works on Render + Preview | |2.92a 12-12-2020| Works on Render not in Preview| Works on Render not in Preview | Works on Render not in Preview | Works on Render + Preview but crash when I move the camera during preview| |2.93a 01-17-2021| Works on Render not in Preview| Works on Render + Preview | Works on Render + Preview | Works 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

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

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

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

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

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

@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?

@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 @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

Hi @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

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

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

@Tilapiatsu Based on the stack trace and settings this may have been the same issue as #83925. 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?

@Tilapiatsu Based on the stack trace and settings this may have been the same issue as #83925. 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?

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

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

Hi @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 :)

Hi @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 :)

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

Changed status from 'Needs User Info' to: 'Resolved'
Robert Guetzkow self-assigned this 2021-01-30 09:36:55 +01:00
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#84844
No description provided.