DonBruce64 / MinecraftTransportSimulator

A Minecraft mod that adds planes and automobiles with realistic physics!
Other
106 stars 59 forks source link

[1.16.5 - 22.11.0]Out of Memory (actually not) when placing various (unofficial) mts vehicles sometime #1714

Closed sssssLug closed 9 months ago

sssssLug commented 10 months ago

latest.log Don't know if it was really by mts. Please view the last lines of this log file. Because the game didn't crash, there's no crash report. system details.txt And maybe useless though: randallchiselplow3.txt ----That's one of the vehicle in this pack that triggered the issue. It's from Randall's IV Farming mod.

BTW the trailers, such as the one I've uploaded, just don't move with the towing (even if connected), so I wonder if I made some mistake in the file......If it is please tell me.

ajh123 commented 9 months ago

If your (In F3 screen) "Mem: xx%" is roughly 90 then you might need to allocate more memory to Minecraft, hence the "Out of Memory". To allocate more memory you need to do it in the launcher.

DonBruce64 commented 9 months ago

I don't think he's truly out of memory. At least not in the traditional sense. He has a LOT. @sssssLug can you do this: Tell me how much memory total you have on your machine, VS what you have allocated to MC. With no vehicles placed, show a screenshot of your memory allocation in F3 debug. With 1 vehicle that's not Randall, show me your F3 allocation. Wait a bit and tell me if the allocation keeps going up.

I suspect you either have to much memory allocated that you're lacking stack memory in leiu of tons of heap, or I have a memory leak, and the farming vehicles just happen to be the ones around when you crash.

sssssLug commented 9 months ago

Sorry I can't reproduce that crash, but I think you are right and my memory allocating was to blame ---- I just noticed I allocated 10 Gb of only 13 total available. As I tried many times there's no memory uprush or keeping going up with the vechiles placed(but short game freezing sometimes), so I think it's not a bug of the mod, just my mistake. 2023-10-05_14 08 15 2023-10-05_14 08 58

I don't think he's truly out of memory. At least not in the traditional sense. He has a LOT. @sssssLug can you do this: Tell me how much memory total you have on your machine, VS what you have allocated to MC. With no vehicles placed, show a screenshot of your memory allocation in F3 debug. With 1 vehicle that's not Randall, show me your F3 allocation. Wait a bit and tell me if the allocation keeps going up.

I suspect you either have to much memory allocated that you're lacking stack memory in leiu of tons of heap, or I have a memory leak, and the farming vehicles just happen to be the ones around when you crash.