Application displaying "The last time you opened_____, it unexpectedly closed..." error A while ago, I bought a GOG game titled "Enter the Gungeon". One day, while I was playing it, the game suddenly crashed. Now, the game had crashed before and I had opened it up again without any worries, but this time was different. Whenever I tried to open the game, I always received the same error message:

The last time you opened Enter the Gungeon, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?

It doesn't matter which option I choose, the program always crashes. Whenever I open the game on any other user, it works. I have tried messing with the .plist file of the game, restarting my computer, updating my OS, and reinstalling the game (even with updated versions). I have a MacBook Air (13-inch, 2017), and I am one macOS Mojave (version 10.14). I have 8 GB of RAM.

What could be done to fix this error?
You might try deleting any Saved Application State for the app.

You might need to scroll through to find the correct one, as they tend to be named with the convention com.companyname.productname

From the Finder, hit  Cmd ⌘   Shift ⇧   G  for Go to Folder... &amp; copy/paste ~/Library/Saved Application State/

You can safely delete the entire com.companyname.productname folder, it will be recreated at next launch/quit cycle.