supertuxkart / stk-code

The code base of supertuxkart
Other
4.51k stars 1.06k forks source link

Segfault when starting a race. #4866

Closed AndKe closed 1 year ago

AndKe commented 1 year ago

Description

With even lowest graphics settings, starting a race == crash.

Steps to reproduce

Start any race, observe crash

Configuration

STK release version: 1.3

Ubuntu 23.04 repository

System: (see terminal)

Graphics card: (see terminal log)

CPU: (see terminal log)

Additional information

sigurd@sigurd-ThinkCentre-M93p:~$ supertuxkart
[verbose  ] main: Error messages and other text output will be logged to /home/sigurd/snap/supertuxkart/645/.config/supertuxkart/config-0.10/stdout.log.
[info   ] [FileManager]: Data files will be fetched from: '/snap/supertuxkart/645/usr/share/supertuxkart/data/'
[info   ] [FileManager]: User directory is '/home/sigurd/snap/supertuxkart/645/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/sigurd/snap/supertuxkart/645/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/sigurd/snap/supertuxkart/645/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/sigurd/snap/supertuxkart/645/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/snap/supertuxkart/645/usr/share/supertuxkart/data/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US.UTF-8'.
[verbose  ] translation: Language 'English (United States)'.
..:: Antarctica Rendering Engine 2.0 ::..
[info   ] [IrrDriver Logger]: ..:: Antarctica Rendering Engine 2.0 ::..
[info   ] [IrrDriver Logger]: SDL Version 2.0.8
[info   ] [IrrDriver Logger]: Using renderer: OpenGL 3.3
[info   ] [IrrDriver Logger]: Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1): Intel Open Source Technology Center
[info   ] [IrrDriver Logger]: OpenGL driver version is 1.2 or better.
[info   ] [IrrDriver Logger]: GLSL version: 3.3
[info   ] IrrDriver: OpenGL version: 3.3
[info   ] IrrDriver: OpenGL vendor: Intel Open Source Technology Center
[info   ] IrrDriver: OpenGL renderer: Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1)
[info   ] IrrDriver: OpenGL version string: 3.3 (Core Profile) Mesa 20.0.8
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Arrays of Arrays Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: EXT Texture Compression S3TC Present
[info   ] GLDriver: ARB Uniform Buffer Object Present
[info   ] GLDriver: ARB Explicit Attrib Location Present
[info   ] GLDriver: EXT Texture Filter Anisotropic Present
[info   ] GLDriver: Geometry Shaders Present
[info   ] GLDriver: ARB Texture Buffer Object Present
[info   ] GLDriver: ARB Texture Swizzle Present
[info   ] GLDriver: ARB Pixel Buffer Object Present
[info   ] GLDriver: ARB Sampler Objects Present
[info   ] GLDriver: ARB Vertex Type 2_10_10_10_rev Present
[info   ] GLDriver: ARB Instanced Arrays Present
[info   ] SharedGPUObjects: Hardware Skinning enabled, method: TBO, max bones: 1024
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/screenquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/motion_blur.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/lightning.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/primitive2dlist.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/texturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/uniformcolortexturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/texturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/coloredquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/coloredquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/colortexturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/colortexturedquad.frag
[info   ] irr_driver: GLSL supported.
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_solid.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_skinning.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_decal.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_grass_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_grass.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_ghost.frag
[info   ] HTTPRequest: Downloading https://online.supertuxkart.net/dl/xml/online_news.xml
[info   ] GrandPrixManager: Loading Grand Prix files from /snap/supertuxkart/645/usr/share/supertuxkart/data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from /home/sigurd/snap/supertuxkart/645/.local/share/supertuxkart/grandprix/
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[info   ] addons: Using cached addons.xml.
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] [IrrDriver Logger]: ..:: Antarctica Rendering Engine 2.0 ::..
[info   ] [IrrDriver Logger]: SDL Version 2.0.8
[info   ] [IrrDriver Logger]: Using renderer: OpenGL 3.3
[info   ] [IrrDriver Logger]: Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1): Intel Open Source Technology Center
[info   ] [IrrDriver Logger]: OpenGL driver version is 1.2 or better.
[info   ] [IrrDriver Logger]: GLSL version: 3.3
[info   ] IrrDriver: OpenGL version: 3.3
[info   ] IrrDriver: OpenGL vendor: Intel Open Source Technology Center
[info   ] IrrDriver: OpenGL renderer: Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1)
[info   ] IrrDriver: OpenGL version string: 3.3 (Core Profile) Mesa 20.0.8
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Arrays of Arrays Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: EXT Texture Compression S3TC Present
[info   ] GLDriver: ARB Uniform Buffer Object Present
[info   ] GLDriver: ARB Explicit Attrib Location Present
[info   ] GLDriver: EXT Texture Filter Anisotropic Present
[info   ] GLDriver: Geometry Shaders Present
[info   ] GLDriver: ARB Texture Buffer Object Present
[info   ] GLDriver: ARB Texture Swizzle Present
[info   ] GLDriver: ARB Pixel Buffer Object Present
[info   ] GLDriver: ARB Sampler Objects Present
[info   ] GLDriver: ARB Vertex Type 2_10_10_10_rev Present
[info   ] GLDriver: ARB Instanced Arrays Present
[info   ] SharedGPUObjects: Hardware Skinning enabled, method: TBO, max bones: 1024
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/screenquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/motion_blur.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/lightning.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/primitive2dlist.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/texturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/uniformcolortexturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/texturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/coloredquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/coloredquad.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/colortexturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/colortexturedquad.frag
[info   ] irr_driver: GLSL supported.
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_solid.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_skinning.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_decal.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_grass_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_grass.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sp_ghost.frag
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/simple_particle.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/simple_particle.frag
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/alphatest_particle.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/alphatest_particle.frag
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-spinner of type 1 has no dimensions
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-text of type 5 has no dimensions
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget ai-blue-spinner of type 1 has no dimensions
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget ai-blue-text of type 5 has no dimensions
[verbose  ] RaceManager: Nb of karts=4, ghost karts:0 ai:3 players:1

[info   ] [FileManager]: Creating directory(ies) '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/tracks/sandtrack'
[info   ] FileManager: Creating directory '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/tracks/sandtrack/'.
[info   ] [FileManager]: Creating directory(ies) '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/deprecatedtex'
[info   ] FileManager: Creating directory '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/deprecatedtex/'.
[info   ] Track: Overall scene complexity estimated at 242
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sky.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sky.frag
Segmentation fault (core dumped)
sigurd@sigurd-ThinkCentre-M93p:~$ ager: Creating directory '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/tracks/sandtrack/'.
[info   ] [FileManager]: Creating directory(ies) '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/deprecatedtex'
[info   ] FileManager: Creating directory '/home/sigurd/snap/supertuxkart/common/.cache/supertuxkart/cached-textures/resized_512/deprecatedtex/'.
[info   ] Track: Overall scene complexity estimated at 242
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sky.vert
[info   ] ShaderFilesManager: Compiling shader: /snap/supertuxkart/645/usr/share/supertuxkart/data/shaders/sky.frag
Segmentation fault (core dumped)
sigurd@sigurd-ThinkCentre-M93p:~$
Benau commented 1 year ago

You can try to edit config.xml inside your config-0.10 folder and edit it with force_legacy_device="true" (default false) which will try to use a different OpenGL code.

AndKe commented 1 year ago

@Benau Thank you - this worked perfectly. (except for the warning about old drivers when starting the game) This setting could very well be exposed in the video settings. Especially as this computer is not "that old" :)

qwertychouskie commented 1 year ago

If you install the Apt version instead of the Snap version, does it work without force_legacy_device="true"? I suspect the real issue here is the old Mesa version shipped by Snap.

AndKe commented 1 year ago

@qwertychouskie sorry for the late reply. The apt version works flawlessly without the need for any change.

qwertychouskie commented 1 year ago

Since this issue appears to be specific to the Snap package, I opened https://github.com/diddlesnaps/supertuxkart/issues/23