-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[CAUSE FOUND] Memory leak and crash when falling asleep with a radio on #32968
Comments
I can't reproduce this after a 9 hour sleep. Memory sticked around at 634MB or about 2 to 4% usage. Could be OS specific?
|
Maybe. I don't currently have access to another OS to check. New info: The radio itself causes the memory leak. Simply waiting in-game with with the radio on makes the memory spike. https://i.imgur.com/CIYmDcu.png
|
Cannot reproduce on windows 10. Can you attach a save that reproduces the problem? I do noticed that radios do not seem to be producing sound and draining battery any more, but that's probably a separate issue. |
Sure. |
Nope, still cannot reproduce on the exact version as shown in your crash log. |
Peculiar... The problem persists for me after downloading a new version via the CDDA launcher. Thanks for trying anyway. |
Can you send us your |
I noticed that the error disappeared when deleting and resetting the config folder, so I did a little testing and it turns out that @'s soundpack caused the error. @'s soundpack has 3-7 mb, 18-43 seconds long .wav files playing From @'s soundpack
You could close this as it's not a fault within the main game, but I think limiting the game to only play 1-3 sound effects of a specific "variant" at a time would be good. I've also noticed that thunder gets extremely loud when sleeping and several thunder strikes are played at the same time. @'s soundpack links: |
Fixed "Memory leak and crash when falling asleep with a radio on #32968"
Describe the bug
If you sleep with a radio in your inventory turned on, there is a memory leak and game crash.
Note that I'm referring to the tool with item id "radio" / "radio_on". Not a vehicle stereo or mp3 player.
Steps To Reproduce
Before sleeping open task manager or other memory monitoring program to check memory usage.
Expected behavior
Screenshots
Versions and configuration
Additional context
For other players:
If you are affected by this and autosave before sleeping you can turn off/remove the radio from the .sav file with a text-editor.
The text was updated successfully, but these errors were encountered: