Reproduction:
1) Set enviroment variable SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=1
2) Launch Civilization VI
3) Start new singleplayer game(IMPORTANT: crash isn't reproducible from main menu)
4) Click on other application on second screen.
Observed behaviour: game receives SEGFAULT
Expected behaviour: game continues to work as usual.
This is specifically caused by minimization of game after lost focus.
With SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 game wont crash after lost focus.
Link to core dump(can't upload it here - it's 3.3 GB big):
https://drive.google.com/file/d/1OQp0HxYAV0MQnKMo8Q0SLFC3BCdZtB5v/view?usp=sharing
Launching game through Steam doesn't change anything.
Launching game from terminal with --aspyr-fullscreen key changes behaviour - After loosing focus game hangs instead of crashing, and game window dissappears from window manager. Also there are less messages in stdout. This is log at the point when game hanged:
1) Set enviroment variable SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=1
2) Launch Civilization VI
3) Start new singleplayer game(IMPORTANT: crash isn't reproducible from main menu)
4) Click on other application on second screen.
Observed behaviour: game receives SEGFAULT
Expected behaviour: game continues to work as usual.
This is specifically caused by minimization of game after lost focus.
With SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 game wont crash after lost focus.
Code:
andrii@ubuntu-desktop:~$ export LD_LIBRARY_PATH="/mnt/nvme0n1p1/SteamLibrary/steamapps/common/Sid Meier's Civilization VI/"
andrii@ubuntu-desktop:~$ export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=1
andrii@ubuntu-desktop:~$ /mnt/nvme0n1p1/SteamLibrary/steamapps/common/Sid\ Meier\'s\ Civilization\ VI/Civ6Sub --disable-web-security
Shutdown handler: initalize.
Setting breakpad minidump AppID = 597260
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198072768521 [API loaded no]
Timed out waiting for game mapping!
Civ6App::AppInit start
RequestStats - failed, 2
RequestStats - failed, 2
Segmentation fault (core dumped)
https://drive.google.com/file/d/1OQp0HxYAV0MQnKMo8Q0SLFC3BCdZtB5v/view?usp=sharing
Code:
andrii@ubuntu-desktop:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
andrii@ubuntu-desktop:~$
Launching game from terminal with --aspyr-fullscreen key changes behaviour - After loosing focus game hangs instead of crashing, and game window dissappears from window manager. Also there are less messages in stdout. This is log at the point when game hanged:
Code:
andrii@ubuntu-desktop:~$ /mnt/nvme0n1p1/SteamLibrary/steamapps/common/Sid\ Meier\'s\ Civilization\ VI/Civ6Sub --disable-web-security --aspyr-fullscreen
Shutdown handler: initalize.
Setting breakpad minidump AppID = 597260
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198072768521 [API loaded no]