Jump to content


Photo

Random disconnects, bad compressed packet, etc..


  • Please log in to reply
24 replies to this topic

#1 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 21 October 2013 - 01:27 AM

I recently moved us behind a Bungee Cord server, like a few weeks ago, and I haven't heard any problems related to that.
Yesterday I moved that proxy server to a new host, and after that people are sometimes getting disconnected with a weird error, something about bad compressed packet, or bad packet ID.
I'm not even 100% convinced that it was related to those changes, but it would be a huge coincidence if it was unrelated.

I heard that it happens mostly after you teleport to a new location.
 

What I could use is a way to reproduce it on demand. If someone can figure that out, then I can do experiments to solve it. Otherwise all I can do is make changes on the live server and wait.
 



#2 Gortern

Gortern

    Space Captain

  • Builder
  • 1019 posts
  • minecraft:
    Kommandant_Erwin

Posted 21 October 2013 - 02:01 AM

After looking around on the internet a lot of people say it happens because of 32-bit Java and bad hosting.

 

http://www.spigotmc....packet-id.5459/

http://www.minecraft...ed-data-format/

http://forums.techni...a-format.21251/



#3 Reverie

Reverie

    Dusty Relic

  • Builder
  • 5157 posts
  • minecraft:
    Reverie_Wisp

Posted 21 October 2013 - 02:27 AM

My research yields similar results: Most people seem to believe it's related to 32-bit java, bad hosting, or a firewall programs like ZoneAlarm, and tend to suggest java version and poor hosting the most.

The real issue is that no matter where I look, no one has come up with a concrete answer.

 

http://herocraftonli...a-format.38430/

http://www.minecraft...ed-data-format/

http://forums.bukkit...d-string.15239/

http://docs.oracle.c...OException.html (Glanced at the Java API, nothing useful.)

 

 

If I had to guess, it would be the server in this case: You request packets, and the returned packet is corrupt because it wasn't quite encoded properly, for some reason or another. Somewhere, data is probably being bottle-necked, which is going to cause an issue. It makes sense that teleporting would cause it, given the immense amount of information you request when doing so.

 

Do keep in mind that java updated recently though. Like a day ago recently.


Edited by Reverie, 21 October 2013 - 02:44 AM.


#4 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 21 October 2013 - 06:41 AM

All the OS's involved are 64-bit Linux. Ubuntu 12.04. And java is 64-bit on these systems.
 
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise

$ uname -a
Linux server 2.6.32-042stab079.6 #1 SMP Mon Aug 26 19:47:50 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux

$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
As a side note, the 32-bit thing is mostly for clients, Minecraft just runs a lot better in 64-bit.

This problem only started when I moved servers, so whatever hypothesis people come up with has to explain what might change that would cause it.

All I need is help with triggering it, so when it happens to you just keep note of what happened, is it always after an area change, and does it happen more often when you warp to a certain area, etc.. That can lead to being able to trigger the problem on demand, and that is all I need to fix this.

#5 Harakhti

Harakhti

    Background Pony

  • Builder
  • 430 posts
  • minecraft:
    Harakhti

Posted 21 October 2013 - 04:39 PM

Client> 2013-10-21 18:33:40 [INFO] [Minecraft-Client] [CHAT] Entering Ponyville
Client> 2013-10-21 18:33:40 [INFO] [STDOUT] Setting up custom skins
Client> 2013-10-21 18:33:40 [INFO] [STDERR] java.io.IOException: Bad compressed data format
Client> 2013-10-21 18:33:40 [INFO] [STDERR] 	at net.minecraft.network.packet.Packet56MapChunks.func_73267_a(Packet56MapChunks.java:123)
Client> 2013-10-21 18:33:40 [INFO] [STDERR] 	at net.minecraft.network.packet.Packet.func_73272_a(Packet.java:166)
Client> 2013-10-21 18:33:40 [INFO] [STDERR] 	at net.minecraft.network.TcpConnection.func_74447_i(TcpConnection.java:325)
Client> 2013-10-21 18:33:40 [INFO] [STDERR] 	at net.minecraft.network.TcpConnection.func_74450_c(TcpConnection.java:549)
Client> 2013-10-21 18:33:40 [INFO] [STDERR] 	at net.minecraft.network.TcpReaderThread.run(SourceFile:94)
Client> 2013-10-21 18:33:40 [INFO] [STDOUT] Setting up custom skins
Client> 2013-10-21 18:33:40 [INFO] [Minecraft-Client] [CHAT] §bWarped to 'eq4'.

There was one regarding a proxy-specific error too, apparently without a console output or any logs of it. I'll edit it in if I find it.



#6 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 21 October 2013 - 07:30 PM

And its right after doing a warp? Seems like its always that, I haven't heard of anyone saying it just happens by itself. I've heard 2 people say it was when they warped to somewhere in plains, but that log shows you warped to eq4, so that shows it is probably not specific to one area.

#7 Shroom Agent

Shroom Agent

    Background Pony

  • Administrator
  • 1870 posts
  • minecraft:
    SweetieBelle

Posted 21 October 2013 - 07:38 PM

Warped from plains to ponyville.
Client> java.io.IOException: Bad compressed data format
Client> 	at el.a(SourceFile:93)
Client> 	at ey.a(SourceFile:197)
Client> 	at co.i(SourceFile:249)
Client> 	at co.c(SourceFile:17)
Client> 	at cp.run(SourceFile:94)
Can't seem to do it again though. I'll edit this post if I get something though.

Don't know if this is related, but got this when flying fast in canterlot.
Client> java.io.IOException: Bad packet id 110
Client> 	at ey.a(SourceFile:185)
Client> 	at co.i(SourceFile:249)
Client> 	at co.c(SourceFile:17)
Client> 	at cp.run(SourceFile:94)
After getting some more disconnectes, and with someone else giving me their disconnect, I've noticed 3 lines that appear every single time. Either I've found something or I am a complete fool, but either way, I don't mind posting my results.
Spoiler

Edited by Shroid77, 21 October 2013 - 10:01 PM.


#8 Hazzat

Hazzat

    Oops!

  • Retired Admin
  • 5103 posts
  • minecraft:
    Hazzat

Posted 21 October 2013 - 09:18 PM

I just got it warping from plains to derp1, so it seems to be related to warping.



#9 RunningWolf251

RunningWolf251

    It's so lonely 'round the fields of Athenry.

  • Builder
  • 2087 posts
  • minecraft:
    kibamoon

Posted 21 October 2013 - 10:29 PM

Warped to ponyville. It seems like ponyville is getting a few.

Client> 2013-10-21 17:29:18 [INFO] [Minecraft-Client] [CHAT] Entering Ponyville
Client> 2013-10-21 17:29:18 [INFO] [STDOUT] Setting up custom skins
Client> 2013-10-21 17:29:18 [INFO] [STDOUT] Setting up custom skins
Client> 2013-10-21 17:29:18 [INFO] [Minecraft-Client] [CHAT] §bWarped to 'equestria4'.
Client> 2013-10-21 17:29:19 [INFO] [STDERR] java.io.IOException: Bad packet id 19
Client> 2013-10-21 17:29:19 [INFO] [STDERR]  at net.minecraft.network.packet.Packet.func_73272_a(Packet.java:149)
Client> 2013-10-21 17:29:19 [INFO] [STDERR]  at net.minecraft.network.TcpConnection.func_74447_i(TcpConnection.java:325)
Client> 2013-10-21 17:29:19 [INFO] [STDERR]  at net.minecraft.network.TcpConnection.func_74450_c(TcpConnection.java:549)
Client> 2013-10-21 17:29:19 [INFO] [STDERR]  at net.minecraft.network.TcpReaderThread.run(SourceFile:94)


#10 Captain Char

Captain Char

    Brohoofs Celestia

  • Banned
  • 4300 posts
  • minecraft:
    Captain_Char

Posted 22 October 2013 - 12:03 AM

I was helping compile with this but I already gave my crash results

OS: WIn 7 pro X64

Java (jre7) X64

and tried on Java jdk1.7.0_25 X64

using BronymodPack with 2G allocated memory



#11 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 22 October 2013 - 06:17 AM

I googled for Bad packet id 19 and found a thread, and among the rude comments from nerds with self-esteem problems, someone suggested disabling Netty in Spigot. I just tried that now. I'm not that hopeful it will help, but its worth a try.
http://www.spigotmc....packet-id.2219/

#12 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 22 October 2013 - 08:38 PM

I'm hearing that didn't help, so I'll put Netty back on.

I'm giving up for now. If we can figure out how to trigger it on demand then its as good as fixed.

#13 Captain Char

Captain Char

    Brohoofs Celestia

  • Banned
  • 4300 posts
  • minecraft:
    Captain_Char

Posted 23 October 2013 - 01:24 AM

Ratty, I noticed if I don't fly, and walk without running, the game seems to crash less, and other errors if researched into say so many different things cause it, but we've noticed a common three files are usually in the root of the crashes by leaving the dev console open while the client is running


Edited by Captain Char, 23 October 2013 - 01:24 AM.


#14 RunningWolf251

RunningWolf251

    It's so lonely 'round the fields of Athenry.

  • Builder
  • 2087 posts
  • minecraft:
    kibamoon

Posted 23 October 2013 - 04:28 PM

Got another one warping to Nightmarenight.

 

Spoiler
 
Looked around a bit myself, not sure if you saw this one: https://github.com/S...Cord/issues/549
 
It doesn't have a way to reproduce it or fix it, but there's a bit of relevant information there without being plagued by internet trash. I've seen it blamed on both minecraft server issues and plugin/player relation issues.
 
Edit: "This is a problem caused by Bungeecord but is more frequent when the connection to server and the client is not optimal(not necessarily high ping but lost packets) so yes it is cause by the host as well. I later found out that they switched hosts back when this first got bad(and continues to be bad). This makes perfect sense since the servers although supposedly marginally better for people in the EU are much worse for everyone outside of it, which would increase the frequency of the bad id packets caused by bungeecord (44 being the most common in SG)." http://forum.hivemc....ket-id-44.8746/
 
