Page 1 of 1

game hangs when exiting or restarting since 1.1.63

Posted: Fri Aug 05, 2022 2:57 pm
by fctrusr
When i want to exit the game or the game wants to restart after mod changes it just hangs after it prints Messages like "User exit" to the console.

I need to kill the process or hit ctrl-c twice on the command line.
2635.545 Quitting: user-quit.
^C2645.843 Received SIGINT, shutting down
^C2648.155 Received second SIGINT, terminating immediately

[1.1.65] Crash on game exit

Posted: Sat Aug 06, 2022 11:26 am
by Illiander42
Linux, latest experimental.

Any exit of the game (exit button in main menu, confirm on mod changes) causes factorio to freeze instead of exit.

Re: game hangs when exiting or restarting since 1.1.63

Posted: Sat Aug 06, 2022 11:39 am
by Loewchen
Post the complete log after session with the issue.
Duplicate of viewtopic.php?f=182&t=102982

[1.1.65] Menu quit does not work

Posted: Sat Aug 06, 2022 12:09 pm
by SnelleSjonnie
I play on Linux, with SpaceExploration mod. Just updated to latest experimental today.

When pressing quit, a line is written to the log file, but then the application just hangs.

Tail of the log file, before I had to 'force quit':

Code: Select all

  48.262 Script @__resourceMarker__/control.lua:42: The english.lua table missing `se-holmium-ore`
  59.359 Script @__resourceMarker__/control.lua:42: The english.lua table missing `se-cryonite`
 138.954 Quitting: user-quit.
Killed

Re: game hangs when exiting or restarting since 1.1.63

Posted: Sun Aug 07, 2022 3:42 am
by fctrusr
just verified the issue with 1.1.62, 1.1.63 and 1.1.65.
1.1.62 works as expected when selecting Exit in the Main Menu:

Code: Select all

 292.776 Quitting: user-quit.
 294.412 Goodbye
 
while doing the same in 1.1.63 or 1.1.65 i need to force the program to quit by hitting ctrl-c twice

Code: Select all

  13.031 Quitting: user-quit.
^C  17.581 Received SIGINT, shutting down
^C  21.533 Received second SIGINT, terminating immediately
i also disabled all mods, nothing changed, no need to start a game or load a save, just execute 'bin/x64/factorio'.

According to the timestamps the verification just took less than 30 seconds.

complete factorio-current.log https://paste.debian.net/hidden/a648ab7c/

Re: game hangs when exiting or restarting since 1.1.63

Posted: Sun Aug 07, 2022 9:45 am
by Donion
fctrusr wrote:
Sun Aug 07, 2022 3:42 am
1.1.62 works as expected when selecting Exit in the Main Menu:

while doing the same in 1.1.63 or 1.1.65 i need to force the program to quit by hitting ctrl-c twice
1.1.62 uses the ALSA driver, 1.1.63 and newer also has PulseAudio driver, which is used by default.
You should be able to force the ALSA driver by setting an environment variable:

Code: Select all

SDL_AUDIODRIVER=alsa
Could you also try using the Allegro audio backend (it also has both PulseAudio and ALSA driver) on 1.1.63 or newer and check how Factorio shows up in your sound settings (or in pavucontrol if you have it installed).

Re: game hangs when exiting or restarting since 1.1.63

Posted: Sun Aug 07, 2022 1:01 pm
by Illiander42
Tried with ALSA launch option, no change.

Additional info: I have to delete the .lock file before starting Factorio again.

Allegro backend setting change in config file solves issue.