-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
strlen() expects parameter 1 to be string? #1076
Comments
Once again... please enable debug and paste a stack trace or provide reproducing steps. This issue is not useful. |
|
By my eyes this is impossible, since an exception will be thrown before the code gets that far. Are you sure your local server is running un-modified PocketMine-MP? |
It seems zlib_decode returns false on failure |
@Awzaw I'm aware of that... and if you look at the PHP bindings' source code, you also see that it raises an E_WARNING when failure occurs, which is now converted into an ErrorException by the core code. That means that this issue is impossible unless the source of the target server was modified. |
i think it happens when someone tries to join server with an old client |
I just tested with an older client and it simply doesn't handle the packet. Once again:
|
Issue description
spam on server console
12.06 01:21:10 [Server] INFO [01:21:10] [Server thread/CRITICAL]: TypeError: "strlen() expects parameter 1 to be string, boolean given" (EXCEPTION) in "/src/pocketmine/network/mcpe/protocol/BatchPacket" at line 89
Steps to reproduce the issue
OS and versions
Plugins
If the issue is not reproducible without plugins:
Crashdump, backtrace or other files
The text was updated successfully, but these errors were encountered: