Quark

Quark

143M Downloads

1.18.1 memory leak

quakeman00 opened this issue ยท 6 comments

commented

dosen't unload anything when traveling far , chunks remain loaded and eventually crashes, staying to build dosent cause this problem , only loading chunks causes this problem

commented

Please post more information, ideally a log, and how you know that this is a Quark-specific issue

commented

steps to reproduce

-fresh instal forge
-instal crash utilities to monitor loaded chunks
-instal most mods > notice that chunks and entities unload when traveling using elytra and rockets

-fresh instal forge
-instal crash utilities to monitor loaded chunks
-instal autoreglibs (dependency) and quark > notice that chunks and entities dont unload when traveling using elytra and rockets

commented

This comment will probably not help at all, as all tests we done were not very conclusive:
Only Tests which somehow point to Quark are Test 1 including subtests B and C.
But best bet atm is some incompatibility between mods.
PS: if you think its worth to check logs, please tell us which logs you need and how we can capture them

1. Test

can confirm this issue using Quark-3.0-334.jar, AutoRegLib-1.7-52.jar under forge 39.0.44

  • world was initially created without quark
  • change in use case, teleported instead of using elytra, while we had a lot of memory leakage using elytra too

Test Steps:

  1. used forge entity list to check items in place A (~200 items)
  2. teleported to place B (~400 items)
  3. teleported back to place A still around 400 items

1. Test B

removing Quark for from mod pack, repeating steps 1-3:
teleporting back to place A: Items back to around 200 items as expected.

1. Test C

retested using forge 39.0.63 and quark: issue reproducible

2. Test

As prev. Tests were done using several other mods (70+) which may facilitate the issue OR cause by a different mod entirely we made another test only using forge 39.0.63, Quark-3.0-334.jar, AutoRegLib-1.7-52.jar and a new flat world, placing specific items to check if chunks get unloaded:
NOT reproducible - still full test settings/steps:

world settings:
creative, difficulty peaceful, allow cheats on, world type superflat, generate structure off, seed 0

spawn coordinates 0 -60 -0

Test Steps:

  1. command forge entity list: total 13 (some sheep, pigs, horse and 1 player)
  2. teleport away from spawn 5000 -60 5000
  3. placing "unique" item "item frame"
  4. command forge entity list: total 14 (some sheep, pigs, horse and 1 player, and our new item frame, expected as spawn will not unload)
  5. teleport back to spawn 0 -60 0
  6. wait a bit to give the server time to unload chunks
  7. command forge entity list: entities back to 13; chunk unloaded

Conclusion so far: mod incompatibility?

3. test

using superflat world from 2. test, but using all mods from test one
same steps as in test 2

Still not reproducible
Conclusion so far: Confusing so far!

4. test

new world, using default settings, only gamemode is creative, seed 0, only quark

spawn coordinates ~46 66 24

Test Steps:

  1. command forge entity list: Total entities: ~149
  2. teleport away from spawn 5000 100 5000
  3. command forge entity list: Total entities: ~171
  4. place item frame
  5. FYI: while repeating " forge entity list" at 5000 5000, minecraft:falling block items increased and did not disappear
  6. teleport back to spawn, item frame not listed (OK)
  7. command forge entity list: Total entities: ~153 - seems to be fine
  8. start flying away from spawn to around -1000 100 100
  9. command forge entity list: Total entities: ~272
  10. place item frames (e.g. 4)
  11. move away (teleport/flying does not matter)
  12. chunks unloaded

5th test

new world, using default settings, only gamemode is creative, seed 0, all mods from test one, steps from test 4

this time issue was only reproducible flying away, not by teleporting away

commented

personally i wanted to find out the issue cdue to the amount of time we crashed due to the amount of player it made it unfun to play

removed a hanful of irelevant mod / problem persisted
removed superficial but fun mod and kept only he most important / problem gone

tested a few mod at the time from the superficial , noticed quark was one of them

tested them all individually, found it

tested every mods together, all fine , unload properly

test ONLY quark and autoreglib, does not unload

so its ethier quark or autoreglib, but due to quark requiring it as a dependency it is related as it is built on it

commented

Did some testing. Seems like some Quark feature is accidentally causing the chunks to not unload fully - Forge unload events are not fired on the server side, etc.

This value in the F3 screen shows the amount of the integrated server's loaded chunk list:
Chunks S W: 9027
With all modules disabled, this amount drops normally, staying stable around one number. I'm investigating further.

commented

It's Feeding Troughs, enabling just that one feature causes this.