chirs241097 / jline4mcdsrv

Command history, auto completion and syntax highlighting for every fabric server.
MIT License
24 stars 4 forks source link

[1.21] Crash input/output error #24

Open jinkhya opened 1 month ago

jinkhya commented 1 month ago

Hello, This morning our vanilla server randomly crashed but didn't generate any crash log. Here's the latest log : https://gist.github.com/jinkhya/3b12645e87bed129426b56f77726df25 You can see the error. at the end of the log

Best regards, Jin

Fourmisain commented 1 month ago

That is weird, it's just a generic I/O error inside Java's FileInputStream, which could mean anything.

One thing that catches my eye are these messages:

[00:11:18] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Stopped! [00:11:59] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Starting... [00:12:21] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Crash Detected :thinking:

This also happens a few seconds before the crash, so maybe it's related to it? Though I don't see how...

[04:11:18] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Stopped! [04:11:58] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Starting... [04:13:04] [Server console handler/ERROR]: Caught previously unhandled exception :

I'm assuming this is a Discord bridge you are using. I can find JDA, but what mod are you using specifically? I'd like to have a look at what it's doing and there's like dozens of them.

Other than that, I'm not sure if there's much we can do. The error happens inside JLine/Java, so we can't really "fix" it, but maybe we can try to restart the terminal if this happens? Gonna see if that is possible.

Fourmisain commented 1 month ago

Aight, released a new version which tries to restart the terminal when it encounters an IOError. Might help, might not, I could only test it without actual errors. I also updated JLine, though that'll probably do nothing on this front.

Let me know how you fare with this.

jinkhya commented 1 month ago

I'm assuming this is a Discord bridge you are using. I can find JDA, but what mod are you using specifically?

I'm using discord integration Fabric yes. Here's the source code : https://github.com/ErdbeerbaerLP/DiscordIntegration-Fabric

Thank you for the new version ! I'll update it right now and I'll let you know if I ever get the same issue.