They also mentioned items, though that seems less applicable in other cases. Could it be related to warping into an area and a bad packet on a certain block? In the case of 121, perhaps there's an end stone somewhere in ponyville and it's not loading correctly for X reason?
 
Edit 2: After Mickey's test, here are my two.
 

Spoiler
Spoiler

Edited by RunningWolf251, 23 October 2013 - 08:29 PM.


#15 Captain Char

Captain Char

    Brohoofs Celestia

  • Banned
  • 4300 posts
  • minecraft:
    Captain_Char

Posted 23 October 2013 - 04:42 PM

For now, in order to avoid the lost packets, I cannot use Voxel flight, as it seems to agro the problem more, I noticed a 75% map loading speed increase without flight enabled, and less crashing

 

also my latest crash, apon warping to the Canterlot throne room:

Spoiler

 

Edit as of now I can no longer log into the server oddly, with a  long error this time:

Spoiler

Edited by Captain Char, 24 October 2013 - 04:54 PM.


#16 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 24 October 2013 - 06:06 PM

We've been noticing the website looking like it is down from Cloudflare, and in our own testing we can show packetloss, so I think that is probably it. We have a ticket open with the hosting place, if they don't fix it we'll just move.

#17 Shroom Agent

Shroom Agent

    Background Pony

  • Administrator
  • 1870 posts
  • minecraft:
    SweetieBelle

Posted 24 October 2013 - 06:35 PM

Edit as of now I can no longer log into the server oddly, with a  long error this time:

Spoiler


The Minecraft sessions server was down.



#18 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 29 October 2013 - 07:03 AM

Ok, 2 questions:

1. Have people still been getting disconnected.
2. Any disconnects after right now?

I made some changes that should fix the problems, but time will tell.

#19 Captain Char

Captain Char

    Brohoofs Celestia

  • Banned
  • 4300 posts
  • minecraft:
    Captain_Char

Posted 29 October 2013 - 05:21 PM

your green, no socket errors, no lost packets, nothing, even the memory pool seems more stable



#20 RunningWolf251

RunningWolf251

    It's so lonely 'round the fields of Athenry.

  • Builder
  • 2087 posts
  • minecraft:
    kibamoon

Posted 29 October 2013 - 06:38 PM

I think this one is more on my side as my internet got a little iffy afterwards, but I'll post it here in case it's relevant. This one doesn't seem quite as useful.

 

Spoiler


#21 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 31 October 2013 - 04:01 AM

The weird disconnects are fixed, right? I just want to make sure before I go trying to enchance things again. Then at least I know I have a stable configuration I can retreat to if I make things worse.

I hate asking if things are fixed in the public forum, since I always get people outpouring all the random problems with their computers, I am only interested in the problem that the server had that affected everybody. The symptom was you would get a strange error like bad compressed packet, or invalid packet ID. If its a timeout or a socket write error, that is not related. It was really bad too, people were getting knocked off several times an hour.



#22 Captain Char

Captain Char

    Brohoofs Celestia

  • Banned
  • 4300 posts
  • minecraft:
    Captain_Char

Posted 31 October 2013 - 04:23 PM

well I don't know if it was a fluke at 12:20pm oct 31 eastern my time I got a random socket error

Spoiler


#23 Reverie

Reverie

    Dusty Relic

  • Builder
  • 5157 posts
  • minecraft:
    Reverie_Wisp

Posted 04 November 2013 - 04:15 PM

The weird disconnects are fixed, right? I just want to make sure before I go trying to enchance things again. Then at least I know I have a stable configuration I can retreat to if I make things worse.

I hate asking if things are fixed in the public forum, since I always get people outpouring all the random problems with their computers, I am only interested in the problem that the server had that affected everybody. The symptom was you would get a strange error like bad compressed packet, or invalid packet ID. If its a timeout or a socket write error, that is not related. It was really bad too, people were getting knocked off several times an hour.

After an absurd amount of teleporting (which seems to be the easiest way to cause this) I am yet to receive a bad/invalid packet. If it is still an issue, then it certainly doesn't appear to be occurring as frequently at least.



#24 Ratty

Ratty

    Background Pony

  • Ratty
  • 15594 posts
  • minecraft:
    Ratty

Posted 05 November 2013 - 02:08 AM

It was happening many times an hour, and after I took out BungeeCord, it completely stopped, so I already concluded it is fixed.

#25 Prince Polaris

Prince Polaris

    LOOK OOOUT IT'S THE BASBO BIDDY BUM

  • Pony
  • 871 posts
  • minecraft:
    Prince_Polaris

Posted 05 November 2013 - 02:43 AM

Ok, 2 questions:

1. Have people still been getting disconnected.
2. Any disconnects after right now?

I made some changes that should fix the problems, but time will tell.

They have completely stopped for me!

:D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users