macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Use this forum for general user support and related questions.
Post Reply
davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by davorin » Fri Oct 05, 2018 2:01 pm

EHLO (o;

Just tried the latest standalone version under macOS 10.13.6 with a GTX1060....

After loading the LuxCore2.1Benchmark.bcf scene file I get at the end in the console:
OpenCL device selection string has the wrong length, must be 2 instead of 1

User avatar
B.Y.O.B.
Developer
Posts: 1811
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by B.Y.O.B. » Fri Oct 05, 2018 2:05 pm

I will fix the .bcf file.
Support LuxCoreRender project with salts and bounties

davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by davorin » Fri Oct 05, 2018 2:11 pm

Hello

Is this similar to the Linux standalone version?

There it just gives me:
LuxCoreUI v2.0 (LuxCore demo: http://www.luxcorerender.org)
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
RenderConfig loading error:
unsupported version
when I open the same file..

User avatar
B.Y.O.B.
Developer
Posts: 1811
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by B.Y.O.B. » Fri Oct 05, 2018 2:15 pm

The benchmark scene was created with v2.1alpha3, try to open it with v2.1alpha4.
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 1530
Joined: Mon Dec 04, 2017 8:36 pm

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by Dade » Fri Oct 05, 2018 2:18 pm

B.Y.O.B. wrote:
Fri Oct 05, 2018 2:15 pm
The benchmark scene was created with v2.1alpha3, try to open it with v2.1alpha4.
All serialized/binary formats are likely to change across different versions, just use text format instead of binary format if you want to work across different versions.
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 1811
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by B.Y.O.B. » Fri Oct 05, 2018 2:23 pm

Alright.
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 1811
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by B.Y.O.B. » Fri Oct 05, 2018 3:45 pm

I have updated the scene with these changes:
https://github.com/LuxCoreRender/LuxCor ... 51618e9ca9
Support LuxCoreRender project with salts and bounties

davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by davorin » Sat Oct 06, 2018 6:54 am

Hmm...when opening the render.cfg file with LuxCore UI 2.1alpha4 I get under macOS 10.13.6 with GTX1060 and 387.10.10.10.40.105:
[LuxCore][98.275] [VignettingPlugin] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][98.275] [VignettingPlugin] Compiling kernels
[LuxCore][98.368] [VignettingPlugin] Kernels not cached
[LuxCore][98.368] [VignettingPlugin] Compiling VignettingPlugin_Apply Kernel
[LuxCore][98.368] [VignettingPlugin] Kernels compilation time: 93ms
[LuxRays][98.368] [Device GeForce GTX 1060 6GB Intersect] Gamma table buffer size: 16Kbytes
Abort trap: 6
and it crashes:
System Integrity Protection: enabled

Crashed Thread: 22 Dispatch queue: opencl_runtime

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Application Specific Signatures:
Graphics hardware encountered an error and was reset: 0x0000002b


Thread 0:: Dispatch queue: com.apple.main-thread
0 com.nvidia.web.GeForceGLDriverWeb 0x000000010bb5f0ea 0x10b7fe000 + 3543274
1 com.nvidia.web.GeForceGLDriverWeb 0x000000010bb55106 gldCreateBuffer + 218
2 libGFXShared.dylib 0x00007fff3b278058 gfxCreatePluginBuffer + 72
3 com.apple.opencl 0x00007fff3a09edf3 0x7fff3a065000 + 237043
4 com.apple.opencl 0x00007fff3a076f3c 0x7fff3a065000 + 73532
5 com.apple.opencl 0x00007fff3a084164 clCreateBuffer + 156
6 luxcoreui 0x0000000104616b79 0x103e9e000 + 7834489
7 luxcoreui 0x000000010458b44c 0x103e9e000 + 7263308
8 luxcoreui 0x0000000104513825 0x103e9e000 + 6772773
9 luxcoreui 0x0000000104338f55 0x103e9e000 + 4829013
10 luxcoreui 0x00000001042aa621 0x103e9e000 + 4245025
11 luxcoreui 0x00000001041dd54f 0x103e9e000 + 3405135
12 luxcoreui 0x00000001041ded87 0x103e9e000 + 3411335
13 luxcoreui 0x00000001042100b4 0x103e9e000 + 3612852
14 luxcoreui 0x000000010420ac06 0x103e9e000 + 3591174
15 luxcoreui 0x00000001041e0ba9 0x103e9e000 + 3419049
16 libdyld.dylib 0x00007fff5972c015 start + 1
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB

User avatar
B.Y.O.B.
Developer
Posts: 1811
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by B.Y.O.B. » Sat Oct 06, 2018 9:10 am

Could be caused by the OpenCL driver.
You can try to disable the OpenCL imagepipeline:
Open the file render.cfg, search for the line "film.opencl.enable" and write "= 0" instead of "= 1" behind it:

Code: Select all

film.opencl.enable = 0
Then save the file and try again.
Support LuxCoreRender project with salts and bounties

davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: macOS: OpenCL device selection string has the wrong length, must be 2 instead of 1

Post by davorin » Sat Oct 06, 2018 9:19 am

Exactly the same:
Crashed Thread: 20 Dispatch queue: opencl_runtime

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Application Specific Signatures:
Graphics hardware encountered an error and was reset: 0x0000002b
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB

Post Reply