supertuxkart / stk-code

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

STK sometimes crashes when it's brought to background #5136

Open STK-FabianF opened 3 months ago

STK-FabianF commented 3 months ago

Description

When minimizing STK or opening another program (thus bringing STK to the background) and then trying to get back to STK by clicking the icon in the taskbar, it sometimes crashes - only shows black screen in the preview and doesn't open anymore, however music still plays. I suspect STK only crashes when you double-click the icon, but I haven't investigated enough to be sure about it. Video: https://youtu.be/50mWJ7Mt45A (double-click that causes crash at 0:35)

Steps to reproduce

  1. Open STK
  2. Minimize STK/open another program (thus bring STK to the background)
  3. Try to get back to STK
  4. You'll see that it's impossible Video: https://youtu.be/50mWJ7Mt45A

Configuration

STK release version: 1.4

STK Source (PPA, distribution package, official binary, etc.): probably official page?

System: Windows

Graphics card: Intel

Additional information

stdout.log:

[info   ] [FileManager]: Data files will be fetched from: '../data/'
[info   ] [FileManager]: User directory is 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/'.
[info   ] [FileManager]: Screenshots will be stored in 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '../data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '../data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '../data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '../data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '../data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '../data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '../data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '../data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '../data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '../data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '../data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '../data/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '../data/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '../data/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '../data/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '../data/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '../data/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en'.
[verbose  ] translation: Language 'English'.
[info   ] [IrrDriver Logger]: ..:: Antarctica Rendering Engine 2.0 ::..
[info   ] [IrrDriver Logger]: Failed to init SDL sensor!: SDL not built with sensor support
[info   ] [IrrDriver Logger]: SDL Version 2.24.1
[info   ] [IrrDriver Logger]: Using renderer: OpenGL 4.3.0
[info   ] [IrrDriver Logger]: Intel(R) Iris(R) Xe Graphics: Intel
[info   ] [IrrDriver Logger]: OpenGL driver version is 1.2 or better.
[info   ] [IrrDriver Logger]: GLSL version: 4.3
[info   ] IrrDriver: OpenGL version: 4.3
[info   ] IrrDriver: OpenGL vendor: Intel
[info   ] IrrDriver: OpenGL renderer: Intel(R) Iris(R) Xe Graphics
[info   ] IrrDriver: OpenGL version string: 4.3.0 - Build 30.0.101.1404
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Compute Shader Present
[info   ] GLDriver: ARB Arrays of Arrays Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: ARB Texture View Present
[info   ] GLDriver: ARB Image Load Store Present
[info   ] GLDriver: ARB Shader Atomic Counters Present
[info   ] GLDriver: ARB Shader Storage Buffer Object 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: C:/Program Files/SuperTuxKart 1.4/data/shaders/screenquad.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/motion_blur.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/lightning.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/primitive2dlist.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/transparent.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/texturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/uniformcolortexturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/texturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/coloredquad.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/coloredquad.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/colortexturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/colortexturedquad.frag
[info   ] irr_driver: GLSL supported.
[info   ] GUI: Loading skin data from file: ../data/skins/peach/stkskin.xml
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_pass.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_solid.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/white.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_skinning.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_skinning_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_normal_map.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_shadow_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_decal.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_grass_pass.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_grass.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_grass_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_unlit.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_transparent.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_ghost.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_dynamic_night_bloom.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_tilling_mitigation.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_vertical_mapping.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_road_blending.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_displace.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/colorize.frag
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_normal_visualizer.vert
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_normal_visualizer.geom
[info   ] ShaderFilesManager: Compiling shader: C:/Program Files/SuperTuxKart 1.4/data/shaders/sp_normal_visualizer.frag
[info   ] HTTPRequest: Sending userid=164585&token=************************ to https://online.supertuxkart.net/api/v2/user/saved-session/
[info   ] HTTPRequest: Downloading https://online.supertuxkart.net/dl/xml/online_news.xml
[info   ] addons: Using cached addons.xml.
[warn   ] Track: NavMesh is not found for arena About the Garage, disable AI for it.

[warn   ] track: Music information file 'amazon_jungle.music' not found for track 'Amazonian Journey' - ignored.

[warn   ] track: Music information for track 'Amazonian Journey' replaced by default music.

[warn   ] Track: NavMesh is not found for arena Amphitheatre, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Area 498, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Champs Castle, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Circle Of Destiny, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Circle of ubuntu, disable AI for it.

[warn   ] track: Music information file 'xeon6.music' not found for track 'Coloseum' - ignored.

[warn   ] track: Music information for track 'Coloseum' replaced by default music.

[warn   ] Track: NavMesh is not found for arena Coloseum, disable AI for it.

[warn   ] track: Music information file 'TheDeadRocks-EasyJob.music' not found for track 'Coyote Canyon' - ignored.

[warn   ] track: Music information for track 'Coyote Canyon' replaced by default music.

[warn   ] track: Music information file 'ChillCarrier-Druckverlust.music' not found for track 'Doing the Dishes' - ignored.

[warn   ] track: Music information for track 'Doing the Dishes' replaced by default music.

[warn   ] track: Music information file 'extreme.music' not found for track 'Extreme playground stadium' - ignored.

[warn   ] track: Music information for track 'Extreme playground stadium' replaced by default music.

[warn   ] Track: NavMesh is not found for arena Ice cube , disable AI for it.

[warn   ] Track: NavMesh is not found for arena Ice cube , disable AI for it.

[warn   ] Track: NavMesh is not found for arena Interplanetary War, disable AI for it.

[warn   ] track: Music information file 'Origin.music' not found for track 'labirus' - ignored.

[warn   ] track: Music information for track 'labirus' replaced by default music.

[warn   ] Track: NavMesh is not found for arena labirus, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Lava island, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Lost forest, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Lost Pyramids, disable AI for it.

[warn   ] track: Music information file 'TheDeadRocks-GreenSecretFromAmazonia.music' not found for track 'Lost Speedway' - ignored.

[warn   ] track: Music information for track 'Lost Speedway' replaced by default music.

[warn   ] Track: NavMesh is not found for arena Magma Battle, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Mall, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Mall, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Marcel's Fun House, disable AI for it.

[warn   ] [XMLNode]: More than one root element in 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/tracks/mk64blockfort/battle.music' - ignored.
[error  ] STKTexManager: Texture C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/tracks/myNewTrack/screenshot.jpg not found or invalid.
[warn   ] Track: NavMesh is not found for arena Parking Lot, disable AI for it.

[warn   ] track: Music information file 'bay' not found for track 'Smash Island (Smash Karts)' - ignored.

[warn   ] track: Music information for track 'Smash Island (Smash Karts)' replaced by default music.

[warn   ] Track: NavMesh is not found for arena Soccer arena, disable AI for it.

[warn   ] Track: NavMesh is not found for arena STK Mercury, disable AI for it.

[warn   ] Track: NavMesh is not found for arena The lost subsea, disable AI for it.

[warn   ] Track: NavMesh is not found for arena The Plains, disable AI for it.

[warn   ] Track: NavMesh is not found for arena The Plains, disable AI for it.

[warn   ] track: Music information file 'after_the_flames.music' not found for track 'The Ring' - ignored.

[warn   ] track: Music information for track 'The Ring' replaced by default music.

[warn   ] Track: NavMesh is not found for arena TSS, disable AI for it.

[warn   ] Track: NavMesh is not found for arena Warehouse, disable AI for it.

[info   ] GrandPrixManager: Loading Grand Prix files from ../data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/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
[warn   ] Material: Cannot determine texture full path: genericshadow.png
[warn   ] Material::initParticlesEffect: Error loading particles 'smoke80.xml' for material 'bluesidegrid.png'

[warn   ] Material::initParticlesEffect: Error loading particles 'smoke80.xml' for material 'redsidegrid.png'

[warn   ] Material: Cannot determine texture full path: emulewbeel.png
[warn   ] Material: Missing container id for icon.png, no texture compression for it will be done.
[error  ] STKTexManager: Error while loading kart 'Enforcer':
[error  ] STKTexManager: Texture C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/karts/syncopia-stadium/icon.png not found or invalid.
[error  ] EventHandler: Error while loading kart 'Enforcer':
[error  ] Irrlicht: Could not load mesh, because file could not be opened: : C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/karts/syncopia-stadium/enforcer.spm
[error  ] Kart_Model: Problems loading mesh 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/karts/syncopia-stadium/enforcer.spm' - kart 'addon_syncopia-stadium' willnot be available.
[error  ] [KartPropertiesManager]: Giving up loading 'C:\Users\...\AppData\Roaming/supertuxkart/config-0.10/../addons/karts/syncopia-stadium/kart.xml': Cannot load kart models
[warn   ] Material: Cannot determine texture full path: e
[info   ] Achievements: Synching achievement 1,2,3,4,5,6,7,8,9,11,12 to server.
[info   ] HTTPRequest: Sending userid=164585&token=************************&achievementid=1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C11%2C12 to https://online.supertuxkart.net/api/v2/user/achieving/
[info   ] HTTPRequest: Sending userid=164585&token=************************&visitingid=164585 to https://online.supertuxkart.net/api/v2/user/get-friends-list/
[info   ] HTTPRequest: Sending userid=164585&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Downloading https://discord.com/api/v8/oauth2/applications/817760324983324753/assets
[info   ] HTTPRequest: Sending userid=164585&token=************************ to https://online.supertuxkart.net/api/v2/user/client-quit/
[verbose  ] Thread: Start waiting 1521099.203000
[verbose  ] Thread: Waited 0.001000 seconds for thread to become deleteable.
[verbose  ] Thread: Stop waiting 1521099.204000
[verbose  ] Thread: Start waiting 1521099.250000
[verbose  ] Thread: Waited 0.415000 seconds for thread to become deleteable.
[verbose  ] Thread: Stop waiting 1521099.666000
[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.
CodingJellyfish commented 3 months ago

There seems to be no crash during the whole process. I suspect it's a bug from the windows manager.

STK-FabianF commented 3 months ago

I don't know, at least this problem happens only with STK

pedropaulosuzuki commented 2 months ago

I don't know, at least this problem happens only with STK

Maybe we could get some tester to see if this happens on Win10 as well, or if it is a Win11 exclusive issue.