-
Notifications
You must be signed in to change notification settings - Fork 85
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
Hot reload crashes with error too many threads #717
Comments
setting this to low priority because it does not happen often and its only a dev thing. Investigating this might help us reduce our resource leak (or is it called thread leak ?) when loading another game or when quieting to main menu. |
The game itself mem leaks when quitting to main menu because it doesn't acutally unload the previous scene. |
What do you mean by that? |
Can't remember who said it, one of the Paradox people I think; that the game doesn't properly unload the previous scene when exiting to main menu. |
Was this issue caused by double-reload problem described in #718 (comment) ? |
I Do not know @aubergine10 . Its not all that easy to reproduce. I shall see. I totally forgot to add crash log. I will add logs if/when it happens next. |
were those the crash logs in the PR that just got merged? #725 |
@aubergine10 not sure which crash logs are you talking about but the logs in #725 were not crash logs. they were success logs. I haven't got a crash log yet. EDIT: and if I did I will post it to here and not a PR |
related #730 (comment) |
I closed this because I have not observed this since I have fixed the Double hot reload issue. |
@kianzarrin do you remember the issue/pr number where that change was made (just so the tickets can be linked). There are several issues mentioned above, was it one of those? |
#725 was the PR that seems to have fixed this issue. |
When I hot reload a lot I get error "too many threads" and then the game crashes.
my memory is vague. I don't remember if I was swapping the DLL while the previous one was being loaded.
This doesn't happen too often though.
might be related to https://github.com/CitiesSkylinesMods/TMPE/pull/640/files/5a3ef25473a3696012317422aafbbd4e3bad59c2#r375479944 and #640 (comment)
we need to check stack trace and look for thread leak.
unloading DLL only calls OnDisable. It does not call the OnRelease() of loading extension. What does it do to threading extension? In any case the OnRelease() override of our threading extension is empty so I am not sure if that makes a difference. I thinl the game no longer calls overrides from old threading extension DLL ... I hope.
EDIT:
Fixing this is not so important in itself but it might help us improve our code and hunt down some other hidden bugs.
The text was updated successfully, but these errors were encountered: