-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process does not quit when game closes, some threads still live #3940
Comments
Most of the threads in that thread dump are marked as The other is
Heck if I know what to make of that. |
The other thing I noticed while I had VisualVM attached is that the heap size was steadily going up during this. From 250 MB to 300 MB over five minutes. Which wouldn't be so weird, except that it's during shutdown. |
So traditionally this has been a prickly area with lots of bugs. Just dig through open and closed issues (and closed PRs) for a nice amount of graceful shutdown issues. In at least some cases it seems related to the game starting a thing and leaving it open (well, okay, put that way that probably describes everything), like entering a network context but then crashing out and bypassing some needed cleanup. I've looked at a thread dump or two myself, but also don't really know how to make heads and tails of it. It happens intermittently enough (and gets better and worse over time) to where it is tricky to just nail down some specific reproducible cases we can examine more closely to identify and fix the responsible bugs. Throwing a profiler in the mix is a huge pool of potential for helping fix both these kinds of issues, other assorted bugs, and our leaks, of which there are definitely several, but in much the same kind of situation. |
Classic problem, resource not freed. |
I've just quit Terasology by the exit button on the main menu, and the window closed but the java process did not end.
While I was typing this up, it eventually closed, about eight minutes after initially logging the "Shutting down Terasology" message.
Discovered in the process of investigating MovingBlocks/TerasologyLauncher#563
Log details and game version
Release 36. Or 81. Or 3.2.0. Which of these numbers is the important one? See attached Terasology.log
Also:
Thread Dump
Computer details
Linux, JDK is liberica-11.
The text was updated successfully, but these errors were encountered: