Crash to desktop with Steam Controller save battery

  • Crash to desktop with Steam Controller save battery

    The game closes to desktop when I have the steam controller connected and after using the keyboard and mouse and leaving the steam controller idle so that it powers down the game crashes out. This also happens when steam on my desktop connects to my steam link which has the controller attached and I am using the keyboard at the computer so I have to remember to power down the steam link before entering the game.

    It would be good if this error is caught and at least a save is made or a prompt to allow the user to force a save prior to the crash - however it would be much better to just handle quietly.
  • I also have a Steamcontroller, unfortunately I cannot reproduce the Crash.
    Please describe once again exactly how the Crash happens.
    AMD Ryzen 7 5800X, 32GB DDR4 3800Mhz, Gigabyte X570 Elite, AMD Radeon RX 6900XT, BeQuiet! Straight Power 650W, BeQuiet! Pure Base 500DX weiß, Monitor LG 35WN65C, Fanatec CSL Elite Wheel+Loadcell Pedale, Saitek Seitekonsole, HP Reverb G2
  • My steam controller is configured to turn itself off after x mins of inactivity to save battery. When it turns off the exits to desktop. I run on linux so this may be specific to the linux version and the way the device is removed from X

    I just did an experiment and forced the controller off by holding the steam icon on the controller and the game freezes for 5 to 10 secs and then exits so I can force the error.
  • I just tried it all again, but it doesn't crash on windows.


    Maybe it is a problem under Linux after all?

    Maybe @caedes should take a look at this.
    AMD Ryzen 7 5800X, 32GB DDR4 3800Mhz, Gigabyte X570 Elite, AMD Radeon RX 6900XT, BeQuiet! Straight Power 650W, BeQuiet! Pure Base 500DX weiß, Monitor LG 35WN65C, Fanatec CSL Elite Wheel+Loadcell Pedale, Saitek Seitekonsole, HP Reverb G2
  • I can confirm this behaviour, and the backtrace I get

    Source Code

    1. CattleAndCrops has crashed with: SIGABRT !
    2. In Thread: 140556407310912 ("CattleAndCrops.")
    3. Backtrace:
    4. CattleAndCrops[0xc3f07a]
    5. CattleAndCrops[0xc3f307]
    6. /lib/x86_64-linux-gnu/libpthread.so.0(+0x15540)[0x7fd5d8989540]
    7. /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fd5d87c93eb]
    8. /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fd5d87a8899]
    9. /lib/x86_64-linux-gnu/libc.so.6(+0x9038e)[0x7fd5d881338e]
    10. /lib/x86_64-linux-gnu/libc.so.6(+0x984dc)[0x7fd5d881b4dc]
    11. /lib/x86_64-linux-gnu/libc.so.6(+0x9a13d)[0x7fd5d881d13d]
    12. /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0(+0x74533)[0x7fd5d9532533]
    13. /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0(+0x48a69)[0x7fd5d9506a69]
    14. CattleAndCrops(_ZN9Tombstone14JoystickDeviceD2Ev+0x36)[0xbeb686]
    15. CattleAndCrops(_ZN9Tombstone8InputMgr25HandleJoystickRemoveEventEi+0xc9)[0xbefb89]
    16. CattleAndCrops(_ZN9Tombstone6Engine3RunEv+0x474)[0xb88ea4]
    17. CattleAndCrops(main+0x14d)[0xc3f46d]
    18. /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fd5d87aa1e3]
    19. CattleAndCrops[0xab6239]
    Display All


    Info.

    Source Code

    1. 2020-04-11 21:05:15 INFO : Started Cattle and Crops v0.9.6.5, built Apr 9 2020, 11:52:05, Tombstone Version 2.9.1
    2. 2020-04-11 21:05:16 INFO : Changing $logLevel from INFO (3) to WARN (2)
    3. 2020-04-11 21:05:16 WARN : Operating System: Linux 5.3.0-45-generic #37-Ubuntu SMP Thu Mar 26 20:41:27 UTC 2020 x86_64
    4. 2020-04-11 21:05:16 WARN : CPU vendor_id : GenuineIntel
    5. 2020-04-11 21:05:16 WARN : CPU model name : Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    6. 2020-04-11 21:05:16 WARN : Detected 48160 MB of main memory
    7. 2020-04-11 21:05:16 WARN : GL_VENDOR: NVIDIA Corporation
    8. 2020-04-11 21:05:16 WARN : GL_RENDERER: GeForce GTX 1080 Ti/PCIe/SSE2
    9. 2020-04-11 21:05:16 WARN : GL_VERSION: 3.3.0 NVIDIA 430.50 GLSL_VERSION: 3.30 NVIDIA via Cg compiler
    10. 2020-04-11 21:05:16 WARN : Detected 11264 MB of GPU memory