Skip to content
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

System.InvalidOperationException: Compressed packet is too large #51

Closed
JABirchall opened this issue Feb 18, 2017 · 2 comments
Closed
Assignees
Labels

Comments

@JABirchall
Copy link

JABirchall commented Feb 18, 2017

Unhandled Exception: System.InvalidOperationException: Compressed packet is too large
   at TS3Client.Full.PacketHandler.ReceiveCommand(IncomingPacket packet) in C:\Projects\TS3AudioBot-master\TS3Client\Full\PacketHandler.cs:line 337
   at TS3Client.Full.PacketHandler.FetchPacket() in C:\Projects\TS3AudioBot-master\TS3Client\Full\PacketHandler.cs:line 229
   at TS3Client.Full.Ts3FullClient.NetworkLoop() in C:\Projects\TS3AudioBot-master\TS3Client\Full\Ts3FullClient.cs:line 109
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

This is possibly thrown on large TeamSpeak's with high user traffic and alot of channels. Since I was instantiating a new client for each bot to ensure no of the bots were affecting each other. After 150~ bots this crash would be encountered.

@Splamy Splamy self-assigned this Feb 18, 2017
@Splamy Splamy added the bug label Feb 18, 2017
@JABirchall
Copy link
Author

JABirchall commented Feb 20, 2017

Small update on this, i increased MaxDecompressedSize to 512000 and increased PacketBufferSize to 128, I also replaced throw new InvalidOperationException("Compressed packet is too large"); with return false;
After 1 hour and 150 active connections = 0 crashes and 0 lost connections.

Defo not a fix, but it works for me atm.

Whereas before when trying to get 150 connections it would crash while starting all the connections or shortly after all connections are completed.

After about 3 hours there was a crashed caused in Ts3Crypt line 175 were array.copy was expecting 32 but only got 31.

@JABirchall
Copy link
Author

This problem is solved, But where 1 must close, another one must open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants