AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

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:

AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by FarbigeWelt »

Crashs with default or any other scene using openCL in any way. :!:

BlendLuxCore 2.4alpha0 registered (with pyluxcore 2.4alpha0)
BlendLuxCore/commit/066bde9cde2a8549194442d3309fabbd2435b480
LuxCore/commit/240dd579d2fc7a89a21ac648af413377f8e4e59e

With current versions and the ones from the last two or three weeks :evil: , rendering is only possible if GPU/openCL is not used for any lux job (rendering and tone-mapping).
For what reason ever BlendLuxCore calls an openCL related 'function' even with all user interface easy accessible openCL related properties disabled.
There is also at least one call short after rendering on CPU only started.

Code: Select all

Session started in 0.1 s
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Recommended clamp value: 0.5752207951808475
[LuxCore][109.297] Noise estimation: first pass
[LuxCore][156.375] Noise estimation: Error mean = 0.00752252
[LuxCore][212.797] Noise estimation: Error mean = 0.00424715
[LuxCore][267.563] Noise estimation: Error mean = 0.00269058
[LuxCore][328.219] Noise estimation: Error mean = 0.00204711
[LuxCore][388.860] Noise estimation: Error mean = 0.00163634
[LuxCore][449.516] Noise estimation: Error mean = 0.00135031
[LuxCore][469.531] Samples per pixel 100%, rendering done.
[Engine/Final] Finished rendering layer "View Layer"
The moment render engine is switched from CPU to CPU BlendLuxCore calls several openCL related 'functions', leading to error messages continously logged.
Starting rendering (menu or F12) crashes Blender immediately! :evil: Exported scene crashes LuxCoreUI with a short delay without further notice.

Code: Select all

Read prefs: C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender 2.82\2.82\python
BlendLuxCore 2.4alpha0 registered (with pyluxcore 2.4alpha0)
Warning: property 'release_confirm' not found in keymap item 'OperatorProperties'
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
==================================================
[Engine/Final] Rendering layer "View Layer"
[Exporter] Creating session
[SDL][60.188] Camera type: perspective
[SDL][60.188] Camera position: Point[8.11889, -6.92579, 4.88831]
[SDL][60.188] Camera target: Point[7.42818, -6.27471, 4.57364]
[SDL][60.188] Camera clipping plane disabled
[SDL][60.188] Material definition: Matte__Rot2497769616712
[SDL][60.188] Material definition: Matte__Green2497769620744
[SDL][60.188] Scene objects count: 2
[SDL][60.188] Light definition: 2497770379928
[SDL][60.188] Light definition: __WORLD_BACKGROUND_LIGHT__
[LuxCore][60.203] Configuration:
[LuxCore][60.203]   path.pathdepth.total = 7
[LuxCore][60.203]   path.pathdepth.diffuse = 5
[LuxCore][60.203]   path.pathdepth.glossy = 5
[LuxCore][60.203]   path.pathdepth.specular = 6
[LuxCore][60.203]   path.hybridbackforward.enable = 0
[LuxCore][60.203]   path.hybridbackforward.partition = 0.80000000000000004
[LuxCore][60.203]   path.hybridbackforward.glossinessthreshold = 0.048999998718500137
[LuxCore][60.203]   film.noiseestimation.warmup = 8
[LuxCore][60.203]   film.noiseestimation.step = 32
[LuxCore][60.203]   sampler.sobol.adaptive.strength = 0.89999997615814209
[LuxCore][60.203]   sampler.sobol.bucketsize = 16
[LuxCore][60.203]   sampler.sobol.tilesize = 16
[LuxCore][60.203]   sampler.sobol.supersampling = 1
[LuxCore][60.203]   sampler.sobol.overlapping = 1
[LuxCore][60.203]   renderengine.type = "PATHCPU"
[LuxCore][60.203]   sampler.type = "SOBOL"
[LuxCore][60.203]   film.width = 1920
[LuxCore][60.203]   film.height = 1080
[LuxCore][60.203]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][60.203]   film.filter.width = 1.5
[LuxCore][60.203]   lightstrategy.type = "LOG_POWER"
[LuxCore][60.203]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][60.203]   scene.epsilon.max = 0.10000000149011612
[LuxCore][60.203]   film.opencl.enable = 0
[LuxCore][60.203]   path.forceblackbackground.enable = 0
[LuxCore][60.203]   renderengine.seed = 1
[LuxCore][60.203]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][60.203]   film.outputs.0.index = 0
[LuxCore][60.203]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][60.203]   film.outputs.1.type = "RGB_IMAGEPIPELINE"
[LuxCore][60.203]   film.outputs.1.index = 1
[LuxCore][60.203]   film.outputs.1.filename = "RGB_IMAGEPIPELINE_1.png"
[LuxCore][60.203]   film.imagepipelines.001.0.type = "NOP"
[LuxCore][60.203]   film.imagepipelines.001.1.type = "TONEMAP_LINEAR"
[LuxCore][60.203]   film.imagepipelines.001.1.scale = 1
[LuxCore][60.203]   film.imagepipelines.001.radiancescales.0.enabled = 1
[LuxCore][60.203]   film.imagepipelines.001.radiancescales.0.globalscale = 1
[LuxCore][60.203]   film.imagepipelines.001.radiancescales.0.rgbscale = 1 1 1
[LuxCore][60.203]   film.imagepipelines.001.2.type = "GAMMA_CORRECTION"
[LuxCore][60.203]   film.imagepipelines.001.2.value = 2.2000000000000002
[LuxCore][60.203]   film.noiseestimation.index = 1
[LuxCore][60.203]   film.imagepipelines.000.0.type = "NOP"
[LuxCore][60.203]   film.imagepipelines.000.1.type = "TONEMAP_LINEAR"
[LuxCore][60.203]   film.imagepipelines.000.1.scale = 1
[LuxCore][60.203]   film.imagepipelines.000.radiancescales.0.enabled = 1
[LuxCore][60.203]   film.imagepipelines.000.radiancescales.0.globalscale = 1
[LuxCore][60.203]   film.imagepipelines.000.radiancescales.0.rgbscale = 1 1 1
[LuxCore][60.203]   batch.haltspp = 256
[LuxCore][60.203]   batch.halttime = 0
[LuxCore][60.203] File Name Resolver Configuration:
Export took 0.0 s
[LuxCore][60.203] Film resolution: 1920x1080
[SDL][60.203] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][60.203] Image pipeline: film.imagepipelines.000
[SDL][60.203] Image pipeline step 0: NOP
[SDL][60.203] Image pipeline step 1: TONEMAP_LINEAR
[SDL][60.203] Image pipeline: film.imagepipelines.001
[SDL][60.203] Image pipeline step 0: NOP
[SDL][60.203] Image pipeline step 1: TONEMAP_LINEAR
[SDL][60.203] Image pipeline step 2: GAMMA_CORRECTION
[SDL][60.203] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[SDL][60.203] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_1.png]
[LuxRays][60.219] OpenCL support: enabled
[LuxRays][60.219] OpenCL Platform 0: AMD Accelerated Parallel Processing
[LuxRays][60.219] CUDA support: enabled
[LuxRays][60.219] Device 0 name: Native
[LuxRays][60.219] Device 0 type: NATIVE_THREAD
[LuxRays][60.219] Device 0 compute units: 1
[LuxRays][60.219] Device 0 preferred float vector width: 4
[LuxRays][60.219] Device 0 max allocable memory: 17592186044415MBytes
[LuxRays][60.219] Device 0 max allocable memory block size: 17592186044415MBytes
[LuxRays][60.219] Device 0 has out of core memory support: 0
[LuxRays][60.219] Device 1 name: gfx1010
[LuxRays][60.219] Device 1 type: OPENCL_GPU
[LuxRays][60.219] Device 1 compute units: 20
[LuxRays][60.219] Device 1 preferred float vector width: 1
[LuxRays][60.219] Device 1 max allocable memory: 8176MBytes
[LuxRays][60.219] Device 1 max allocable memory block size: 6732MBytes
[LuxRays][60.219] Device 1 has out of core memory support: 0
[LuxRays][60.219] Device 2 name: gfx1010
[LuxRays][60.219] Device 2 type: OPENCL_GPU
[LuxRays][60.219] Device 2 compute units: 20
[LuxRays][60.219] Device 2 preferred float vector width: 1
[LuxRays][60.219] Device 2 max allocable memory: 8176MBytes
[LuxRays][60.219] Device 2 max allocable memory block size: 6732MBytes
[LuxRays][60.219] Device 2 has out of core memory support: 0
[LuxRays][60.219] Creating 8 intersection device(s)
[LuxRays][60.219] Allocating intersection device 0: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 1: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 2: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 3: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 4: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 5: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 6: Native (Type = NATIVE_THREAD)
[LuxRays][60.219] Allocating intersection device 7: Native (Type = NATIVE_THREAD)
[LuxCore][60.219] Configuring 8 CPU render threads
[LuxRays][60.219] Preprocessing DataSet
[LuxRays][60.219] Total vertex count: 48
[LuxRays][60.219] Total triangle count: 24
[LuxRays][60.219] Preprocessing DataSet done
[LuxRays][60.219] Adding DataSet accelerator: EMBREE
[LuxRays][60.219] Total vertex count: 48
[LuxRays][60.219] Total triangle count: 24
[LuxRays][60.219] EmbreeAccel build time: 0ms
Session started in 0.1 s
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Recommended clamp value: 0.5752207951808475
[LuxCore][109.297] Noise estimation: first pass
[LuxCore][156.375] Noise estimation: Error mean = 0.00752252
[LuxCore][212.797] Noise estimation: Error mean = 0.00424715
[LuxCore][267.563] Noise estimation: Error mean = 0.00269058
[LuxCore][328.219] Noise estimation: Error mean = 0.00204711
[LuxCore][388.860] Noise estimation: Error mean = 0.00163634
[LuxCore][449.516] Noise estimation: Error mean = 0.00135031
[LuxCore][469.531] Samples per pixel 100%, rendering done.
[Engine/Final] Finished rendering layer "View Layer"
AL lib: (EE) ALCmmdevPlayback_mixerProc: Failed to get padding: 0x88890004
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1

