Summary: | x11/nvidia-driver-390: games/xmoto: 0.6.1_3 crashes at startup on 13.1 STABLE with ode-0.13_4,1: in gluBuild2DMipmaps () from /usr/local/lib/libGLU.so.1 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> |
Component: | Individual Port(s) | Assignee: | Alexey Dokuchaev <danfe> |
Status: | Open --- | ||
Severity: | Affects Some People | CC: | saper, x11, yuri |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(amdmi3) koobs: maintainer-feedback? (x11) koobs: maintainer-feedback? (acm) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Yuri Victorovich
2022-10-31 00:01:27 UTC
All dependencies: $ pkg info -d xmoto xmoto-0.6.1_3: libxdg-basedir-1.2.2 libxml2-2.10.3_1 sdl_net-1.2.8_3 lua52-5.2.4 sdl_ttf-2.0.11_8 png-1.6.38 libglvnd-1.4.0_2 libGLU-9.0.2_1 jpeg-turbo-2.1.4 curl-7.85.0 sdl-1.2.15_15,2 ode-0.13_4,1 sqlite3-3.39.3_1,1 sdl_mixer-1.2.12_14 ^Triage: Loop in x11 (libGLU) and acm@ (ode) Yuri is this reproducible in any other branch/release version (in/out of poudriere)? This will assist/ease reproduction/isolation (In reply to Kubilay Kocak from comment #2) I only tried with 13.1 STABLE. Also: this system has a very old OpenGL card. This may or may not cause this crash. Likely a Mesa bug. - What exactly GPU do you have? Show "pciconf -l | fgrep vga" output - What OpenGL driver is used? Show "LIBGL_DEBUG=verbose glxinfo 2>&1 | fgrep dri.so" - What OpenGL version it supports? Show "glxinfo -B" output - Can you reproduce using software rendering with LIBGL_ALWAYS_SOFTWARE=1 via environ(7)? - Can you reproduce by raising OpenGL version with allow_higher_compat_version=true via environ(7)? - Can you reproduce with newer OpenGL driver via graphics/mesa-devel? - Can you reproduce with older OpenGL driver by downgrading graphics/mesa-dri? - Can you reproduce with SDL2 via devel/sdl12-compat? - Can you try disabling gluBuild2DMipmaps() in games/xmoto by patching *Texture() from FM_MIPMAP to FM_LINEAR or FM_NEAREST by default? (In reply to Jan Beich from comment #5) Here is the first part of answers: $ pciconf -l | fgrep vga vgapci0@pci0:3:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x104a subvendor=0x19da subdevice=0x6222 This command doesn't return anything: LIBGL_DEBUG=verbose glxinfo 2>&1 | fgrep dri.so $ glxinfo -B name of display: unix:0.0 display: unix:0 screen: 0 direct rendering: Yes Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 2048 MB Total available memory: 2048 MB Currently available dedicated video memory: 1775 MB OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GT 610/PCIe/SSE2 OpenGL core profile version string: 4.5.0 NVIDIA 390.154 OpenGL core profile shading language version string: 4.50 NVIDIA OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5.0 NVIDIA 390.154 OpenGL shading language version string: 4.50 NVIDIA OpenGL context flags: (none) OpenGL profile mask: (none) OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.154 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 Still reproducible with LIBGL_ALWAYS_SOFTWARE=1. Still reproducible with allow_higher_compat_version=true glGetString(GL_VERSION) returns null on this system and xmoto expects !=null. This looks like a bug in /usr/local/lib/libGL-NVIDIA.so.1 The documentation https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGetString.xhtml doesn't say that it can return null. It isn't clear where to report bugs for nvidia-driver-390-390.154 I get the same crash on FreeBSD 14 CURRENT (main-75217c2b470) with nvidia-driver-340 340.108_3 so it does not seem to be specific to this driver only. This looks like a bug in xmoto itself (I have rebuilt graphics/libglvnd WITH_DEBUG=yes) env __GLVND_APP_ERROR_CHECKING=1 gdb /usr/local/bin/xmoto (gdb) run Starting program: /usr/local/bin/xmoto warning: Could not load shared library symbols for [vdso]. Do you need "set solib-search-path" or "set sysroot"? [New LWP 105386 of process 87617] [New LWP 105387 of process 87617] OpenGL function called without a current context Thread 1 received signal SIGABRT, Aborted. looks like OpenGL context has not yet been initialized... |