Page 1 of 1

Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 4:19 pm
by juangea
Full crash in this scene... and it's nearly empty... what's happening?

The scene it's attached, it comes from a production scene that keeps crashing, and I don't understand the problem, so I cannot render the scene, which is a big problem, I have to deliver the render :)

I cleaned up the scene as much as I could... in fact there is not a single object there, just open the scene, hit F12 and... crash

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 7:21 pm
by neo2068
The scene crashes because you are using the environment light cache. If you disable it, it renders. I have to check, why the crash happens.

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 7:24 pm
by Racleborg
If just a default cube with Disney shader is added, then it works okay for me.

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 7:32 pm
by neo2068
Racleborg wrote:
Sun Jan 19, 2020 7:24 pm
If just a default cube with Disney shader is added, then it works okay for me.
Yes, the problem seems to be that the scene is completly empty and env. light cache is enabled. It tries to build the cache but it is emty. If you look into the console output there is warning.

Code: Select all

[LuxRays][62.781] Total triangle count: 0
[LuxRays][62.781] Empty BVH
[LuxCore][63.703] EnvLightVisibilityCache evaluating best radius
[LuxCore][63.844] EnvLightVisibilityCache best cache radius: 0.15
[LuxCore][63.844] SceneVisibility trace thread count: 12
[LuxCore][64.078] SceneVisibility total entries: 0
[LuxCore][64.078] EnvLightVisibilityCache building cache entries: 0
[LuxCore][64.078] WARNING: EnvLightVisibilityCache has an empty cache
[LuxCore][64.187] [PathOCLRenderEngine] OpenCL task count: 262144
[LuxCore][64.187] [PathOCLBaseRenderEngine] OpenCL max. page memory size: 8363020Kbytes
[LuxCore][64.187] Compile Geometry
[LuxCore][64.203] Scene geometry compilation time: 0ms
[LuxCore][64.203] Compile 1 Textures
[LuxCore][64.219] Textures compilation time: 0ms
[LuxCore][64.219] Compile 1 Materials
[LuxCore][64.219] Material compilation time: 0ms
[LuxCore][64.219] Compile Lights
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFB64388300
Module  : F:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\BlendLuxCore\bin\pyluxcore.pyd

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 9:42 pm
by Dade
This is very empty scene:

Code: Select all

[...]
[LuxRays][62.781] Total triangle count: 0
[...]

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Sun Jan 19, 2020 9:58 pm
by juangea
Ok, then that's not the crash I was tracing, because I had that crash with objects in the scene, I'll try to reproduce the crash again with some object and upload again tomorrow, thanks :)

Anyways, this crash should not be happening, right?

What is weird is that the crash only happens under OpenCL, not under CPU.

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Mon Jan 20, 2020 12:08 am
by B.Y.O.B.
IMO the automated tests should contain corner case scenes like this empty one, with all caches enabled.

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Mon Jan 20, 2020 8:40 am
by lacilaci
juangea wrote:
Sun Jan 19, 2020 9:58 pm
Ok, then that's not the crash I was tracing, because I had that crash with objects in the scene, I'll try to reproduce the crash again with some object and upload again tomorrow, thanks :)

Anyways, this crash should not be happening, right?

What is weird is that the crash only happens under OpenCL, not under CPU.
By the way, do note, that even if it worked this env. cache can even hurt performance.
In a semi open, or mostly open scene like studio for a product and a hdri, etc...

So only use it in a case where you have opening in a room and need to get environment light in there... I personally don't ever use it cause it's a nest of problems, nothing else... It's basically a corner case when it does what it needs to....

Re: Full crash in this scene... and it's nearly empty... what's happening?

Posted: Mon Jan 20, 2020 9:17 am
by juangea
Oh yes, the original scene was an interior scene, I see a proper decent speed up with it enabled, but I see also some crashes, so I’ll try to provide crashy blend files with it to nail down the problems :)