Immediate Crash on GPU, on latest build

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.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Immediate Crash on GPU, on latest build

Post by FarbigeWelt »

On my machine the scene attached crashes immediatly after hitting F12, without the chance to copy log text from console window.
Other scenes run well on the same buld, downloaded and installed today [(1) luxcorerender-latest-win64-opencl, (2) BlendLuxCore-master].
The scene attached runs well on CPU BiDir and CPU Path but as written not on GPU Path (openCL).

Blender Crash on GPU_.zip
Blender Crash on GPU
(177.54 KiB) Downloaded 129 times
In the code part below are the logs of the two successful render starts (CPU BiDir Metropolis, CPU Path Sobol).
Anay ideas what it is wrong with this scene.
As one can see, after dowload and opening with blender, the scene is, besides the emitting object, as simple as it can be.

Code: Select all

Read prefs: C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.79\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender\2.79\python
pyluxcore version: 2.2alpha1
cmolcore imported with success! v1.01
Updating OpenCL device list
Read blend: T:\_Render Art\_Scenes\Blender Crash on GPU_.blend
==================================================
[Engine/Final] Rendering layer "RenderLayer"
[Exporter] Creating session
[SDL][202.484] Camera type: orthographic
[SDL][202.484] Camera position: Point[0.195649, -18.1203, 0.167139]
[SDL][202.484] Camera target: Point[0.195649, -17.1203, 0.167139]
[SDL][202.484] Camera clipping plane disabled
[SDL][202.484] Texture definition: 1770116184920IOR
[SDL][202.484] Volume definition: 1770095911064
[SDL][202.484] Volume definition: 1770095913848
[SDL][202.484] Material definition: Surface_Matte__Default__Emission_1769730622776
[SDL][202.484] Material definition: Surface_Matte__Default__Dense_1770115158104
[SDL][202.484] Material definition: Surface_Glossy__Dense__Orange_1770110791304
[SDL][202.484] The Mesh_Circle_1770112336952000 object is a light sources with 32 triangles
[SDL][202.484] Scene objects count: 7
[SDL][202.484] Light definition: Lamp_Point_1770107988168
[LuxCore][202.484] Configuration:
[LuxCore][202.500]   light.maxdepth = 10
[LuxCore][202.516]   path.maxdepth = 10
[LuxCore][202.516]   sampler.sobol.adaptive.strength = 0.94999998807907104
[LuxCore][202.516]   sampler.random.adaptive.strength = 0.94999998807907104
[LuxCore][202.516]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][202.516]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][202.516]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][202.516]   renderengine.type = "BIDIRCPU"
[LuxCore][202.516]   film.filter.type = "NONE"
[LuxCore][202.516]   film.width = 1080
[LuxCore][202.516]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][202.516]   sampler.type = "METROPOLIS"
[LuxCore][202.516]   lightstrategy.type = "LOG_POWER"
[LuxCore][202.516]   film.filter.width = 1.5
[LuxCore][202.516]   scene.epsilon.max = 0.10000000149011612
[LuxCore][202.516]   film.height = 1080
[LuxCore][202.516]   film.opencl.enable = 1
[LuxCore][202.516]   film.opencl.device = 0
[LuxCore][202.516]   path.forceblackbackground.enable = 0
[LuxCore][202.516]   renderengine.seed = 1
[LuxCore][202.516]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][202.516]   film.outputs.0.index = 0
[LuxCore][202.516]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][202.531]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][202.531]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][202.531]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][202.531]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][202.531]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][202.531]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][202.531]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][202.531]   batch.halttime = 0
[LuxCore][202.531]   batch.haltthreshold = 0.0001
[LuxCore][202.531]   batch.haltspp = 750
[LuxCore][202.531]   batch.haltthreshold.stoprendering.enable = 0
[LuxCore][202.531] File Name Resolver Configuration:
Export took 0.1 s
[LuxCore][202.531] Film resolution: 1080x1080
[SDL][202.531] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][202.531] Image pipeline: film.imagepipelines.0
[SDL][202.531] Image pipeline step 0: NOP
[SDL][202.531] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][202.531] Image pipeline step 2: TONEMAP_LINEAR
[SDL][202.531] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][202.531] OpenCL Platform 0: Advanced Micro Devices, Inc.
[LuxRays][202.531] Device 0 name: NativeThread
[LuxRays][202.531] Device 0 type: NATIVE_THREAD
[LuxRays][202.531] Device 0 compute units: 1
[LuxRays][202.531] Device 0 preferred float vector width: 4
[LuxRays][202.531] Device 0 max allocable memory: 0MBytes
[LuxRays][202.547] Device 0 max allocable memory block size: 0MBytes
[LuxRays][202.547] Device 1 name: Hawaii
[LuxRays][202.547] Device 1 type: OPENCL_GPU
[LuxRays][202.547] Device 1 compute units: 40
[LuxRays][202.547] Device 1 preferred float vector width: 1
[LuxRays][202.547] Device 1 max allocable memory: 8192MBytes
[LuxRays][202.547] Device 1 max allocable memory block size: 4048MBytes
[LuxRays][202.547] Device 2 name: Hawaii
[LuxRays][202.547] Device 2 type: OPENCL_GPU
[LuxRays][202.547] Device 2 compute units: 40
[LuxRays][202.547] Device 2 preferred float vector width: 1
[LuxRays][202.547] Device 2 max allocable memory: 4096MBytes
[LuxRays][202.547] Device 2 max allocable memory block size: 3264MBytes
[LuxRays][202.547] Creating 8 intersection device(s)
[LuxRays][202.547] Allocating intersection device 0: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 1: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 2: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 3: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 4: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 5: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 6: NativeThread (Type = NATIVE_THREAD)
[LuxRays][202.547] Allocating intersection device 7: NativeThread (Type = NATIVE_THREAD)
[LuxCore][202.547] Configuring 8 CPU render threads
[LuxRays][202.547] Preprocessing DataSet
[LuxRays][202.547] Total vertex count: 2202
[LuxRays][202.547] Total triangle count: 4060
[LuxRays][202.547] Preprocessing DataSet done
[LuxRays][202.547] Adding DataSet accelerator: EMBREE
[LuxRays][202.547] Total vertex count: 2202
[LuxRays][202.547] Total triangle count: 4060
[LuxRays][202.563] EmbreeAccel build time: 15ms
[LuxCore][202.594] Film OpenCL image pipeline
[LuxCore][202.594] Film OpenCL Device used: Hawaii Intersect
[LuxCore][202.594]   Device OpenCL version: OpenCL 2.0 AMD-APP (2766.5)
[LuxRays][203.109] [Device Hawaii Intersect] IMAGEPIPELINE buffer size: 13668Kbytes
[LuxRays][203.125] [Device Hawaii Intersect] Merge buffer size: 18225Kbytes
[LuxCore][203.125] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][203.125] [MergeSampleBuffersOCL] Compiling kernels
[LuxCore][203.125] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][203.125] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][203.141] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][203.141] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][203.141] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][203.141] [MergeSampleBuffersOCL] Kernels compilation time: 15ms
[LuxRays][203.266] [Device Hawaii Intersect] Accumulation buffer size: 106Kbytes
[LuxCore][203.266] [AutoLinearToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][203.266] [AutoLinearToneMap] Compiling kernels
[LuxCore][203.266] [AutoLinearToneMap] Kernels cached
[LuxCore][203.266] [AutoLinearToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][203.266] [AutoLinearToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][203.266] [AutoLinearToneMap] Compiling AutoLinearToneMap_Apply Kernel
[LuxCore][203.266] [AutoLinearToneMap] Kernels compilation time: 0ms
[LuxCore][203.266] [LinearToneMap] Defined symbols:
[LuxCore][203.266] [LinearToneMap] Compiling kernels
[LuxCore][203.266] [LinearToneMap] Kernels cached
[LuxCore][203.266] [LinearToneMap] Compiling LinearToneMap_Apply Kernel
[LuxCore][203.266] [LinearToneMap] Kernels compilation time: 0ms
Session started in 0.8 s
Recommended clamp value: 3.0348515630046258
[LuxCore][230.828] [Hawaii Intersect] Memory used for OpenCL image pipeline: 36352Kbytes
==================================================
[Engine/Final] Rendering layer "RenderLayer"
[Exporter] Creating session
[SDL][243.375] Camera type: orthographic
[SDL][243.375] Camera position: Point[0.195649, -18.1203, 0.167139]
[SDL][243.375] Camera target: Point[0.195649, -17.1203, 0.167139]
[SDL][243.375] Camera clipping plane disabled
[SDL][243.391] Texture definition: 1770116184920IOR
[SDL][243.422] Volume definition: 1770095911064
[SDL][243.422] Volume definition: 1770095913848
[SDL][243.422] Material definition: Surface_Matte__Default__Emission_1769730622776
[SDL][243.422] Material definition: Surface_Matte__Default__Dense_1770115158104
[SDL][243.422] Material definition: Surface_Glossy__Dense__Orange_1770110791304
[SDL][243.422] The Mesh_Circle_1770112336952000 object is a light sources with 32 triangles
[SDL][243.422] Scene objects count: 7
[SDL][243.422] Light definition: Lamp_Point_1770107988168
[LuxCore][243.422] Configuration:
[LuxCore][243.422]   path.pathdepth.total = 9
[LuxCore][243.422]   path.pathdepth.diffuse = 7
[LuxCore][243.422]   path.pathdepth.glossy = 7
[LuxCore][243.422]   path.pathdepth.specular = 8
[LuxCore][243.422]   sampler.sobol.adaptive.strength = 0.94999998807907104
[LuxCore][243.422]   sampler.random.adaptive.strength = 0.94999998807907104
[LuxCore][243.422]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][243.422]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][243.422]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][243.422]   renderengine.type = "PATHCPU"
[LuxCore][243.422]   film.filter.type = "NONE"
[LuxCore][243.422]   film.width = 1080
[LuxCore][243.422]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][243.422]   sampler.type = "SOBOL"
[LuxCore][243.422]   lightstrategy.type = "LOG_POWER"
[LuxCore][243.422]   film.filter.width = 1.5
[LuxCore][243.422]   scene.epsilon.max = 0.10000000149011612
[LuxCore][243.422]   film.height = 1080
[LuxCore][243.438]   film.opencl.enable = 1
[LuxCore][243.438]   film.opencl.device = 0
[LuxCore][243.438]   path.forceblackbackground.enable = 0
[LuxCore][243.438]   renderengine.seed = 1
[LuxCore][243.438]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][243.438]   film.outputs.0.index = 0
[LuxCore][243.438]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][243.438]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][243.438]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][243.438]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][243.438]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][243.438]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][243.438]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][243.438]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][243.438]   batch.halttime = 0
[LuxCore][243.438]   batch.haltthreshold = 0.0001
[LuxCore][243.438]   batch.haltspp = 750
[LuxCore][243.438]   batch.haltthreshold.stoprendering.enable = 0
[LuxCore][243.438] File Name Resolver Configuration:
Export took 0.1 s
[LuxCore][243.438] Film resolution: 1080x1080
[SDL][243.438] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][243.438] Image pipeline: film.imagepipelines.0
[SDL][243.438] Image pipeline step 0: NOP
[SDL][243.438] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][243.438] Image pipeline step 2: TONEMAP_LINEAR
[SDL][243.438] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][243.438] OpenCL Platform 0: Advanced Micro Devices, Inc.
[LuxRays][243.438] Device 0 name: NativeThread
[LuxRays][243.438] Device 0 type: NATIVE_THREAD
[LuxRays][243.438] Device 0 compute units: 1
[LuxRays][243.438] Device 0 preferred float vector width: 4
[LuxRays][243.453] Device 0 max allocable memory: 0MBytes
[LuxRays][243.453] Device 0 max allocable memory block size: 0MBytes
[LuxRays][243.453] Device 1 name: Hawaii
[LuxRays][243.453] Device 1 type: OPENCL_GPU
[LuxRays][243.453] Device 1 compute units: 40
[LuxRays][243.453] Device 1 preferred float vector width: 1
[LuxRays][243.453] Device 1 max allocable memory: 8192MBytes
[LuxRays][243.453] Device 1 max allocable memory block size: 4048MBytes
[LuxRays][243.453] Device 2 name: Hawaii
[LuxRays][243.453] Device 2 type: OPENCL_GPU
[LuxRays][243.453] Device 2 compute units: 40
[LuxRays][243.453] Device 2 preferred float vector width: 1
[LuxRays][243.453] Device 2 max allocable memory: 4096MBytes
[LuxRays][243.453] Device 2 max allocable memory block size: 3264MBytes
[LuxRays][243.453] Creating 8 intersection device(s)
[LuxRays][243.453] Allocating intersection device 0: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 1: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 2: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 3: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 4: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 5: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 6: NativeThread (Type = NATIVE_THREAD)
[LuxRays][243.453] Allocating intersection device 7: NativeThread (Type = NATIVE_THREAD)
[LuxCore][243.453] Configuring 8 CPU render threads
[LuxRays][243.453] Preprocessing DataSet
[LuxRays][243.453] Total vertex count: 2202
[LuxRays][243.453] Total triangle count: 4060
[LuxRays][243.453] Preprocessing DataSet done
[LuxRays][243.453] Adding DataSet accelerator: EMBREE
[LuxRays][243.453] Total vertex count: 2202
[LuxRays][243.453] Total triangle count: 4060
[LuxRays][243.469] EmbreeAccel build time: 16ms
[LuxCore][243.516] Film OpenCL image pipeline
[LuxCore][243.516] Film OpenCL Device used: Hawaii Intersect
[LuxCore][243.516]   Device OpenCL version: OpenCL 2.0 AMD-APP (2766.5)
[LuxRays][243.594] [Device Hawaii Intersect] IMAGEPIPELINE buffer size: 13668Kbytes
[LuxRays][243.609] [Device Hawaii Intersect] Merge buffer size: 18225Kbytes
[LuxCore][243.609] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][243.609] [MergeSampleBuffersOCL] Compiling kernels
[LuxCore][243.609] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][243.609] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][243.609] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][243.609] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][243.609] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][243.641] [MergeSampleBuffersOCL] Kernels compilation time: 31ms
[LuxRays][243.719] [Device Hawaii Intersect] Accumulation buffer size: 106Kbytes
[LuxCore][243.719] [AutoLinearToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][243.719] [AutoLinearToneMap] Compiling kernels
[LuxCore][243.719] [AutoLinearToneMap] Kernels cached
[LuxCore][243.719] [AutoLinearToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][243.719] [AutoLinearToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][243.719] [AutoLinearToneMap] Compiling AutoLinearToneMap_Apply Kernel
[LuxCore][243.719] [AutoLinearToneMap] Kernels compilation time: 0ms
[LuxCore][243.719] [LinearToneMap] Defined symbols:
[LuxCore][243.719] [LinearToneMap] Compiling kernels
[LuxCore][243.719] [LinearToneMap] Kernels cached
[LuxCore][243.719] [LinearToneMap] Compiling LinearToneMap_Apply Kernel
[LuxCore][243.719] [LinearToneMap] Kernels compilation time: 0ms
Session started in 0.3 s
Recommended clamp value: 0.684984388136739
[LuxCore][260.734] [Hawaii Intersect] Memory used for OpenCL image pipeline: 36352Kbytes
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Immediate Crash on GPU, on latest build

Post by B.Y.O.B. »

The scene renders fine on OpenCL CPU device here, so it seems like it's not a bug in LuxCore. Might be a bug in the OpenCL driver. You could try to update your graphics driver.
FarbigeWelt wrote: Mon Apr 22, 2019 1:15 pm the scene attached crashes immediatly after hitting F12, without the chance to copy log text from console window.
You can circumvent this by starting Blender from cmd.exe. But most of the time the error message is just some generic "EXCEPTION_ACCESS_VIOLATION", which could be anything.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Immediate Crash on GPU, on latest build

Post by FarbigeWelt »

B.Y.O.B. wrote: Mon Apr 22, 2019 1:38 pm The scene renders fine on OpenCL CPU device here, so it seems like it's not a bug in LuxCore. Might be a bug in the OpenCL driver. You could try to update your graphics driver.

You can circumvent this by starting Blender from cmd.exe. But most of the time the error message is just some generic "EXCEPTION_ACCESS_VIOLATION", which could be anything.
I do not see what this error of a trivial scene like that in my first post's attachment should have to do with the openCL driver.
As said much more complex scenes run most of the time flawless but with rare crashes, not frequent and not reproducible.

That is a good idea, I forgot to run Blender like that. Now, I can post the log before the crash.

The simple scene crashes perfectly reproducible with
LLVM ERROR:
Brig container validation has failed in BRIGAsmPrinter.cpp :?:

Short version

Code: Select all

[LuxCore][11.766] [PathOCLBaseRenderThread::0] Compiling kernels
Error in hsa_code section, at offset 7168:
Instruction has invalid memory scope (none), expected one of: agent, system, wave, wg
LLVM ERROR:
 Brig container validation has failed in BRIGAsmPrinter.cpp

AL lib: (EE) alc_cleanup: 1 device not closed
Whole version

Code: Select all

Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Michael>C:\Users\Michael\Desktop\blender.lnk
Read prefs: C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.79\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender\2.79\python
pyluxcore version: 2.2alpha1
cmolcore imported with success! v1.01
Updating OpenCL device list
Read blend: T:\_Render Art\_Scenes\Blender Crash on GPU_.blend
==================================================
[Engine/Final] Rendering layer "RenderLayer"
[Exporter] Creating session
[SDL][10.953] Camera type: orthographic
[SDL][10.953] Camera position: Point[0.195649, -18.1203, 0.167139]
[SDL][10.953] Camera target: Point[0.195649, -17.1203, 0.167139]
[SDL][10.953] Camera clipping plane disabled
[SDL][10.969] Texture definition: 1701857953256IOR
[SDL][10.985] Volume definition: 1701905736904
[SDL][10.985] Volume definition: 1701905739688
[SDL][10.985] Material definition: Surface_Matte__Default__Emission_1701905945768
[SDL][10.985] Material definition: Surface_Matte__Default__Dense_1701905878664
[SDL][10.985] Material definition: Surface_Glossy__Dense__Orange_1701902856024
[SDL][10.985] The Mesh_Circle_1701888294312000 object is a light sources with 32 triangles
[SDL][10.985] Scene objects count: 7
[SDL][10.985] Light definition: Lamp_Point_1701888274968
[LuxCore][10.985] Configuration:
[LuxCore][10.985]   path.pathdepth.total = 9
[LuxCore][10.985]   path.pathdepth.diffuse = 7
[LuxCore][10.985]   path.pathdepth.glossy = 7
[LuxCore][10.985]   path.pathdepth.specular = 8
[LuxCore][10.985]   opencl.cpu.use = 0
[LuxCore][10.985]   opencl.gpu.use = 1
[LuxCore][10.985]   opencl.devices.select = "11"
[LuxCore][10.985]   opencl.native.threads.count = 0
[LuxCore][10.985]   sampler.sobol.adaptive.strength = 0.94999998807907104
[LuxCore][10.985]   sampler.random.adaptive.strength = 0.94999998807907104
[LuxCore][10.985]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][10.985]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][10.985]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][10.985]   film.filter.width = 1.5
[LuxCore][10.985]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][10.985]   scene.epsilon.max = 0.10000000149011612
[LuxCore][11.000]   film.height = 1080
[LuxCore][11.000]   film.filter.type = "NONE"
[LuxCore][11.000]   renderengine.type = "PATHOCL"
[LuxCore][11.000]   lightstrategy.type = "LOG_POWER"
[LuxCore][11.000]   sampler.type = "SOBOL"
[LuxCore][11.000]   film.width = 1080
[LuxCore][11.000]   film.opencl.enable = 1
[LuxCore][11.000]   film.opencl.device = 0
[LuxCore][11.000]   path.forceblackbackground.enable = 0
[LuxCore][11.000]   renderengine.seed = 1
[LuxCore][11.000]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][11.000]   film.outputs.0.index = 0
[LuxCore][11.000]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][11.000]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][11.000]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][11.000]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][11.000]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][11.000]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][11.000]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][11.000]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][11.000]   batch.haltthreshold = 0.0001
[LuxCore][11.000]   batch.haltspp = 750
[LuxCore][11.000]   batch.haltthreshold.stoprendering.enable = 0
[LuxCore][11.000]   batch.halttime = 0
[LuxCore][11.000] File Name Resolver Configuration:
Export took 0.1 s
[LuxCore][11.016] Film resolution: 1080x1080
[SDL][11.016] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][11.016] Image pipeline: film.imagepipelines.0
[SDL][11.016] Image pipeline step 0: NOP
[SDL][11.016] Image pipeline step 1: TONEMAP_AUTOLINEAR
[SDL][11.016] Image pipeline step 2: TONEMAP_LINEAR
[SDL][11.016] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][11.016] OpenCL Platform 0: Advanced Micro Devices, Inc.
[LuxRays][11.016] Device 0 name: NativeThread
[LuxRays][11.016] Device 0 type: NATIVE_THREAD
[LuxRays][11.016] Device 0 compute units: 1
[LuxRays][11.016] Device 0 preferred float vector width: 4
[LuxRays][11.016] Device 0 max allocable memory: 0MBytes
[LuxRays][11.016] Device 0 max allocable memory block size: 0MBytes
[LuxRays][11.016] Device 1 name: Hawaii
[LuxRays][11.016] Device 1 type: OPENCL_GPU
[LuxRays][11.016] Device 1 compute units: 40
[LuxRays][11.016] Device 1 preferred float vector width: 1
[LuxRays][11.016] Device 1 max allocable memory: 8192MBytes
[LuxRays][11.016] Device 1 max allocable memory block size: 4048MBytes
[LuxRays][11.016] Device 2 name: Hawaii
[LuxRays][11.016] Device 2 type: OPENCL_GPU
[LuxRays][11.016] Device 2 compute units: 40
[LuxRays][11.016] Device 2 preferred float vector width: 1
[LuxRays][11.016] Device 2 max allocable memory: 4096MBytes
[LuxRays][11.016] Device 2 max allocable memory block size: 3264MBytes
[LuxRays][11.032] Creating 2 intersection device(s)
[LuxRays][11.032] Allocating intersection device 0: Hawaii (Type = OPENCL_GPU)
[LuxRays][11.032] Allocating intersection device 1: Hawaii (Type = OPENCL_GPU)
[LuxCore][11.032] OpenCL devices used:
[LuxCore][11.032] [Hawaii Intersect]
[LuxCore][11.032]   Device OpenCL version: OpenCL 2.0 AMD-APP (2766.5)
[LuxCore][11.032] [Hawaii Intersect]
[LuxCore][11.032]   Device OpenCL version: OpenCL 2.0 AMD-APP (2766.5)
[LuxCore][11.032] Native devices used: 0
[LuxCore][11.032] Configuring 2 OpenCL render threads
[LuxCore][11.032] Configuring 0 native render threads
[LuxRays][11.032] Preprocessing DataSet
[LuxRays][11.032] Total vertex count: 2202
[LuxRays][11.032] Total triangle count: 4060
[LuxRays][11.032] Preprocessing DataSet done
[LuxRays][11.032] Adding DataSet accelerator: BVH
[LuxRays][11.032] Total vertex count: 2202
[LuxRays][11.032] Total triangle count: 4060
[LuxRays][11.032] BVH Dataset preprocessing time: 0ms
[LuxRays][11.032] BVH builder: EMBREE_BINNED_SAH
[LuxRays][11.032] BVH build hierarchy time: 0ms
[LuxRays][11.032] BVH total build time: 0ms
[LuxRays][11.032] Total BVH memory usage: 182Kbytes
[LuxRays][11.282] [Device Hawaii Intersect] BVH mesh vertices buffer size: 25Kbytes
[LuxRays][11.282] [Device Hawaii Intersect] BVH nodes buffer size: 182Kbytes
[LuxRays][11.563] [Device Hawaii Intersect] BVH mesh vertices buffer size: 25Kbytes
[LuxRays][11.563] [Device Hawaii Intersect] BVH nodes buffer size: 182Kbytes
[LuxCore][11.657] [PathOCLRenderEngine] OpenCL task count: 524288
[LuxCore][11.657] [PathOCLBaseRenderEngine] OpenCL max. page memory size: 3342336Kbytes
[LuxCore][11.657] Compile Geometry
[LuxCore][11.657] Scene geometry compilation time: 0ms
[LuxCore][11.657] Compile 16 Textures
[LuxCore][11.657] Textures compilation time: 0ms
[LuxCore][11.657] Compile 5 Materials
[LuxCore][11.657] Material compilation time: 0ms
[LuxCore][11.657] Compile Lights
[LuxCore][11.688] Lights compilation time: 0ms
[LuxCore][11.688] Compile ImageMaps
[LuxCore][11.688] Image maps page(s) count: 0
[LuxCore][11.688] Image maps compilation time: 0ms
[LuxCore][11.688] Always enabled OpenCL code:
[LuxCore][11.688] Compile Geometry
[LuxCore][11.688] Scene geometry compilation time: 0ms
[LuxCore][11.688] Compile 16 Textures
[LuxCore][11.688] Textures compilation time: 0ms
[LuxCore][11.688] Compile 5 Materials
[LuxCore][11.688] Material compilation time: 0ms
[LuxCore][11.688] Compile Lights
[LuxCore][11.688] Lights compilation time: 0ms
[LuxCore][11.688] Compile ImageMaps
[LuxCore][11.688] Image maps page(s) count: 0
[LuxCore][11.688] Image maps compilation time: 0ms
[LuxCore][11.688] Starting 2 OpenCL render threads
[LuxRays][11.719] [Device Hawaii Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 18225Kbytes
[LuxRays][11.719] [Device Hawaii Intersect] NOISE buffer size: 4556Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] RADIANCE_PER_PIXEL_NORMALIZEDs[0] buffer size: 18225Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] Camera buffer size: 5448bytes
[LuxRays][11.750] [Device Hawaii Intersect] Normals buffer size: 25Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] Vertices buffer size: 25Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] Triangles buffer size: 47Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] Mesh description buffer size: 1092bytes
[LuxRays][11.750] [Device Hawaii Intersect] Textures buffer size: 4352bytes
[LuxRays][11.750] [Device Hawaii Intersect] Materials buffer size: 720bytes
[LuxRays][11.750] [Device Hawaii Intersect] Scene objects buffer size: 84bytes
[LuxRays][11.750] [Device Hawaii Intersect] Lights buffer size: 10Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] Light offsets (Part I) buffer size: 28bytes
[LuxRays][11.750] [Device Hawaii Intersect] Light offsets (Part II) buffer size: 128bytes
[LuxRays][11.750] [Device Hawaii Intersect] LightsDistribution buffer size: 272bytes
[LuxRays][11.750] [Device Hawaii Intersect] InfiniteLightSourcesDistribution buffer size: 272bytes
[LuxRays][11.750] [Device Hawaii Intersect] Ray buffer size: 24576Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] RayHit buffer size: 10240Kbytes
[LuxCore][11.750] [PathOCLBaseRenderThread::0] Size of a GPUTask: 352bytes
[LuxRays][11.750] [Device Hawaii Intersect] GPUTask buffer size: 180224Kbytes
[LuxCore][11.750] [PathOCLBaseRenderThread::0] Size of a GPUTask DirectLight: 100bytes
[LuxRays][11.750] [Device Hawaii Intersect] GPUTaskDirectLight buffer size: 51200Kbytes
[LuxCore][11.750] [PathOCLBaseRenderThread::0] Size of a GPUTask State: 256bytes
[LuxRays][11.750] [Device Hawaii Intersect] GPUTaskState buffer size: 131072Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] GPUTask Stats buffer size: 2048Kbytes
[LuxRays][11.750] [Device Hawaii Intersect] SamplerSharedData buffer size: 4556Kbytes
[LuxCore][11.766] [PathOCLBaseRenderThread::0] Size of a Sample: 84bytes
[LuxRays][11.766] [Device Hawaii Intersect] Sample buffer size: 43008Kbytes
[LuxCore][11.766] [PathOCLBaseRenderThread::0] Sample dimensions: 87
[LuxCore][11.766] [PathOCLBaseRenderThread::0] Size of a SampleData: 8bytes
[LuxRays][11.766] [Device Hawaii Intersect] SampleData buffer size: 4096Kbytes
[LuxRays][11.766] [Device Hawaii Intersect] PathVolumeInfo buffer size: 22528Kbytes
[LuxRays][11.766] [Device Hawaii Intersect] DirectLightVolumeInfo buffer size: 22528Kbytes
[LuxRays][11.766] [Device Hawaii Intersect] Pixel Filter Distribution buffer size: 33Kbytes
[LuxCore][11.766] [PathOCLBaseRenderThread::0] Defined symbols:  -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_PATHOCL -D PARAM_RAY_EPSILON_MIN=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIUS_SCALE=1.050000e+00f -D PARAM_ACCEL_BVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARAM_FILM_RADIANCE_GROUP_COUNT=1 -D PARAM_FILM_CHANNELS_HAS_NOISE -D PARAM_ENABLE_TEX_CONST_FLOAT -D PARAM_ENABLE_TEX_CONST_FLOAT3 -D PARAM_ENABLE_TEX_IMAGEMAP -D PARAM_ENABLE_TEX_NORMALMAP -D PARAM_ENABLE_TEX_FRESNELCOLOR -D PARAM_ENABLE_TEX_FRESNELCONST -D PARAM_ENABLE_MAT_MATTE -D PARAM_ENABLE_MAT_GLOSSY2 -D PARAM_ENABLE_MAT_CLEAR_VOL -D PARAM_HAS_PASSTHROUGH -D PARAM_CAMERA_TYPE=1 -D PARAM_HAS_POINTLIGHT -D PARAM_HAS_TRIANGLELIGHT -D PARAM_HAS_VOLUMES -D SCENE_DEFAULT_VOLUME_INDEX=4294967295 -D PARAM_MAX_PATH_DEPTH=9 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=7 -D PARAM_MAX_PATH_DEPTH_GLOSSY=7 -D PARAM_MAX_PATH_DEPTH_SPECULAR=8 -D PARAM_RR_DEPTH=3 -D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=0.000000e+00f -D PARAM_IMAGE_FILTER_TYPE=0 -D PARAM_IMAGE_FILTER_WIDTH_X=.5f -D PARAM_IMAGE_FILTER_WIDTH_Y=.5f -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_X=0 -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_Y=0 -D PARAM_SAMPLER_TYPE=2 -D PARAM_SAMPLER_SOBOL_STARTOFFSET=32
[LuxCore][11.766] [PathOCLBaseRenderThread::0] Compiling kernels
Error in hsa_code section, at offset 7168:
Instruction has invalid memory scope (none), expected one of: agent, system, wave, wg
LLVM ERROR:
 Brig container validation has failed in BRIGAsmPrinter.cpp

AL lib: (EE) alc_cleanup: 1 device not closed
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Immediate Crash on GPU, on latest build

Post by Fox »

It works on my GTX970. But some times the orange sphere is not visible, some times it is.
Your camera is half way inside wall.
-------

EDIT
Sorry my bad, there is no wall. The last blender i got, it has some maximum draw type "wire" by default.
Last edited by Fox on Mon Apr 22, 2019 7:41 pm, edited 1 time in total.
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Immediate Crash on GPU, on latest build

Post by Fox »

Although something fishy with latest build. The speed is down so much.
With the build 6e4635d i made, my camera scene rendered 160k sample sec on CPU.
And today with 2cc0fe0, the speed is 0 sample sec on CPU :roll:
-----

EDIT
My issue is probably unrelated to what FarbigeWelt encountered.
I rolled back this commit https://github.com/LuxCoreRender/LuxCor ... aed3bf5cfb
and got the render speed back.
-----

EDIT 2
Found what caused the slowdown after hetero volume commit.
The hetero volume scattering scale of 3 000 000 for thin mesh (0.15mm in thickness).
The volume must have not worked at all before the last commit, or i thought 3000000/(1000mm/0.15mm) = scattering scale 450.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Immediate Crash on GPU, on latest build

Post by Dade »

FarbigeWelt wrote: Mon Apr 22, 2019 5:45 pm The simple scene crashes perfectly reproducible with
LLVM ERROR:
Brig container validation has failed in BRIGAsmPrinter.cpp :?:

Short version

Code: Select all

[LuxCore][11.766] [PathOCLBaseRenderThread::0] Compiling kernels
Error in hsa_code section, at offset 7168:
Instruction has invalid memory scope (none), expected one of: agent, system, wave, wg
LLVM ERROR:
 Brig container validation has failed in BRIGAsmPrinter.cpp

AL lib: (EE) alc_cleanup: 1 device not closed
It is an horrible internal driver error, it is a bug, they are producing some not correct input for LLVM.

I have the same problem with any scene: I had to install Ubuntu 18.04LTS because Qt v5.x was not working with my old Ubuntu 14.04LTS and now my old AMD 290X (Hawaii GPU like your) gives the same error with any scene. It is just their latest drivers to be broken, nothing new under the sun :roll:

I tried to install older versions of drivers but they are not compatible with the latest Ubuntu 18.04LTS. Ubuntu 14.04LTS with many years old drivers was working flawless.

I'm using AMD OpenCL since the first beta and usually 1 out of 10 drivers work ... pathetic. I will use my GTX980 to run the OpenCL code.

For the record, the GTX980 was donated by NVIDIA while I paid for the 290X ... I'm "slightly" pissed off ...
Support LuxCoreRender project with salts and bounties
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Immediate Crash on GPU, on latest build

Post by FarbigeWelt »

Dade wrote: Wed Apr 24, 2019 1:21 pm
It is an horrible internal driver error, it is a bug, they are producing some not correct input for LLVM.

I have the same problem with any scene:

For the record, the GTX980 was donated by NVIDIA while I paid for the 290X ... I'm "slightly" pissed off ...
Okay I see, it is an AMD driver issue. The strange thing about it, after downgrading LuxCoreRender to version 2.1 alpha 1 the scene with the orange ball renders well on openCL again. With the build downloaded from latest on Sunday not even Blender default scene did render on GPU.
What I like to say, LuxCoreRender‘s later builds are calling one or more previously not used openCL methods or their called in a new way leading to this *#%!@! driver error.

AMD should spend you a new Radeon VII for all your lost hours, lost by searching for a working driver version.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Immediate Crash on GPU, on latest build

Post by Dade »

I can try to bisect the commits and find a possible work around but it is a damn annoying way to spend time. I assume only old GPUs (like the 290x) suffer of this problem.
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: Immediate Crash on GPU, on latest build

Post by Dade »

Dade wrote: Wed Apr 24, 2019 7:51 pm I can try to bisect the commits and find a possible work around but it is a damn annoying way to spend time. I assume only old GPUs (like the 290x) suffer of this problem.
It is the new SOBOL code, if you switch to RANDOM sampler, it works fine, I'm looking for a workaround.
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: Immediate Crash on GPU, on latest build

Post by Dade »

Dade wrote: Thu Apr 25, 2019 11:13 am It is the new SOBOL code, if you switch to RANDOM sampler, it works fine, I'm looking for a workaround.
I have finally found a work around the AMD compiler internal error: it is now enabled for all AMD GPUs (I don't know which one is affected and which one isn't).
The new Sobol sampler is now working again on my Hawaii GPU.
Support LuxCoreRender project with salts and bounties
Post Reply