luxcoreui failed with segmentation fault - Linux (Debian)

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.
Post Reply
harishankar
Posts: 4
Joined: Wed Jun 24, 2020 6:48 am

luxcoreui failed with segmentation fault - Linux (Debian)

Post by harishankar »

I downloaded the latest luxcorerender (stand alone) and it crashes with the following segmentation fault:

Code: Select all

LuxCoreUI v2.3 (LuxCore demo: http://www.luxcorerender.org)
Segmentation fault
I just extracted the tarball into a directory and executed ./luxcoreui from the command line. I don't know what is the issue. Please let me know if any further information is required.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by Dade »

What CPU do you have ? The binaries can not work on some very old CPU.

Are you using the OpenCL version or the CPU-only version ?
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by B.Y.O.B. »

To get more information, you can do the following:

Code: Select all

gdb ./luxcoreui
run
backtrace
(the first command opens a gdb debugging session, the next are gdb commands to get a backtrace)
You can then copy/paste the output here.
harishankar
Posts: 4
Joined: Wed Jun 24, 2020 6:48 am

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by harishankar »

Both the normal version and OpenCL version failed to run.

By the way the blender add on works. But I want to use the stand alone version.

My CPU is

cat /proc/cpuinfo

Code: Select all

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 61
model name	: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
stepping	: 4
microcode	: 0x2f
cpu MHz		: 1995.339
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm arat pln pts md_clear flush_l1d
vmx flags	: vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips	: 4190.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 61
model name	: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
stepping	: 4
microcode	: 0x2f
cpu MHz		: 1995.338
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm arat pln pts md_clear flush_l1d
vmx flags	: vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips	: 4190.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 61
model name	: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
stepping	: 4
microcode	: 0x2f
cpu MHz		: 1995.339
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm arat pln pts md_clear flush_l1d
vmx flags	: vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips	: 4190.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 61
model name	: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
stepping	: 4
microcode	: 0x2f
cpu MHz		: 1995.339
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm arat pln pts md_clear flush_l1d
vmx flags	: vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips	: 4190.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:
Here is the output of gdb backtrace:

Code: Select all

(gdb) run
Starting program: /home/hari/files/Downloads/Software/luxcorerender-v2.3-linux64/LuxCore/luxcoreui 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef332700 (LWP 12892)]
[New Thread 0x7fffeeb31700 (LWP 12893)]
[New Thread 0x7fffee330700 (LWP 12894)]
LuxCoreUI v2.3 (LuxCore demo: http://www.luxcorerender.org)
[Thread 0x7fffeeb31700 (LWP 12893) exited]
[Thread 0x7fffef332700 (LWP 12892) exited]
[Thread 0x7fffee330700 (LWP 12894) exited]

Thread 1 "luxcoreui" received signal SIGSEGV, Segmentation fault.
0x0000555555a3f8df in _glfwPlatformInit ()
(gdb) backtrace
#0  0x0000555555a3f8df in _glfwPlatformInit ()
#1  0x0000555555a3b719 in glfwInit ()
#2  0x000055555596993e in LuxCoreApp::RunApp(luxcore::RenderState*, luxcore::Film*) ()
#3  0x000055555590972c in main ()
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by Dade »

harishankar wrote: Wed Jun 24, 2020 2:00 pm Here is the output of gdb backtrace:

Code: Select all

(gdb) run
Starting program: /home/hari/files/Downloads/Software/luxcorerender-v2.3-linux64/LuxCore/luxcoreui 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef332700 (LWP 12892)]
[New Thread 0x7fffeeb31700 (LWP 12893)]
[New Thread 0x7fffee330700 (LWP 12894)]
LuxCoreUI v2.3 (LuxCore demo: http://www.luxcorerender.org)
[Thread 0x7fffeeb31700 (LWP 12893) exited]
[Thread 0x7fffef332700 (LWP 12892) exited]
[Thread 0x7fffee330700 (LWP 12894) exited]

Thread 1 "luxcoreui" received signal SIGSEGV, Segmentation fault.
0x0000555555a3f8df in _glfwPlatformInit ()
(gdb) backtrace
#0  0x0000555555a3f8df in _glfwPlatformInit ()
#1  0x0000555555a3b719 in glfwInit ()
#2  0x000055555596993e in LuxCoreApp::RunApp(luxcore::RenderState*, luxcore::Film*) ()
#3  0x000055555590972c in main ()
But are you using an headless terminal ? It looks like your OpenGL support is broken. For command line rendering, without any visual feedback you should use pyluxcoretools console command.
Support LuxCoreRender project with salts and bounties
harishankar
Posts: 4
Joined: Wed Jun 24, 2020 6:48 am

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by harishankar »

Dade wrote: Wed Jun 24, 2020 3:36 pmBut are you using an headless terminal ? It looks like your OpenGL support is broken. For command line rendering, without any visual feedback you should use pyluxcoretools console command.
Not using a headless terminal. Also OpenGL works for me. At least, glxgears works fine. I am using a laptop with dual Nvidia (dedicated) and intel graphics chip. glxgears works with both primusrun and without primusrun.
glxinfo output

Code: Select all

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
...
...
(output snipped)

primusrun glxinfo

Code: Select all

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
...
...
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by Dade »

The crash is at the initialization, inside https://www.glfw.org

There is something in your system GLFW doesn't like at all.

As workaround, try to use the console-only (no OpenGL output) command (pyluxcoretools, console option).
Support LuxCoreRender project with salts and bounties
harishankar
Posts: 4
Joined: Wed Jun 24, 2020 6:48 am

Re: luxcoreui failed with segmentation fault - Linux (Debian)

Post by harishankar »

:? I am using Gnome on wayland. Probably this is causing an issue. Will try again with Gnome on X server.

EDIT: well, it works with Xorg. So Wayland was the issue. Thanks for your help.
Post Reply