I’ve recently installed Mint on a clean partition, and set up dual booting to always prefer that partition over the Win10 one (on a separate sdd). At the moment I’m trying Mint for the very first time, seeing how I like it. And truth be told, it’s quite good! However I’ve had 2 system crashes in the last 2 days, and some games crash without an error log (old world went straight to desktop while mid-turn, and ghost of Tsushima crashed after I paused the game when pressing start).

I’d love to be more knowledgeable and figure this out by myself, but I can’t find a starting point to determine what went wrong in any of these instances.

Are there execution logs or actual error logs that I can check somewhere?

  • kumi@feddit.online
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    12 hours ago

    If you launch a process from CLI, you can redirect its standard output (stdout) and standard error (stderr) to files. Errors messages might be there.

    foo >> /tmp/gamelog.out 2>> /tmp/gamelog.err  
    

    Maybe the application is already saving logs or crashdumps to disk. If the game has just crashed, you can search for files modified during the last minute: find $HOME /var/log -mmin -1

    That might turn up some clues on where to look.

    If you have to dig deeper, look into strace (premium subscribers only).

    • kumi@feddit.online
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      Oh, I see now that by “crashes”, you mean your whole system freezes?

      Normally you might not have kernel logs left after that. In preparation if you think it might happen and want to gather the kernel log, you can put up a shell in the background and let this run: sudo dmesg -Tw | sudo tee -a /var/log/mykernel.log