-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Alpha v5 server crashing #1591
Comments
#1 When your stack trace is 5 miles long, I highly recommend using Hastebin, so people don't have to scroll 5 miles to be able to get the comment section. #2 I had basically the same issue. I didnt report it because I haven't tested much. I have about 6 addons and some poorly written code (on purpose, long story) so I wasnt exactly sure what the problem is. |
@ShaneBeee thanks! Nice to know I am not the only one too, I'd be happy if you could confirm 1567 too :') |
I need a test case to reproduce this. Does this happen without addons? This might be an addon issue, although the addon to cause this would have to be quite poorly written. |
@bensku I'm not using addons at 1.13.1 at this moment |
Came here to report the same issue, interestingly it occurs during a scheduled event, but the event seems to work fine every 60 seconds for about 2 hours before the entire server hanging |
Mine's about the same. It goes for about 10-15 minutes, then just crashes. The problem with mine is that it gets all the way to "Disabling Skript..." and stops there ... the crash never completes! |
yea, I have scheduled events too. Server works for a few minutes, max few hours (2-3) and stopping |
I need code samples that make this happen. Simply creating a ton of variables does not appear to cause this issue. Edit: If you can compile latest Skript, I've got a bugfix related to periodical events. Might change something. |
@bensku Ill try it now, Will report back! |
I've changed Skript to be more optimistic with locking in some places; hopefully, this helps. Unfortunately I don't think it will solve this issue. |
Good news. Doesnt seem to be crashing. But the bad news is, its having trouble loading some of my scripts, and looking at the stack trace its affected by Skript-Mirror imports. When the server starts I get this When I reload my scripts I get this EDIT: I guess I shouldn't say good news, its probably not crashing because my script with the periodical event isnt loading EDIT AGAIN: I removed the skript-mirror imports, and I got the same stack trace error, but this time the node is: on skript load I tried reloading other skripts of mine and they all do similar things |
@ShaneBeee That first error is just because you didn't put the aliases into your JAR. When building Skript yourself you need to create an |
@TheBentoBox Oh, Ive never done that in the past. I always just built the Skript jar, throw that in my plugins folder, and then threw all the aliases into an aliases folder /plugins/Skript/aliases/ ... never had an issue before this version. EDIT: |
Actually, build process does automatically copy aliases - if you have them available, and are building a 'clean' jar. Remember to get Git submodule! |
@bensku Clearly I did something wrong in the build process that cause those errors. Its just confusing since every time I have built skript I never had that issue, and i was throwing the aliases into the /plugins/Skript/aliases/ folder, and they seem to load fine from there, just I guess not this time around. Another note.... With this build, my test server has been up for 1 hour, no crashing, no errors. This is substantially longer than it has gone for before :) |
Good to hear. Could someone try a test now where you write tons of variables and immediately delete them? With a freshly build Skript JAR, of course, so you're testing the latest commits. |
ok heres the code I tested
the 2000 seems to be fine... .anything over that i get that error, took 1.02 seconds.... so I have a 1 second wait in there, remove that, I guess it was done in 0.02 seconds to save 2500 variables
EDIT: |
Writing variables faster than your computer can handle is not related to this issue. It is just that Skript's global variables are rather terribly slow, if you write more than a dozen of them in one go. In addition to that, list variables are always kept sorted which incurs a cost whenever something is put to them. |
i still get this error aswell with the same skripts mentioned in #1590 |
Could someone verify if this still happens? |
I can confirm the issue no longer appears to be present. Loaded a freshly built skript on 10/10/2018 and have not had a repeat incident since |
Good to know! A new release is up, but I haven't touched relevant code after 10/10. |
I tried on spigot:
https://hastebin.com/jikuzugula.md
I tried on paper spigot too:
https://hastebin.com/wumaquzofu.shell
Problem is since I installed alphav5. I'm back to alphav3
Problem on 1.13.1
The text was updated successfully, but these errors were encountered: