Skip to content
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

[suggestion]Suggest to add a GIF images generated time detection, If the generation time is too long, end #76

Open
SaKanaZzzzz opened this issue Sep 12, 2024 · 1 comment

Comments

@SaKanaZzzzz
Copy link

Some players upload 1kb but this gif has a 20 minute animation, causing the plugin to continuously generate each frame of this very long gif and then the server crashes. Here is an example of a 1kb but 20 minute long GIF https://vip.helloimg.com/i/2024/08/07/66b37289a7df7.gif
Then it will happen...
[23:36:37 INFO]: TestBot issued server command: /imageframe create GIFS https://vip.helloimg.com/i/2024/08/07/66b37289a7df7.gif 1 1
[23:37:14 WARN]: [ImageFrame] Plugin ImageFrame v1.7.10.0 generated an exception while executing task 3505
java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
[23:37:14 WARN]: [io.netty.util.concurrent.SingleThreadEventExecutor] Unexpected exception from an event executor:
java.lang.OutOfMemoryError: Java heap spac
For some reason I can't send you an error report. You can try using this gif to replay the crash

@namekeptanonymous
Copy link

namekeptanonymous commented Nov 26, 2024

+1 to this! Tried to add a very long GIF (very small in size, about 100Kb) to my server and it crashed, understandably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants