Crash after few minutes of rendering

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Crash after few minutes of rendering

Post by lighting_freak »

Hi,

I don't know how to specify this crash, that why I'm starting this thread without doing an error report on github.

This scene crashes in the middle of rendering process.
It crashes in "luxcoreui" as well as in Blender plug-in.

This is the error code from blender console from loading the *.blend file to the crash:

Code: Select all

Read prefs: C:\Users\Martin\AppData\Roaming\Blender Foundation\Blender\2.79\conf
ig\userpref.blend
found bundled python: C:\Users\Martin\Downloads\blender-2.79a-rc-windows64\2.79\
python
pyluxcore version: 2.0alpha3
Read blend: C:\Users\Martin\Desktop\OSRAM - LTRB GFSF\Blend\OSRAM-MULTILED_LTRB_
GFSF.blend
init
exporter init
exporter init
create_session
[SDL][8.627] Camera type: perspective
[SDL][8.627] Camera position: Point[-0.00594154, -0.00715509, 0.00723269]
[SDL][8.627] Camera target: Point[-0.00541348, -0.00651918, 0.00666986]
[SDL][8.627] Camera clipping plane disabled
converting lamp: Himmel
[SDL][8.877] Texture definition: 137066872fresnel_helper
[SDL][8.877] Volume definition: 276403448
[SDL][8.877] Material definition: Surface_Silikonverguss_138791416
[SDL][8.877] Material definition: Surface_Anschlusse_138782104
[SDL][8.892] Material definition: Surface_Gehause_138788312
[SDL][8.892] Material definition: Surface_Emitter_Blau_138783656
[SDL][8.892] Material definition: Surface_Emitter_Grun_138785208
[SDL][8.892] Material definition: Surface_Emitter_Rot_138786760
[SDL][8.908] Material definition: Surface_PCB_138789864
[SDL][8.908] The Mesh_180210__Chips_137419096002 object is a light sources with
2 triangles
[SDL][8.908] The Mesh_180210__Chips_137419096003 object is a light sources with
2 triangles
[SDL][8.923] The Mesh_180210__Chips_137419096001 object is a light sources with
2 triangles
[SDL][8.923] Scene objects count: 9
[SDL][8.923] Light definition: Lamp_Himmel_137426376
[LuxCore][8.939] Configuration:
[LuxCore][8.939]   light.maxdepth = 16
[LuxCore][8.939]   film.width = 1920
[LuxCore][8.955]   path.maxdepth = 16
[LuxCore][8.955]   sampler.type = "METROPOLIS"
[LuxCore][8.955]   renderengine.seed = 1
[LuxCore][8.955]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][8.955]   film.filter.width = 3.2999999523162842
[LuxCore][8.955]   renderengine.type = "BIDIRCPU"
[LuxCore][8.970]   path.forceblackbackground.enable = 0
[LuxCore][8.970]   film.height = 1080
[LuxCore][8.970]   film.outputs.0.filename = "image.png"
[LuxCore][8.970]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][8.970]   film.imagepipeline.1.prescale = 1
[LuxCore][8.986]   film.imagepipeline.1.burn = 6
[LuxCore][8.986]   film.imagepipeline.0.type = "NOP"
[LuxCore][8.986]   film.imagepipeline.1.type = "TONEMAP_REINHARD02"
[LuxCore][8.986]   film.imagepipeline.1.postscale = 1
Export took 0.4s
[LuxCore][9.048] Film resolution: 1920x1080
[SDL][9.048] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][9.048] Image pipeline: film.imagepipeline
[SDL][9.048] Image pipeline step 0: NOP
[SDL][9.048] Image pipeline step 1: TONEMAP_REINHARD02
[SDL][9.048] Film output definition: RGB_IMAGEPIPELINE [image.png]
[LuxRays][9.064] OpenCL Platform 0: Intel(R) Corporation
[LuxRays][9.064] OpenCL Platform 1: NVIDIA Corporation
[LuxRays][9.064] OpenCL Platform 2: Intel(R) Corporation
[LuxRays][9.079] Device 0 name: NativeThread
[LuxRays][9.079] Device 0 type: NATIVE_THREAD
[LuxRays][9.079] Device 0 compute units: 1
[LuxRays][9.095] Device 0 preferred float vector width: 4
[LuxRays][9.095] Device 0 max allocable memory: 0MBytes
[LuxRays][9.095] Device 0 max allocable memory block size: 0MBytes
[LuxRays][9.095] Device 1 name:       Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
[LuxRays][9.095] Device 1 type: OPENCL_CPU
[LuxRays][9.111] Device 1 compute units: 4
[LuxRays][9.111] Device 1 preferred float vector width: 4
[LuxRays][9.111] Device 1 max allocable memory: 16265MBytes
[LuxRays][9.111] Device 1 max allocable memory block size: 4066MBytes
[LuxRays][9.126] Device 2 name: Quadro 2000M
[LuxRays][9.126] Device 2 type: OPENCL_GPU
[LuxRays][9.126] Device 2 compute units: 4
[LuxRays][9.126] Device 2 preferred float vector width: 1
[LuxRays][9.126] Device 2 max allocable memory: 2048MBytes
[LuxRays][9.126] Device 2 max allocable memory block size: 512MBytes
[LuxRays][9.142] Device 3 name:       Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
[LuxRays][9.142] Device 3 type: OPENCL_CPU
[LuxRays][9.142] Device 3 compute units: 4
[LuxRays][9.142] Device 3 preferred float vector width: 8
[LuxRays][9.142] Device 3 max allocable memory: 16265MBytes
[LuxRays][9.157] Device 3 max allocable memory block size: 4066MBytes
[LuxRays][9.157] Preprocessing DataSet
[LuxRays][9.157] Total vertex count: 32090
[LuxRays][9.157] Total triangle count: 62232
[LuxRays][9.157] Preprocessing DataSet done
[LuxRays][9.173] Creating 4 intersection device(s)
[LuxRays][9.173] Allocating intersection device 0: NativeThread (Type = NATIVE_T
HREAD)
[LuxRays][9.173] Allocating intersection device 1: NativeThread (Type = NATIVE_T
HREAD)
[LuxRays][9.173] Allocating intersection device 2: NativeThread (Type = NATIVE_T
HREAD)
[LuxRays][9.189] Allocating intersection device 3: NativeThread (Type = NATIVE_T
HREAD)
[LuxRays][9.189] Adding DataSet accelerator: EMBREE
[LuxRays][9.204] Total vertex count: 32090
[LuxRays][9.204] Total triangle count: 62232
[LuxRays][9.220] EmbreeAccel build time: 16ms
[LuxCore][9.220] Configuring 4 CPU render threads
Session created in 0.2s
[LuxCore][10.109] Film OpenCL image pipeline
[LuxCore][10.109] Film OpenCL Device used: Quadro 2000M Intersect
[LuxCore][10.109]   Device OpenCL version: OpenCL 1.1 CUDA
[LuxRays][10.156] [Device Quadro 2000M Intersect] IMAGEPIPELINE buffer size: 243
00Kbytes
[LuxRays][10.171] [Device Quadro 2000M Intersect] FRAMEBUFFER_MASK buffer size:
8100Kbytes
[LuxRays][10.187] [Device Quadro 2000M Intersect] Merge buffer buffer size: 3240
0Kbytes
[LuxCore][10.187] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KER
NEL -D SLG_OPENCL_KERNEL
[LuxCore][10.187] [MergeSampleBuffersOCL] Compiling kernels
[LuxCore][10.203] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][10.203] [MergeSampleBuffersOCL] Compiling Film_ClearMergeBuffer Kernel

[LuxCore][10.203] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL
_NORMALIZED Kernel
[LuxCore][10.218] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREE
N_NORMALIZED Kernel
[LuxCore][10.218] [MergeSampleBuffersOCL] Compiling Film_NotOverlappedScreenBuff
erUpdate Kernel
[LuxCore][10.218] [MergeSampleBuffersOCL] Kernels compilation time: 30ms
[LuxRays][10.312] [Device Quadro 2000M Intersect] Accumulation buffer buffer siz
e: 189Kbytes
[LuxCore][10.312] [Reinhard02ToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL
-D SLG_OPENCL_KERNEL
[LuxCore][10.312] [Reinhard02ToneMap] Compiling kernels
[LuxCore][10.327] [Reinhard02ToneMap] Kernels cached
[LuxCore][10.327] [Reinhard02ToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][10.327] [Reinhard02ToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][10.327] [Reinhard02ToneMap] Compiling Reinhard02ToneMap_Apply Kernel
[LuxCore][10.343] [Reinhard02ToneMap] Kernels compilation time: 30ms
Recommended clamp value: 47679375148.22426
Error: EXCEPTION_ACCESS_VIOLATION
This is the file that crashes:
OSRAM-MULTILED_LTRB_GFSF.blend
(4.51 MiB) Downloaded 279 times
I hope this could be reproduced and solved.

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash after few minutes of rendering

Post by Dade »

That "Recommended clamp value" is very wrong, it looks like uninitialized memory, going to check.
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash after few minutes of rendering

Post by lighting_freak »

Hi,

just saw that I forgot to update from alpha 3.0 to alpha 4.0.
Now there is no crash in Blender anymore, but rendering stops with that error message.

Code: Select all

module 'BlendLuxCore.utils.render' has no attribute 'find_optimal_clamp_value'
I think your first idea points into right direction.

Might be a hard render situation watching directly into a tiny light source (very high luminance values are expected).

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Crash after few minutes of rendering

Post by B.Y.O.B. »

Try to remove the BlendLuxCore addon folder completely and then re-installing it.
It looks like you have some outdated python files in there.
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash after few minutes of rendering

Post by lighting_freak »

Hi,

I followed your request and removed files and complete folders.
It didn't help:

Code: Select all

[LuxRays][10.624] [Device Quadro 2000M Intersect] Accumulation buffer buffer siz
e: 189Kbytes
[LuxCore][10.624] [Reinhard02ToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL
-D SLG_OPENCL_KERNEL
[LuxCore][10.639] [Reinhard02ToneMap] Compiling kernels
[LuxCore][10.639] [Reinhard02ToneMap] Kernels cached
[LuxCore][10.639] [Reinhard02ToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][10.639] [Reinhard02ToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][10.655] [Reinhard02ToneMap] Compiling Reinhard02ToneMap_Apply Kernel
[LuxCore][10.655] [Reinhard02ToneMap] Kernels compilation time: 30ms
Recommended clamp value: 7124326017.123795
Error: EXCEPTION_ACCESS_VIOLATION
Sorry.

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Crash after few minutes of rendering

Post by B.Y.O.B. »

It looks to me like it helped because the error "module 'BlendLuxCore.utils.render' has no attribute 'find_optimal_clamp_value" is gone and the clamp value is computed again.
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash after few minutes of rendering

Post by lighting_freak »

Well, OK...
The message has disappeared and now it's crashing again... :)

I played a bit around with the scene of the LED. The crash is definetly related to the surface emitters that I put on the chip surfaces.
If those were disabled the scene renders without any issues (test to 800 samples).
OSRAM - MULTILED LTRB GFSF.jpg
Well but thats not the purpose of the scene.
Good luck.

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash after few minutes of rendering

Post by Dade »

lighting_freak wrote: Sun Feb 11, 2018 7:09 pm I played a bit around with the scene of the LED. The crash is definetly related to the surface emitters that I put on the chip surfaces.
If those were disabled the scene renders without any issues (test to 800 samples).
I have tried to replicate the problem with your scene on Linux and Windows, in Blender and with LuxCoreUI however it doesn't crash here.

How does it crash for you ? Does it always happen ? At start or during the rendering ?

I'm running a 600 samples/pixel rendering in LuxCoreUi but, so far, no crash.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash after few minutes of rendering

Post by Dade »

I think the reason why it doesn't crash for me is because it is a bug I have already fixed in the latest sources (viewtopic.php?f=4&t=87#p1475), can you try to replace your pyluxcore.pyd with the one attached to this message and check if it still crashes ?
Attachments
pyluxcore.pyd.zip
(3.38 MiB) Downloaded 245 times
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash after few minutes of rendering

Post by lighting_freak »

Hi,

I ran it over night. 2200 samples without error.
I guess is working now. Thank you.

Is there any difference between the pyluxcore you send me and the one that is integrated in BlendLuxCore alpha 4.0 package that is on the download site?

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
Post Reply