-
Notifications
You must be signed in to change notification settings - Fork 201
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
Memory Leak with switching worlds & dimensions #635
Comments
This does not appear to be an issue upstream with Forge 43.1.7 + Flywheel 0.6.7-8 + Create 0.5.0.f. This report is not applicable to be forwarded upstream. |
Out of curiosity: Memory leak is still present with just:
Which practically kills it nearly immediately on -Xmx1G Update: 269M is retained after setting -Xmx2G and going between the nether and overworld several times with the above mod set minus LazyDFU. |
9fbb71e seems like the commit that has fixed it upstream. |
Reproduced issue with b7a90f3 in dev. |
It looks like WorldAttached is not getting a clear call for the ClientLevel, examining the invalidateWorld call with a debugger, and only counting 3 ServerLevels passing through it |
A defence of using a WeakHashMap at WorldAttached.attached can help avoid memory leaks by missed calls, but this is only a band-aid around the root problem: |
Describe the Bug
Create has been found to leak on Quilt with both Quilted and Fabric API Indigo.
Further testing is needed to determine if it is an upstream issue with the Forge version of Create.After further testing, this report is not applicable to be forwarded upstream. The only part of Create on Forge that retains memory is Flywheel, which seems to be temporary at most, as it hasn't caused any extreme memory usage on its own.Reproduction Steps
Expected Result
For the client to continue running normally without any (notable) leak from Create or any other mod present.
Screenshots and Videos
No response
Crash Report or Log
N/A - This doesn't cause a crash unless you continue.
Operating System
Arch Linux + Kernel 5.19.11-arch1-1 + Mesa 22.2.1
Mod Version
0.5.0g
Minecraft Version
1.19.2
Other Mods
Additional Context
Logistics (Found via VisualVM)
![Stack trace from a palette to GC root entering Create](https://camo.githubusercontent.com/a90f50755e633c3b937cbc47547dafa82ff303e667acc7bd3e4c2e463379cc2f/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3833343438333432313036383931383738352f313034363335343136323538333039333239382f696d6167652e706e67)
Flywheel (Found via VisualVM)
![Stack trace from a palette to GC root entering Flywheel](https://camo.githubusercontent.com/365bb86df3623a61bb5fa5fd493000234ffbfe0fb9ef7bdede45b485b2cf1043/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3833343438333432313036383931383738352f313034363335353132353438323032393139362f696d6167652e706e67)
com.simibubi.create.foundation.utility.WorldAttached.attached
(Found via JMC)com.simibubi.create.content.logistics.trains.track.TrackBlockOutline:TRACKS_WITH_TURNS
The text was updated successfully, but these errors were encountered: