Skip to content

Unable to read object larger than read buffer: 1195725856 #163

Description

@Betalord

Hi,
checking my server's logs, I see a lot of exceptions of this type:

com.esotericsoftware.kryonet.KryoNetException: Unable to read object larger than read buffer: 1195725856
at com.esotericsoftware.kryonet.TcpConnection.readObject(TcpConnection.java:118)
at com.esotericsoftware.kryonet.Server.update(Server.java:198)
at com.betalord.sgx.network.ServerProcessor.run(ServerProcessor.java:90)
at java.base/java.lang.Thread.run(Thread.java:834)

Now I use default constructor for server and for client, so the object buffer size is 2048 (default). I don't think I send any big objects over the network, they shouldn't be bigger than 1 KB I believe (but could be wrong). However, 1 GB as in given example is just absurd, so there must be some kind of a bug in kryonet that's causing it. From the logs I see I get different values, for example:

369295616
1195725856
369295616
50331695
1195725856
369295616
1431520594
50331695
50331686
1195725856
50331695
50331695
50331695
1212498244
1195725856
and so on.

Any idea on what is going on?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions