NoMachine for Linux / Getting VirtualGL working / Reply To: Getting VirtualGL working
As I see in the glxinfo output, it looks like the graphics hardware is being used. Is maybe the server headless? Or is the monitor turned off? In some cases graphics drivers slow down GPU rendering considerably in case no monitor is detected.
The system has a monitor connected. And /var/log/Xorg.0.log confirms that it is turned on and communicates with the system.
In addition, when I connect to the physical desktop, OpenGL is working fine and the application shows good performance.
Only in a virtual desktop the slowness problem exists.
An observation I made today: Right after a reboot, VirtualGL was also working in a virtual desktop and it had good performance! While playing around with it, suddenly it became slow. At roughly the same time, the following messages were added to ‘dmesg’:
[Thu Jun 12 12:14:56 2025] show_signal_msg: 50 callbacks suppressed
[Thu Jun 12 12:14:56 2025] libnxegl.so[5007]: segfault at 3626 ip 0000000000003626 sp 00007ffc34b692f0 error 14 in libnxegl.so[7f9e06c18000+c000]
[Thu Jun 12 12:14:56 2025] Code: Unable to access opcode bytes at RIP 0x35fc.
[Thu Jun 12 12:14:57 2025] libnxegl.so[5010]: segfault at 3626 ip 0000000000003626 sp 00007ffff9cce420 error 14 in libnxegl.so[7f5ef1b23000+c000]
[Thu Jun 12 12:14:57 2025] Code: Unable to access opcode bytes at RIP 0x35fc.
The syslog contains the same messages, plus an empty stacktrace and the information that a coredump was written. I can provide those, if useful.
And one further thing I noticed:
When I login to a physical desktop, the environment variable LD_PRELOAD is defined:
% env | grep NX
LD_PRELOAD=/opt/NX/lib/libnxegl.so
Still OpenGL is working and performance is good.
But other programs like e.g. ‘less’ complain about it:
ERROR: ld.so: object ‘/opt/NX/lib/libnxegl.so’ from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
I hope that’s not too much stuff in one posting…
Let me know if I can provide more details or do some experiments. Happy to help.
