diddlesnaps / supertuxkart

MIT License
11 stars 6 forks source link

[Bug]: STK segfaults on some Intel hardware, likely due to old Mesa version #23

Open qwertychouskie opened 1 year ago

qwertychouskie commented 1 year ago

What happened?

(Issue copied from https://github.com/supertuxkart/stk-code/issues/4866, original author is @AndKe)

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

What should have happened?

(Additional note by @QwertyChouskie: Likely this issue is caused by the mismatch between the use of i965 in old versions of Mesa and Crocus in newer versions (>= 22.0.0). I suspect using a newer version of Mesa in the snap will fix the issue. Mesa 22.0 and later should do the trick, so it look like e.g. https://snapcraft.io/mesa-core22 should work.)

Output of snap info $snap_name

N/A

Output of snap connections $snap_name

N/A

Output of snap version

N/A

Relevant log output

No response

Teminal output of app

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:~$
eslerm commented 8 months ago

https://github.com/diddlesnaps/supertuxkart/pull/24 resolves this issue.