-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Skript Not Loading Correctly #2752
Comments
This could be a bug in Skript. What scripts are you running? Does this happen without them? Also, if you have addons installed, try without them. |
Nope as I said, its just plain Skript, no addons or anything, I just booted up the server without touching anything |
Oops, missed no other plugins part. With no scripts either, this is puzzling. Please try removing Skript plugin folder and reinstalling Skript jar; issues like this are sometimes caused by corrupted files. |
Has there been a fix for this? I tried paperspigot 1.15.1 (paper-48) with no other plugins, fresh install for skript 2.5 & 2.4.1 with the same issue. |
@soulstriker23 Debugging this issue is hard because all the information we get from the stack trace roughly translates to We were about to run out of space on the stack because something regex-related recursed far too deeply. So, basically, we have little information to work with, and there isn't a fix yet because of that. |
Maybe this would help? |
Applying this advise to current parser might not be possible, unfortunately. |
That would mean this is quite literally impossible to fix unless we start asking whoever maintains OpenJDK to improve Java's regex parser itself? That's reassuring. |
Sorry, I was unclear. I meant that it is possible that there is no way to fix this issue with current Skript parser. We'll try to avoid regex parsing in future works. |
OP can always increase their stack size, it's more of a problem with how recursive the parser is with complex patterns that causes the trouble |
Is that something the user can do to make skript actually work without it being disabled? |
@soulstriker23 If the stack size is too small, Skript won't have enough space on the stack to do the regex, resulting in this error. The user can modify their stack size with the |
I do not recommend increasing stack size, because it may lead to the server running out of memory. A better workaround is to not have overly long lines. Avoiding installation and/or usage of addons with very complex syntaxes might also help, but I haven't tested it. |
@bensku Okay, that make sense. I tried it and it works sometimes. But then tried it again with fresh install and putting the skript.jar with no skript written (just the disabled default ones) it gives the massive error and disables skript completely so I can't do anything with it. Any reason why it would just randomly work and not? Only have skquery & skript installed. |
Without scripts? There are a few possibilities:
|
@LoganLilypad Are you, by chance, running a version of Paper that's not officially supported? A legacy build of Paper, that is..? |
Well, @bensku |
I have very similar issue:
Server: Paper 70 (Minecraft 1.15.2), Skript version 2.4.1, one Skript enabled:
This is some serious issue as I was gonna test out if that skript is going to work (Yes, I made testing server just for Skripts to be tested before it is going to be deployed into main server). I cannot since Skript is having bad time enabling itself. I don't know, can't it connect to Internet? |
@RXJpaw Are you therefore suggesting that this is fixed in Java 13, Erik? Oracle Java download still claims Java 8 is latest version. From IntelliJ IDEA I know that that's not true, since there is JDK version 11 used. |
Script made by @Polda18 doesn't look terribly complex. Can someone reproduce this with it? If yes, does having addons have any effect on it? Can anyone reproduce on Java 11 or newer version? Dropping support for Java 8 has been in plans for a while (see #1321), but continued support from OpenJDK vendors has made it difficult. If this is indeed a bug in Java 8, I'm not terribly interested in working on it. |
@bensku Tried, it works. Looks like it really doesn't work on Java 8 or older. |
Here is a bit of info regarding this:
|
I can't reproduce these on OpenJDK 8 or 11 either. Some generic tips that might help:
|
Hello, I'm not sure what I'm saying, but the many times I've seen people with this error, the majority have been Java 32-bit. Do you think it could be related to that? |
that's actually a good point, the default stack size is lower on 32bit which could explain at least part of this error. what do you think @bensku |
@Pikachu920 The issue has been consistently solved by updating Java from 8 to something newer, usually 11 or 14. Whether they also upgraded to 64bit at the same time, I'm not sure. If I have some time I'll experiment with 32 and 64-bit versions of Java 8 and 11. |
@bensku It seems like this is mainly caused by users not using 64-bit Java... Maybe it would be a good idea to add a warning if users run Skript on 32-bit Java? |
hello good, also the same error happens to me. |
Hello, this error has always been solved by updating Java to 64bits. |
I have a 64-bit PC, but the plugin does not run anyway. |
You may have a 64-bit PC, but you've probably downloaded 32-bit Java. Try downloading it again here, hopefully it will work! |
It worked thanks a lot for the help. |
Question
I am currently trying to run a local test server with Skript and while trying to do so, Skript spits out an error. I am currently running the latest stable Spigot build along with the latest Skript build, even tried running Paper Spigot with no luck and finally tried running it on another computer.
There are no other plugins being ran on the server except Skript
Skript error taken from logs https://pastebin.com/raw/dKiCK6Vi
Just wondering if this is just me doing something wrong or if its an actual issue
The text was updated successfully, but these errors were encountered: