Giter Site home page Giter Site logo

Comments (11)

iTwins avatar iTwins commented on September 21, 2024

Please provide the entire error

from slimefun4.

TwinkleToes777 avatar TwinkleToes777 commented on September 21, 2024

[Craft Scheduler Thread - 814 - Slimefun/WARN]: [Slimefun] Plugin Slimefun vDEV - 1104 (git c977454) generated an exception while executing task 4745749
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3537) ~[?:?]
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:228) ~[?:?]
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:582) ~[?:?]
at java.lang.StringBuilder.append(StringBuilder.java:179) ~[?:?]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:153) ~[purpur-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[purpur-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:309) ~[purpur-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config.(Config.java:89) ~[Slimefun4 - DEV 587 (git a1952).jar:?]
at io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config.(Config.java:100) ~[Slimefun4 - DEV 587 (git a1952).jar:?]
at io.github.thebusybiscuit.slimefun4.api.player.PlayerProfile.(PlayerProfile.java:82) ~[Slimefun4 - DEV 587 (git a1952).jar:?]
at io.github.thebusybiscuit.slimefun4.api.player.PlayerProfile.lambda$get$5(PlayerProfile.java:406) ~[Slimefun4 - DEV 587 (git a1952).jar:?]
at io.github.thebusybiscuit.slimefun4.api.player.PlayerProfile$$Lambda$11344/0x000079951416b970.run(Unknown Source) ~[Slimefun4 - DEV 587 (git a1952).jar:?]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.4.jar:git-Purpur-1985]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.19.4.jar:git-Purpur-1985]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]

from slimefun4.

Phoenix-Starlight avatar Phoenix-Starlight commented on September 21, 2024

Do you mind providing the file of said player? (The file is named in UUID format, under data-storage/Slimefun/Players/<uuid>.yml)

from slimefun4.

TwinkleToes777 avatar TwinkleToes777 commented on September 21, 2024

Do you mind providing the file of said player? (The file is named in UUID format, under data-storage/Slimefun/Players/<uuid>.yml)

I renamed it to .txt, because github does not support uploading .yml
slimefun-player-data-file.txt

from slimefun4.

J3fftw1 avatar J3fftw1 commented on September 21, 2024

This aint a fun issue to solve sadly.
The quickest and dirtiest way is to delete the file or shorten it.

from slimefun4.

Phoenix-Starlight avatar Phoenix-Starlight commented on September 21, 2024

Hey, so I don't believe the extremely hefty file is the cause of your OOM. The string at most will occupy 21MB, which implies that your server is already nearing the max heap limit.
I'd suggest you check via a heapdump on OOM (-XX:+HeapDumpOnOutOfMemoryError).

from slimefun4.

TwinkleToes777 avatar TwinkleToes777 commented on September 21, 2024

so I finally was able to track down this problem, it happens with any backpack at all, it doesn't even have to be a big player file, it just needs opening the backpack many times in a short time.
I used this JVM flag: -XX:+HeapDumpOnOutOfMemoryError
then I analyzed it with Eclipse Memory Analyzer and the result was that 7.4gb ram is used by something unlabeled, but going in details it says that it's used by Thread, and there are very many slimefun threads, so I'm guessing it's caused by spawning very many threads in a short time

from slimefun4.

J3fftw1 avatar J3fftw1 commented on September 21, 2024

Send us the dump please

from slimefun4.

TwinkleToes777 avatar TwinkleToes777 commented on September 21, 2024

Send us the dump please

my internet is very slow (under 1 mb/s) so sending the dump is not really an option, it also contains sensitive info such as passwords, but I can provide screenshots of desired areas in Eclipse Memory Analyzer

from slimefun4.

J3fftw1 avatar J3fftw1 commented on September 21, 2024

Without info we canโ€™t do much

from slimefun4.

TwinkleToes777 avatar TwinkleToes777 commented on September 21, 2024

for the time being, disabling backpacks and using a slimefun addon that adds "backpack unloader" machine, is my solution to this problem

from slimefun4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.