Loading a scene file from 2.79 that isn't set to use Cycles or Eevee falls back to Eevee and can yield a crash for larger scenes #67594

Closed
opened 4 years ago by phil.stopford · 19 comments

System Information
Operating system: Windows 10 Pro x64
Graphics card: GTX 1060 6 GB

Blender Version
Broken: 2.80 RC2
Worked: (optional)

Short description of error

If the user tries to load a scene into Blender 2.80 that expects a renderer that is not available in 2.80 (e.g. V-ray), the render engine in 2.80 is set to Eevee during the scene load. For larger scenes, this can yield a crash. The user has no opportunity to change the render engine to Cycles, so cannot avoid the crash.

The fallback to Eevee happens even if the default scene configuration is for Cycles in 2.80 - which seems like an oversight.

Exact steps for others to reproduce the error

Attached scene was created in blender 2.79 and set for V-ray use.
Load into 2.80; render engine is set to Eevee during load (even if the default scene is set to use Cycles)

**System Information** Operating system: Windows 10 Pro x64 Graphics card: GTX 1060 6 GB **Blender Version** Broken: 2.80 RC2 Worked: (optional) **Short description of error** If the user tries to load a scene into Blender 2.80 that expects a renderer that is not available in 2.80 (e.g. V-ray), the render engine in 2.80 is set to Eevee during the scene load. For larger scenes, this can yield a crash. The user has no opportunity to change the render engine to Cycles, so cannot avoid the crash. The fallback to Eevee happens even if the default scene configuration is for Cycles in 2.80 - which seems like an oversight. **Exact steps for others to reproduce the error** Attached scene was created in blender 2.79 and set for V-ray use. Load into 2.80; render engine is set to Eevee during load (even if the default scene is set to use Cycles)
Poster

Added subscriber: @phil.stopford

Added subscriber: @phil.stopford
Poster
[not_cycles_or_ev.blend](https://archive.blender.org/developer/F7626730/not_cycles_or_ev.blend)

Added subscriber: @GavinScott

Added subscriber: @GavinScott

2.79 fails to find Vray and falls back to the default of Blender Internal, and 2.80 falls back to the default of Eevee.

I don't think it's a bug that Blender fails to use the currently active renderer setting if the incoming one is invalid. One could make a case that it might be better to do so of course, but that would be more of an enhancement request (IMHO).

You can always Open it with the "Load UI" option unchecked, and it will come up with the default (usually Solid) viewport mode which ought to be sufficient to prevent overloading Eevee before you have a chance to change the render settings.

2.79 fails to find Vray and falls back to the default of Blender Internal, and 2.80 falls back to the default of Eevee. I don't think it's a bug that Blender fails to use the currently active renderer setting if the incoming one is invalid. One could make a case that it might be better to do so of course, but that would be more of an enhancement request (IMHO). You can always Open it with the "Load UI" option unchecked, and it will come up with the default (usually Solid) viewport mode which ought to be sufficient to prevent overloading Eevee before you have a chance to change the render settings.
Poster

The issue with Eevee, from the point of view of large scenes, is that it might simply fail due to the scene complexity, and it's unfortunate that its failure crashes the whole of blender. Falling back to something that isn't intimately tied with the GPU (where resources might well be constrained) seems like a safer strategy.

The issue with Eevee, from the point of view of large scenes, is that it might simply fail due to the scene complexity, and it's unfortunate that its failure crashes the whole of blender. Falling back to something that isn't intimately tied with the GPU (where resources might well be constrained) seems like a safer strategy.

But do you have a case where Blender is going to crash before you get a chance to simply switch it from Eevee to Cycles? Cycles vs. Eevee should only matter in 3dview Rendered mode (which AFAIK Blender will never have enabled when you load a .blend) or when performing an actual render.

The choice to use Eevee as the ultimate default here seems harmless to me.

But do you have a case where Blender is going to crash before you get a chance to simply switch it from Eevee to Cycles? Cycles vs. Eevee should only matter in 3dview Rendered mode (which AFAIK Blender will never have enabled when you load a .blend) or when performing an actual render. The choice to use Eevee as the ultimate default here seems harmless to me.
Poster

I do, but the scene is too large to make a practical reproduction case for the bug tracker. I had complaints for 'too large to be useful' before, so don't want to make that mistake again. The UI is blocked as Eevee is attempting to compile shaders, and I have no way to abort either that process or to change the renderer. The viewport is configured to whatever the fallback is in this case; I'm not actively requesting a render or a render preview in the viewport, and as the UI is blocked, it's impossible to change anyway.

Loading without the UI makes a big difference, but it's not immediately clear that this is associated and could be easily overlooked, resulting in a bad user experience.

I do, but the scene is too large to make a practical reproduction case for the bug tracker. I had complaints for 'too large to be useful' before, so don't want to make that mistake again. The UI is blocked as Eevee is attempting to compile shaders, and I have no way to abort either that process or to change the renderer. The viewport is configured to whatever the fallback is in this case; I'm not actively requesting a render or a render preview in the viewport, and as the UI is blocked, it's impossible to change anyway. Loading without the UI makes a big difference, but it's not immediately clear that this is associated and could be easily overlooked, resulting in a bad user experience.

Is the file loading in LookDev mode, or what mode is it trying to display in that sends it down the Eevee shader compiling rabbit hole?

Is the file loading in LookDev mode, or what mode is it trying to display in that sends it down the Eevee shader compiling rabbit hole?
Poster

No idea - screenshot attached, in case useful. This is during the load; shortly after this, blender just exits silently to desktop 280_screen1.PNG

No idea - screenshot attached, in case useful. This is during the load; shortly after this, blender just exits silently to desktop ![280_screen1.PNG](https://archive.blender.org/developer/F7626837/280_screen1.PNG)

Added subscriber: @dark999

Added subscriber: @dark999

I have no problems, no errors or other things about Linux Blender 2.80-b63f0266a056 (2019-07-23) AMD FX8350, 16GB DDR3, GTX690 2 + 2 GB VRam- driver Nvidia 430.34, only one error for missing VRay engine

IMO an alternative solution to open the old very populated file is to disable the LoadUI option when opening the file, this makes Blender use the Shader Workbench engine instead of vray, instead of internal blender, instead of eevee

I have no problems, no errors or other things about Linux Blender 2.80-b63f0266a056 (2019-07-23) AMD FX8350, 16GB DDR3, GTX690 2 + 2 GB VRam- driver Nvidia 430.34, only one error for missing VRay engine IMO an alternative solution to open the old very populated file is to disable the LoadUI option when opening the file, this makes Blender use the Shader Workbench engine instead of vray, instead of internal blender, instead of eevee
Poster

@dark999 : the test scene attached is small and focussed purely on illustrating the fallback to Eevee rather than Cycles. You won't see any errors from it (or at least should not do). For my larger scenes that were built in 2.79 (often with side-by-side configuration for Cycles and V-ray), loading those set for V-ray will fall back to Eevee in 2.80 rather than Cycles, and Eevee can't handle the amount of data (it seems).

It would be better to fall back to Workbench or Cycles, or allow for the configuration of what to fall back to.

@dark999 : the test scene attached is small and focussed purely on illustrating the fallback to Eevee rather than Cycles. You won't see any errors from it (or at least should not do). For my larger scenes that were built in 2.79 (often with side-by-side configuration for Cycles and V-ray), loading those set for V-ray will fall back to Eevee in 2.80 rather than Cycles, and Eevee can't handle the amount of data (it seems). It would be better to fall back to Workbench or Cycles, or allow for the configuration of what to fall back to.
brecht commented 4 years ago
Owner

Added subscriber: @brecht

Added subscriber: @brecht
brecht commented 4 years ago
Owner

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
brecht closed this issue 4 years ago
brecht self-assigned this 4 years ago
brecht commented 4 years ago
Owner

We will keep Eevee as the default render engine and fallback. Even with Cycles selected there is LookDev mode, and a scene that renders in another engine has no guarantee of working in Workbench or Cycles either.

We will keep Eevee as the default render engine and fallback. Even with Cycles selected there is LookDev mode, and a scene that renders in another engine has no guarantee of working in Workbench or Cycles either.
Poster

That overlooks the issue of Eevee crashing, though, which is my primary concern here and why I reported the issue. Silently crashing without any guidance to help the user seems like a bad thing. There's zero reason for the user to try 'load UI' when faced with a crash like this. Could the Eevee crash be caught and Workbench invoked as a basic level 'try not to die' mode?

I haven't even gotten as far as trying to render - this is purely about loading an existing scene, and in my production scenes there is a fully valid Cycles setup ready to go - it's just that the scene at load is looking for V-ray as the default render engine, and then jumps to Eevee without trying Cycles at all. Prompting that V-ray isn't available and asking for a render engine might be helpful, for example.

That overlooks the issue of Eevee crashing, though, which is my primary concern here and why I reported the issue. Silently crashing without any guidance to help the user seems like a bad thing. There's zero reason for the user to try 'load UI' when faced with a crash like this. Could the Eevee crash be caught and Workbench invoked as a basic level 'try not to die' mode? I haven't even gotten as far as trying to render - this is purely about loading an existing scene, and in my production scenes there is a fully valid Cycles setup ready to go - it's just that the scene at load is looking for V-ray as the default render engine, and then jumps to Eevee without trying Cycles at all. Prompting that V-ray isn't available and asking for a render engine might be helpful, for example.

i tried to give you a trick to mitigate eevee's fallback for large scene

In #67594#733867, @dark999 wrote:
disable the LoadUI option when opening the file

it work?

i tried to give you a trick to mitigate eevee's fallback for large scene > In #67594#733867, @dark999 wrote: > disable the LoadUI option when opening the file it work?
Poster

In #67594#734256, @dark999 wrote:
i tried to give you a trick to mitigate eevee's fallback for large scene

In #67594#733867, @dark999 wrote:
disable the LoadUI option when opening the file

it work?

That works, thanks. I thought I mentioned that already (https://developer.blender.org/T67594#733836). However, it's not terribly discoverable and the name doesn't really link it to the root cause (Eevee failing).

> In #67594#734256, @dark999 wrote: > i tried to give you a trick to mitigate eevee's fallback for large scene > >> In #67594#733867, @dark999 wrote: >> disable the LoadUI option when opening the file > > it work? That works, thanks. I thought I mentioned that already (https://developer.blender.org/T67594#733836). However, it's not terribly discoverable and the name doesn't really link it to the root cause (Eevee failing).

I think there are quite a few opportunities to improve Eevee's interaction and progress communication and I'm sure the 2.8x series will get there. For now, this issue seems like one that has workarounds that are acceptable for the 2.80 final release. But thanks for your report and your passion for making Blender better!

I think there are quite a few opportunities to improve Eevee's interaction and progress communication and I'm sure the 2.8x series will get there. For now, this issue seems like one that has workarounds that are acceptable for the 2.80 final release. But thanks for your report and your passion for making Blender better!
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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
4 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#67594
Loading…
There is no content yet.