location: <unknown location>:-1
Traceback (most recent call last):
  File "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\ui\render_performance.py", line 45, in draw_header
    opencl = context.scene.luxcore.opencl
AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

location: <unknown location>:-1
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: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by Dade »

It is like if you are using an old version of BlendLuxCore, there is no "ui\render_performance.py" file in BlendLuxCore now: https://github.com/LuxCoreRender/BlendL ... /master/ui

Try to delete the "C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore" directory and to re-install BlendLuxCore.
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: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by FarbigeWelt »

Hi Dade
After removing the add-on and deleting its folder completely I have installed the build versions listed in first post in this thread here.
Indeed, the openCL error raised by "ui\render_performance.py" was gone.

Now, the render process crashes with log entry ["[LuxRays][13.984] [BVHKernel] Compiling kernels".
It does not matter if I render with BlendLuxCore or with an exported render.cfg file loaded in LuxCoreUI.
Do you have any further hints helping me to render with GPU again?

Code: Select all

Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Michael>"C:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\bin\luxcoreui.exe"
LuxCoreUI v2.4alpha0 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][12.500] Configuration:
[LuxCore][12.500]   path.pathdepth.total = "7"
[LuxCore][12.500]   path.pathdepth.diffuse = "5"
[LuxCore][12.500]   path.pathdepth.glossy = "5"
[LuxCore][12.500]   path.pathdepth.specular = "6"
[LuxCore][12.500]   path.hybridbackforward.enable = "0"
[LuxCore][12.500]   path.hybridbackforward.partition = "0"
[LuxCore][12.500]   path.hybridbackforward.glossinessthreshold = "0.048999998718500137"
[LuxCore][12.500]   opencl.cpu.use = "0"
[LuxCore][12.500]   opencl.gpu.use = "1"
[LuxCore][12.500]   opencl.devices.select = "11"
[LuxCore][12.500]   film.noiseestimation.warmup = "8"
[LuxCore][12.500]   film.noiseestimation.step = "32"
[LuxCore][12.500]   sampler.sobol.adaptive.strength = "0.89999997615814209"
[LuxCore][12.500]   sampler.sobol.bucketsize = "16"
[LuxCore][12.500]   sampler.sobol.tilesize = "16"
[LuxCore][12.515]   sampler.sobol.supersampling = "1"
[LuxCore][12.515]   sampler.sobol.overlapping = "1"
[LuxCore][12.515]   renderengine.type = "PATHOCL"
[LuxCore][12.515]   sampler.type = "SOBOL"
[LuxCore][12.515]   film.width = "1920"
[LuxCore][12.515]   film.height = "1080"
[LuxCore][12.515]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][12.515]   film.filter.width = "1.5"
[LuxCore][12.515]   lightstrategy.type = "LOG_POWER"
[LuxCore][12.515]   scene.epsilon.min = "9.9999997473787516e-06"
[LuxCore][12.515]   scene.epsilon.max = "0.10000000149011612"
[LuxCore][12.515]   film.opencl.enable = "0"
[LuxCore][12.515]   path.clamping.variance.maxvalue = "32"
[LuxCore][12.515]   path.forceblackbackground.enable = "0"
[LuxCore][12.515]   filesaver.format = "TXT"
[LuxCore][12.515]   filesaver.renderengine.type = "PATHOCL"
[LuxCore][12.515]   renderengine.seed = "1"
[LuxCore][12.515]   batch.haltspp = "256"
[LuxCore][12.515]   batch.halttime = "0"
[LuxCore][12.515]   film.imagepipelines.000.0.type = "NOP"
[LuxCore][12.515]   film.imagepipelines.000.1.type = "TONEMAP_LINEAR"
[LuxCore][12.515]   film.imagepipelines.000.1.scale = "1"
[LuxCore][12.515]   film.imagepipelines.000.2.type = "GAMMA_CORRECTION"
[LuxCore][12.515]   film.imagepipelines.000.2.value = "2.2000000000000002"
[LuxCore][12.515]   film.imagepipelines.000.radiancescales.0.enabled = "1"
[LuxCore][12.515]   film.imagepipelines.000.radiancescales.0.globalscale = "1"
[LuxCore][12.515]   film.imagepipelines.000.radiancescales.0.rgbscale = "1" "1" "1"
[LuxCore][12.515]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][12.515]   film.outputs.0.index = "0"
[LuxCore][12.515]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][12.515]   scene.file = "scene.scn"
[LuxCore][12.515] File Name Resolver Configuration:
[LuxCore][12.515]   .
[LuxCore][12.515]   C:/tmp/Untitled_LuxCore/Untitled_LuxCore/00001
[SDL][12.515] Reading scene: scene.scn
[SDL][12.515] Material definition: Matte__Rot1705850238952
[SDL][12.531] Material definition: Matte__Green1705850238616
[SDL][12.531] Camera type: perspective
[SDL][12.531] Camera position: Point[8.11889, -6.92579, 4.88831]
[SDL][12.531] Camera target: Point[7.42818, -6.27471, 4.57364]
[SDL][12.531] Camera clipping plane disabled
[SDL][12.531] Scene objects count: 2
[SDL][12.531] Light definition: __WORLD_BACKGROUND_LIGHT__
[SDL][12.546] Light definition: 1705851008408
[SDL][12.546] Camera type: perspective
[SDL][12.546] Camera position: Point[8.11889, -6.92579, 4.88831]
[SDL][12.546] Camera target: Point[7.42818, -6.27471, 4.57364]
[SDL][12.546] Camera clipping plane disabled
Film size adjusted: 1280x720 (Frame buffer size: 1280x720)
RenderConfig has cached kernels: False
[LuxCore][12.562] Film resolution: 1280x720
[SDL][12.562] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][12.562] Image pipeline: film.imagepipelines.000
[SDL][12.562] Image pipeline step 0: NOP
[SDL][12.562] Image pipeline step 1: TONEMAP_LINEAR
[SDL][12.562] Image pipeline step 2: GAMMA_CORRECTION
[SDL][12.562] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][12.562] OpenCL support: enabled
[LuxRays][12.671] OpenCL Platform 0: AMD Accelerated Parallel Processing
[LuxRays][12.671] CUDA support: enabled
[LuxRays][12.671] Device 0 name: Native
[LuxRays][12.671] Device 0 type: NATIVE_THREAD
[LuxRays][12.671] Device 0 compute units: 1
[LuxRays][12.671] Device 0 preferred float vector width: 4
[LuxRays][12.671] Device 0 max allocable memory: 17592186044415MBytes
[LuxRays][12.671] Device 0 max allocable memory block size: 17592186044415MBytes
[LuxRays][12.671] Device 0 has out of core memory support: 0
[LuxRays][12.671] Device 1 name: gfx1010
[LuxRays][12.671] Device 1 type: OPENCL_GPU
[LuxRays][12.671] Device 1 compute units: 20
[LuxRays][12.671] Device 1 preferred float vector width: 1
[LuxRays][12.671] Device 1 max allocable memory: 8176MBytes
[LuxRays][12.671] Device 1 max allocable memory block size: 6732MBytes
[LuxRays][12.671] Device 1 has out of core memory support: 0
[LuxRays][12.671] Device 2 name: gfx1010
[LuxRays][12.671] Device 2 type: OPENCL_GPU
[LuxRays][12.671] Device 2 compute units: 20
[LuxRays][12.671] Device 2 preferred float vector width: 1
[LuxRays][12.671] Device 2 max allocable memory: 8176MBytes
[LuxRays][12.671] Device 2 max allocable memory block size: 6732MBytes
[LuxRays][12.671] Device 2 has out of core memory support: 0
[LuxRays][12.671] Creating 10 intersection device(s)
[LuxRays][12.671] Allocating intersection device 0: gfx1010 (Type = OPENCL_GPU)
[LuxRays][12.671] Allocating intersection device 1: gfx1010 (Type = OPENCL_GPU)
[LuxRays][12.671] Allocating intersection device 2: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 3: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 4: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 5: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 6: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 7: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 8: Native (Type = NATIVE_THREAD)
[LuxRays][12.671] Allocating intersection device 9: Native (Type = NATIVE_THREAD)
[LuxCore][12.671] CUDA devices used:
[LuxCore][12.671] OpenCL devices used:
[LuxCore][12.671] [gfx1010 OpenCLIntersect]
[LuxCore][12.671]   Device OpenCL version: OpenCL 2.0 AMD-APP (3075.12)
[LuxCore][12.671] [gfx1010 OpenCLIntersect]
[LuxCore][12.671]   Device OpenCL version: OpenCL 2.0 AMD-APP (3075.12)
[LuxCore][12.671] Native devices used: 8
[LuxCore][12.671] Configuring 2 OpenCL render threads
[LuxCore][12.671] Configuring 8 native render threads
[LuxRays][12.671] Preprocessing DataSet
[LuxRays][12.671] Total vertex count: 48
[LuxRays][12.671] Total triangle count: 24
[LuxRays][12.671] Preprocessing DataSet done
[LuxRays][12.671] Adding DataSet accelerator: BVH
[LuxRays][12.671] Total vertex count: 48
[LuxRays][12.687] Total triangle count: 24
[LuxRays][12.687] BVH Dataset preprocessing time: 0ms
[LuxRays][12.687] BVH builder: EMBREE_BINNED_SAH
[LuxRays][12.687] BVH build hierarchy time: 0ms
[LuxRays][12.687] BVH total build time: 0ms
[LuxRays][12.687] Total BVH memory usage: 1Kbytes
[LuxRays][12.687] Adding DataSet accelerator: EMBREE
[LuxRays][12.687] Total vertex count: 48
[LuxRays][12.687] Total triangle count: 24
[LuxRays][12.734] EmbreeAccel build time: 46ms
[LuxRays][13.984] [Device gfx1010 OpenCLIntersect] BVH mesh vertices buffer size: 576bytes
[LuxRays][13.984] [Device gfx1010 OpenCLIntersect] BVH nodes buffer size: 1184bytes
[LuxRays][13.984] [BVHKernel] Compiler options: -D LUXRAYS_OPENCL_KERNEL -D PARAM_RAY_EPSILON_MIN=1e-05f -D PARAM_RAY_EPSILON_MAX=0.1f -D LUXRAYS_OPENCL_DEVICE -D LUXRAYS_OS_WINDOWS -cl-fast-relaxed-math -cl-mad-enable
[LuxRays][13.984] [BVHKernel] Compiling kernels
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: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by Dade »

FarbigeWelt wrote: Thu Jun 18, 2020 1:18 am Do you have any further hints helping me to render with GPU again?
Does it happen with any scene ? Have you recently updated GPU drivers ? This is usually mean a broken driver.
Support LuxCoreRender project with salts and bounties
User avatar
Theo_Gottwald
Posts: 109
Joined: Fri Apr 24, 2020 12:01 pm

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by Theo_Gottwald »

try to render the Kernels with an empty scene, (just Standard Cube and Plane and 1 Light).
Does it work or also not?
Get Blender-Quickbuttons and configure over 100 Blender-Buttons individual to your needs.
Visit my YouTube-Channel: Theo's Fun Videos and watch several Blender related Videos.
Join @Dreamstime and sell your Renderings to the world.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by FarbigeWelt »

Dade wrote: Thu Jun 18, 2020 8:31 am
FarbigeWelt wrote: Thu Jun 18, 2020 1:18 am Do you have any further hints helping me to render with GPU again?
Does it happen with any scene ? Have you recently updated GPU drivers ? This is usually mean a broken driver.
Thank you for answering.

Driver should be okay, because I did mot update it since an earlier well running version of render v. 2.4 alpha.

After I deleted startup.blend GPU | openCL version renders the default cube scene again. Finally! I do not know why. But well, I am glad to have a running system again. :!: :D :!:
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by FarbigeWelt »

Theo_Gottwald wrote: Thu Jun 18, 2020 8:47 pm try to render the Kernels with an empty scene, (just Standard Cube and Plane and 1 Light).
Does it work or also not?
Thank you for the hint.

My default scene was not original. I have set up all BlendLuxCore settings as useful for me as possible, including arranging also its menus more comfortable than default of add-on.

After I deleted my specific startup.blend in one of Blender’s folder Blender reseted the startup.blend.
The default cube scene renders now again on GPU | openCL. :D

For me this behavior is quite strange.

I hope more complex scenes than the default will run as well. :?

Regards
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
Theo_Gottwald
Posts: 109
Joined: Fri Apr 24, 2020 12:01 pm

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by Theo_Gottwald »

Here, I just render the default scene once,
thereafter also more complicated scenes often work fine.
Is it strange?
This is all very complicated stuff and the developers of Luxcore only have it partly in their hands.
There are so many (often updated and changed) software-Interfaces, types of graphics-cards etc. involved,
additionally Blender has a very fast turnaround speed to new versions.

That its not easy to get it "run everywhere" at the firs try.
Yes for the user it may sound strange. But a few revisions later it will all work more easy together possibly.
Get Blender-Quickbuttons and configure over 100 Blender-Buttons individual to your needs.
Visit my YouTube-Channel: Theo's Fun Videos and watch several Blender related Videos.
Join @Dreamstime and sell your Renderings to the world.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by B.Y.O.B. »

For the kernel compilation step in v2.4, it should not matter from which scene it is started, because it uses a very simple scene internally.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: AttributeError: 'LuxCoreScene' object has no attribute 'opencl'

Post by FarbigeWelt »

B.Y.O.B. wrote: Tue Jun 23, 2020 10:18 am For the kernel compilation step in v2.4, it should not matter from which scene it is started, because it uses a very simple scene internally.
Your piece fits well to the puzzled image.

What happened some day earlier..
My first positive astonishment switched (Gna..) in short time after I checked settings and I had to realize (Gna! ...) that I have been testing with v2.3. (S@&¥.!, F^%#!.., .. What? ..!?)

Meanwhile..
I checked if there was any graphic cardr update lately. Indeed, there was what seems to lay between versions of daily build v2.4 worked for opencl on my system and versions from 2020.06.16.

Outlook..
Deinstall Blender and LuxCoreRender and add-on.
Delete all kernel cache files ( :?: where are these located on a Windows 10 Pro :?: )
Shut down, restart after 10 to 15 seconds.
Install Blender and LuxCoreRender v.Versions

Does anyone have other / further suggestions :?:
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
Post Reply