steamtinkerlaunch icon indicating copy to clipboard operation
steamtinkerlaunch copied to clipboard

`Use Mangoapp` option results in `## GAMESTOP after '0' seconds playtime` but game is still running

Open gu1ll0me opened this issue 2 years ago • 1 comments

When checking Use Mangoapp option in the game menu, the tray icon close right after the game starts. The game is still running but the log show ## GAMESTOP after '0' seconds playtime.

mer 14 sep 2022 13:08:10 EDT INFO - startGame - ## GAMESTART HERE ###
mer 14 sep 2022 13:08:10 EDT INFO - restoreOrgVars - Restoring previously cleared Variables
Wed Sep 14 13:08:10 EDT 2022 INFO - startGame - Using mangoapp
Wed Sep 14 13:08:10 EDT 2022 INFO - gameScopeArgs - Using following gamescope arguments: '--'
mer 14 sep 2022 13:08:10 EDT INFO - startGame - Symlink '/home/user/.config/steamtinkerlaunch/logs/gamelaunch/title/SteamWorld Dig 2.log' already exists
Wed Sep 14 13:08:10 EDT 2022 INFO - runMA - ## MANGOAPP GAMESCOPE LAUNCH COMMAND: '/usr/bin/gamescope --'
mer 14 sep 2022 13:08:10 EDT INFO - startGame - ## GAMESTOP after '0' seconds playtime
mer 14 sep 2022 13:08:10 EDT STOP - ######### SteamTinkerLaunch v11.0 #########
mer 14 sep 2022 13:08:10 EDT STOP - ######### CLEANUP #########
mer 14 sep 2022 13:08:10 EDT INFO - closeSTL - closing STL
mer 14 sep 2022 13:08:10 EDT INFO - updateConfigEntry - Emptying 'CUSTOMCMD' for '/home/user/.config/steamtinkerlaunch/default_template.conf'
mer 14 sep 2022 13:08:10 EDT INFO - updateConfigEntry - Option 'CUSTOMCMD' is updated with the new value 'echo' in config 'default_template.conf'
mer 14 sep 2022 13:08:10 EDT INFO - closeSTL - Creating '/dev/shm/steamtinkerlaunch/steamtinkerlaunch-closing.tmp'
mer 14 sep 2022 13:08:10 EDT INFO - checkPlayTime - The game was not started via 'steamtinkerlaunch' but directly from Steam - skipping Crash Requester
mer 14 sep 2022 13:08:10 EDT INFO - closeSTL - Game 'SteamWorld Dig 2 (571310)' exited - cleaning up custom processes if necessary
mer 14 sep 2022 13:08:10 EDT INFO - closeTrayIcon - Closing TrayIcon '42084'

gu1ll0me avatar Sep 14 '22 17:09 gu1ll0me

The above commit should fix the issue. It might lead to other complications on other constellations, but the added WARN log should help to detect possible regressions caused by this.

frostworx avatar Sep 15 '22 13:09 frostworx

ping

frostworx avatar Sep 24 '22 07:09 frostworx

Same problem on my side. The tray icon close when the game starts.

sam 24 sep 2022 07:17:22 EDT INFO - startGame - ## GAMESTART HERE ###
sam 24 sep 2022 07:17:22 EDT INFO - restoreOrgVars - Restoring previously cleared Variables
Sat Sep 24 07:17:22 EDT 2022 INFO - startGame - Using mangoapp
sam 24 sep 2022 07:17:22 EDT INFO - updateWinRes - The Window 'SteamTinkerLaunch-OpenSettings' was closed - the resolution didn't change - nothing to do
Sat Sep 24 07:17:22 EDT 2022 INFO - gameScopeArgs - Using following gamescope arguments: '--'
Sat Sep 24 07:17:22 EDT 2022 INFO - runMA - ## MANGOAPP GAMESCOPE LAUNCH COMMAND: '/usr/bin/gamescope --'
sam 24 sep 2022 07:17:22 EDT INFO - startGame - Symlink '/home/user/.config/steamtinkerlaunch/logs/gamelaunch/title/SteamWorld Dig 2.log' already exists
sam 24 sep 2022 07:17:22 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 
sam 24 sep 2022 07:17:22 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 
sam 24 sep 2022 07:17:22 EDT WAIT - waitForGamePid - Waiting for game process 
sam 24 sep 2022 07:17:23 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 
sam 24 sep 2022 07:17:23 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 
sam 24 sep 2022 07:17:23 EDT WAIT - waitForGamePid - Waiting for game process 
sam 24 sep 2022 07:17:24 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 27469
sam 24 sep 2022 07:17:24 EDT INFO - GAMEPID - Found gamewindow 'SteamWorld Dig 2' PID 27469
sam 24 sep 2022 07:17:24 EDT INFO - waitForGamePid - Game process found at 27469
sam 24 sep 2022 07:17:24 EDT INFO - startGame - mangoapp game launch pid is 27879
sam 24 sep 2022 07:17:24 EDT INFO - startGame - Waiting for the process '27879' to finish
sam 24 sep 2022 07:17:24 EDT INFO - startGame - mangoapp game launch finished - closing
sam 24 sep 2022 07:17:24 EDT INFO - startGame - ## GAMESTOP after '2' seconds playtime
sam 24 sep 2022 07:17:24 EDT STOP - ######### SteamTinkerLaunch v11.11 #########
sam 24 sep 2022 07:17:24 EDT STOP - ######### CLEANUP #########
sam 24 sep 2022 07:17:24 EDT INFO - closeSTL - closing STL

gu1ll0me avatar Sep 24 '22 11:09 gu1ll0me

~~> sam 24 sep 2022 07:17:24 EDT STOP - ######### SteamTinkerLaunch v11.11 #########~~

edit: whoops... full log please...

frostworx avatar Sep 24 '22 11:09 frostworx

Just noticed a similar problem when using a custom script with ONLY_CUSTOMCMD enabled to run Factorio (native Linux game). SteamTinkerrLaunch's tray icon closes after the CUSTOMCMD ends. Perhaps this is related? Maybe the MangoApp launch finishes and STL thinks the game is closed so it closes itself, like how it closes itself when the custom command finishes even though the game is still running.

Not entirely sure it's relevant to attach a log when I'm really only chiming in to say these two might be related, but I will do so anyway in case it has any potential clues :smiley: I'm not really concerned with STL in my case, so this isn't a hijack to try and get attention on a different issue. Just mentioning this in case they're related as they share similar symptoms and similar logging.

steamtinkerlaunch.log

Note these lines which are a bit similar to OP's log:

Tue Sep 27 20:52:35 BST 2022 INFO - checkCustomLaunch - ## CUSTOMCMD STOPPED after '5' seconds playtime
Tue Sep 27 20:52:35 BST 2022 INFO - closeSTL - closing STL
Tue Sep 27 20:52:35 BST 2022 INFO - updateConfigEntry - Emptying 'CUSTOMCMD' for '/home/username/.config/steamtinkerlaunch/default_template.conf'
Tue Sep 27 20:52:35 BST 2022 INFO - updateConfigEntry - Option 'CUSTOMCMD' is updated with the new value 'echo' in config 'default_template.conf'
Tue Sep 27 20:52:35 BST 2022 INFO - closeSTL - Creating '/dev/shm/steamtinkerlaunch/steamtinkerlaunch-closing.tmp'
Tue Sep 27 20:52:35 BST 2022 INFO - checkPlayTime - The game was not started via 'steamtinkerlaunch' but directly from Steam - skipping Crash Requester
Tue Sep 27 20:52:35 BST 2022 INFO - closeSTL - Game 'Factorio (427520)' exited - cleaning up custom processes if necessary
Tue Sep 27 20:52:35 BST 2022 INFO - closeTrayIcon - Closing TrayIcon '91134'
Tue Sep 27 20:52:36 BST 2022 INFO - closeSTL - Removing '/dev/shm/steamtinkerlaunch/steamtinkerlaunch-closing.tmp'
Tue Sep 27 20:52:36 BST 2022 STOP - ######### closeSTL SteamTinkerLaunch v11.12.20220924 #########

Also note that as far as I know, the script isn't really "crashing", it's just completing.

sonic2kk avatar Sep 27 '22 20:09 sonic2kk

Thanks for trying to help @sonic2kk, but no, that is not related (not unusual that a custom command stopping can't be detected. likely depends on the custom script).

Just re-tested again the original issue and it just works fine for me, so again a full log is needed (wild glass sphere guess: game window name related)

frostworx avatar Sep 28 '22 16:09 frostworx