PDA

View Full Version : Live crashes on Ubuntu Lucid amd64


Ertial
03-28-2010, 07:50 PM
When I tried to launch Regnum Online on an up-to-date version of Ubuntu 10.04 Lucid Lynx Beta 1 my system suddenly started to run very slow, the starting music was played twice and Regnum Online crashed after a while, which gave me back the control over my system.

It seems that some libGL problems caused the crash. This isn't very unlikely considering the fact that libGL has been moved around a lot in Ubuntu's current development release (Lucid).

I'm running the closed Nvidia drivers as provided from the repository:
qense@nott:~/regnum/live$ LANGUAGE=C apt-cache policy nvidia-current
nvidia-current:
Installed: 195.36.15-0ubuntu1
Candidate: 195.36.15-0ubuntu1
Version table:
*** 195.36.15-0ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ lucid/restricted Packages
100 /var/lib/dpkg/status

The contents of the backtrace:
./game(_ZN10ClientBase14save_backtraceEv+0x5f) [0x6339cf]
./game(_ZN10ClientBase12client_crashEi+0x8) [0x633de8]
/lib/libc.so.6(+0x33af0) [0x7fe317926af0]
/usr/lib/nvidia-current/libGLcore.so.1(+0x8ac61e) [0x7fe3160e861e]
/usr/lib/nvidia-current/libGLcore.so.1(+0xa67ae1) [0x7fe3162a3ae1]
/usr/lib/nvidia-current/libGLcore.so.1(+0x938315) [0x7fe316174315]
/usr/lib/nvidia-current/libGLcore.so.1(+0x936923) [0x7fe316172923]
./game(_ZN8Engine3D12RenderizerGL16render_primitiveE jjj+0x91) [0xb7cbb1]
./game(_ZN8Engine3D12RenderizerGL11render_listERNS_1 7RenderOpListViewsE+0x6b4) [0xb8e034]
./game(_ZN3GUI12CameraWidget12render_sceneEv+0x33d) [0x95e86d]
./game(_ZN3GUI8Drawable6renderEv+0x1c5) [0x90cd25]
./game(_ZN3GUI6Widget11draw_signalENS_9AreaCoordE+0x 130) [0x945430]
./game(_ZN3GUI6Widget11draw_signalENS_9AreaCoordE+0x 176) [0x945476]

Anpu
03-29-2010, 07:26 AM
Hm, I m running Lucid too, and had no problems with Regnum so far. Though I get almost same crash log on Amun, when I zoom out camera.
I have ATI with Mesa/DRI.

Arafails
03-29-2010, 09:27 AM
Well nVidia drivers completely replace the OpenGL driver stack, sharing no code with Mesa, so...

At any rate, I'd suggest the OP could try using an alternate version of the nVidia drivers if possible.

Ertial
03-29-2010, 01:03 PM
Yes, this is most likely limited to the Nvidia drivers. They underwent a major restructure in Lucid and the way libGL was provided has also changed.
I suspect that NGD needs to adapt Regnum in order to work with this new way.

Znurre
04-01-2010, 09:11 PM
Well, NVidia has its own libGL, so whatever Ubuntu did to the OpenGL stack (as Ara pointed out) it should not affect the NVidia drivers.

[znurre@Znurre ~]$ pacman -Ql nvidia-utils | grep libGL
nvidia-utils /usr/lib/libGL.so
nvidia-utils /usr/lib/libGL.so.1
nvidia-utils /usr/lib/libGL.so.195.36.15
nvidia-utils /usr/lib/libGLcore.so.1
nvidia-utils /usr/lib/libGLcore.so.195.36.15[znurre@Znurre ~]$ pacman -Q nvidia
nvidia 195.36.15I am using the latest NVidia drivers on ArchLinux, which is very bleeding edge, and have no problems whatsoever.
The problem does not lie in NGD or the latest NVidia drivers.

Ertial
04-01-2010, 09:16 PM
We've changed the way the OpenGL implementation was named, where it was located and how it was linked a few times when the package layout for the closed drivers was changed.

It could have gone wrong there.


dpkg --listfiles nvidia-current
/.
/etc
/etc/modprobe.d
/etc/OpenCL
/etc/OpenCL/vendors
/etc/OpenCL/vendors/nvidia.icd
/etc/xdg
/etc/xdg/autostart
/usr
/usr/lib
/usr/lib/nvidia-current
/usr/lib/nvidia-current/tls
/usr/lib/nvidia-current/tls/libnvidia-tls.so.195.36.15
/usr/lib/nvidia-current/bin
/usr/lib/nvidia-current/bin/nvidia-bug-report.sh
/usr/lib/nvidia-current/bin/nvidia-xconfig
/usr/lib/nvidia-current/bin/nvidia-smi
/usr/lib/nvidia-current/xorg
/usr/lib/nvidia-current/xorg/nvidia_drv.so
/usr/lib/nvidia-current/xorg/libglx.so.195.36.15
/usr/lib/nvidia-current/libGL.so.195.36.15
/usr/lib/nvidia-current/libGLcore.so.195.36.15
/usr/lib/nvidia-current/libnvidia-cfg.so.195.36.15
/usr/lib/nvidia-current/libnvidia-compiler.so.195.36.15
/usr/lib/nvidia-current/libnvidia-tls.so.195.36.15
/usr/lib/nvidia-current/libcuda.so.195.36.15
/usr/lib/nvidia-current/libOpenCL.so.1.0.0
/usr/lib/nvidia-current/vdpau
/usr/lib/nvidia-current/vdpau/libvdpau_nvidia.so.195.36.15
/usr/lib/nvidia-current/libXvMCNVIDIA.so.195.36.15
/usr/lib/nvidia-current/ld.so.conf
/usr/lib/nvidia-current/modprobe.conf
/usr/lib/nvidia-current/XvMCConfig
/usr/lib/xorg
/usr/lib/xorg/modules
/usr/lib/xorg/modules/drivers
/usr/lib/xorg/modules/extensions
/usr/lib/vdpau
/usr/bin
/usr/include
/usr/include/GL
/usr/include/CL
/usr/include/cuda
/usr/lib32
/usr/lib32/nvidia-current
/usr/lib32/nvidia-current/vdpau
/usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so.195.36.15
/usr/lib32/nvidia-current/tls
/usr/lib32/nvidia-current/tls/libnvidia-tls.so.195.36.15
/usr/lib32/nvidia-current/libGL.so.195.36.15
/usr/lib32/nvidia-current/libGLcore.so.195.36.15
/usr/lib32/nvidia-current/libnvidia-cfg.so.195.36.15
/usr/lib32/nvidia-current/libnvidia-compiler.so.195.36.15
/usr/lib32/nvidia-current/libnvidia-tls.so.195.36.15
/usr/lib32/nvidia-current/libcuda.so.195.36.15
/usr/lib32/nvidia-current/libXvMCNVIDIA.so.195.36.15
/usr/lib32/nvidia-current/libOpenCL.so.1.0.0
/usr/lib32/vdpau
/usr/share
/usr/share/nvidia-current
/usr/share/nvidia-current/ubuntu-nvidia-settings.desktop
/usr/share/nvidia-current/nvidia-autostart.desktop
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/alt-nvidia-current-xconfig.1.gz
/usr/share/man/man1/alt-nvidia-current-settings.1.gz
/usr/share/man/man1/alt-nvidia-current-smi.1.gz
/usr/share/pixmaps
/usr/share/pixmaps/nvidia-current-settings.png
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/nvidia-current.override
/usr/share/doc
/usr/share/doc/nvidia-current
/usr/share/doc/nvidia-current/README.txt.gz
/usr/share/doc/nvidia-current/README.Debian
/usr/share/doc/nvidia-current/copyright
/usr/share/doc/nvidia-current/examples
/usr/share/doc/nvidia-current/examples/XF86Config.sample.gz
/usr/share/doc/nvidia-current/NVIDIA_Changelog.gz
/usr/share/doc/nvidia-current/changelog.Debian.gz
/usr/src
/usr/src/nvidia-current-195.36.15
/usr/src/nvidia-current-195.36.15/patches
/usr/src/nvidia-current-195.36.15/patches/drm_agp_memory-2.6.31.patch
/usr/src/nvidia-current-195.36.15/patches/fall_back_on_mtrr_if_no_pat.patch
/usr/src/nvidia-current-195.36.15/patches/nvidia-rt-compat.patch
/usr/src/nvidia-current-195.36.15/patches/rt_preempt_31.patch
/usr/src/nvidia-current-195.36.15/dkms.conf
/usr/src/nvidia-current-195.36.15/conftest.sh
/usr/src/nvidia-current-195.36.15/cpuopsys.h
/usr/src/nvidia-current-195.36.15/gcc-version-check.c
/usr/src/nvidia-current-195.36.15/Makefile
/usr/src/nvidia-current-195.36.15/makefile
/usr/src/nvidia-current-195.36.15/Makefile.kbuild
/usr/src/nvidia-current-195.36.15/Makefile.nvidia
/usr/src/nvidia-current-195.36.15/nv-i2c.c
/usr/src/nvidia-current-195.36.15/nv-kernel.o
/usr/src/nvidia-current-195.36.15/nv-linux.h
/usr/src/nvidia-current-195.36.15/nv-memdbg.h
/usr/src/nvidia-current-195.36.15/nv-misc.h
/usr/src/nvidia-current-195.36.15/nv-reg.h
/usr/src/nvidia-current-195.36.15/nv-vm.c
/usr/src/nvidia-current-195.36.15/nv-vm.h
/usr/src/nvidia-current-195.36.15/nv-xen.h
/usr/src/nvidia-current-195.36.15/nv.c
/usr/src/nvidia-current-195.36.15/nv.h
/usr/src/nvidia-current-195.36.15/nv_gvi.c
/usr/src/nvidia-current-195.36.15/nvacpi.c
/usr/src/nvidia-current-195.36.15/nvacpitypes.h
/usr/src/nvidia-current-195.36.15/nvreadme.h
/usr/src/nvidia-current-195.36.15/nvtypes.h
/usr/src/nvidia-current-195.36.15/os-agp.c
/usr/src/nvidia-current-195.36.15/os-agp.h
/usr/src/nvidia-current-195.36.15/os-interface.c
/usr/src/nvidia-current-195.36.15/os-interface.h
/usr/src/nvidia-current-195.36.15/os-registry.c
/usr/src/nvidia-current-195.36.15/README
/usr/src/nvidia-current-195.36.15/rmil.h
/usr/src/nvidia-current-195.36.15/rmretval.h
/usr/src/nvidia-current-195.36.15/xapi-sdk.h
/usr/lib/nvidia-current/xorg/libglx.so
/usr/lib/nvidia-current/vdpau/libvdpau_nvidia.so
/usr/lib/nvidia-current/vdpau/libvdpau_nvidia.so.1
/usr/lib/nvidia-current/libnvidia-compiler.so
/usr/lib/nvidia-current/libnvidia-compiler.so.1
/usr/lib/nvidia-current/libOpenCL.so
/usr/lib/nvidia-current/libOpenCL.so.1
/usr/lib/nvidia-current/libOpenCL.so.1.0
/usr/lib/nvidia-current/libnvidia-tls.so.1
/usr/lib/nvidia-current/libcuda.so.1
/usr/lib/nvidia-current/libcuda.so
/usr/lib/nvidia-current/libXvMCNVIDIA_dynamic.so.1
/usr/lib/nvidia-current/libXvMCNVIDIA.so.1
/usr/lib/nvidia-current/libXvMCNVIDIA.so
/usr/lib/nvidia-current/libnvidia-cfg.so
/usr/lib/nvidia-current/libnvidia-cfg.so.1
/usr/lib/nvidia-current/libGLcore.so.1
/usr/lib/nvidia-current/libGL.so
/usr/lib/nvidia-current/libGL.so.1
/usr/lib/libOpenCL.so
/usr/lib32/nvidia-current/libnvidia-compiler.so
/usr/lib32/nvidia-current/libnvidia-compiler.so.1
/usr/lib32/nvidia-current/libOpenCL.so
/usr/lib32/nvidia-current/libOpenCL.so.1
/usr/lib32/nvidia-current/libOpenCL.so.1.0
/usr/lib32/nvidia-current/libnvidia-tls.so.1
/usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so
/usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so.1
/usr/lib32/nvidia-current/libcuda.so.1
/usr/lib32/nvidia-current/libcuda.so
/usr/lib32/nvidia-current/libXvMCNVIDIA_dynamic.so.1
/usr/lib32/nvidia-current/libXvMCNVIDIA.so.1
/usr/lib32/nvidia-current/libXvMCNVIDIA.so
/usr/lib32/nvidia-current/libnvidia-cfg.so
/usr/lib32/nvidia-current/libnvidia-cfg.so.1
/usr/lib32/nvidia-current/libGLcore.so.1
/usr/lib32/nvidia-current/libGL.so
/usr/lib32/nvidia-current/libGL.so.1
/usr/lib32/libOpenCL.so

Ertial
04-02-2010, 12:10 PM
The game seems to work now, I don't know what made it work again, but it does.

Raideniza
04-02-2010, 04:09 PM
The game seems to work now, I don't know what made it work again, but it does.

Maybe you've changed the way the OpenGL implementation was named, again.

Ertial
04-02-2010, 04:18 PM
Maybe you've changed the way the OpenGL implementation was named, again.

No, there was no update for the 'nvidia-current' package.

Arafails
04-03-2010, 09:26 AM
I find it incredibly hard to believe the idea that changing the location of some libraries would cause a crash in those libraries.
In libraries referencing them, maybe, if they were not in the search path properly, but libGLcore.so is pretty danged low-level.

Vythica
04-29-2010, 01:11 AM
I know this thread is sort of old, but the problem was never solved, and now I haz dem.

./game(_ZN10ClientBase14save_backtraceEv+0x69) [0x8267fc9]
./game(_ZN10ClientBase12client_crashEi+0xf) [0x82684bf]
[0xb7795400]
/usr/lib/libGLcore.so.1(+0x491034) [0xb60b2034]

[vyth@nExile ~]$ pacman -Q | grep nvidia
nvidia 195.36.15-2
nvidia-utils 195.36.15-1
[vyth@nExile ~]$



This and installing the Nvidia-beta drivers from Aur. Damnedest thing, I don't know why those were even installed in the first place... came with the default mesa package :(

[vyth@nExile ~]$ sudo pacman -R xf86-video-mach64 xf86-video-mga xf86-video-r128 xf86-video-savage xf86-video-sis xf86-video-tdfx
checking dependencies...
(1/6) removing xf86-video-tdfx [--------------------] 100%
(2/6) removing xf86-video-sis [--------------------] 100%
(3/6) removing xf86-video-savage [--------------------] 100%
(4/6) removing xf86-video-r128 [--------------------] 100%
(5/6) removing xf86-video-mga [--------------------] 100%
(6/6) removing xf86-video-mach64 [--------------------] 100%


Edit: I take that back. It launched the game, but only got 1fps, then it dawned on me that I hadn't restarted , so I did, and then made sure teh correct module loaded, and after all that... Same error as with the stable drivers. :(

Raideniza
04-29-2010, 01:51 PM
Somewhere on this forums is Arathael's fix for libGl issues. Try searching for his started threads.

Vythica
04-29-2010, 03:48 PM
Update: Safemode works.

Anything else crashes the game. With the same segafault.

Arafails
05-01-2010, 08:21 AM
Somewhere on this forums is Arathael's fix for libGl issues. Try searching for his started threads.
That workaround was for a bug where glFlush was being called without an active context, and only affected the 7.5+ Mesa drivers (no useful nVidia driver). Having pointed out where the issue appeared to be Surak had removed the offending piece of code by the end of the week, too, so...

@Vyth: do you have a more complete backtrace than that perchance?