-
Notifications
You must be signed in to change notification settings - Fork 42
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
Thread crashing instead of returning errors. #85
Comments
What is the error message above the stack trace? |
|
Wrapping the code that runs the query in a try/catch does nothing. |
related: #71 |
Hello, when do you plan to release an update (containing the bug fix)? |
I've done some research and it seems that it's the synchronised used to wait for responses during the waitAll that's blocking everything, when there's a crash, and we close the server with a waitAll to wait for all the query responses, the synchronised loops around without returning anything. |
It is simply because the thread does not try to catch errors, thus never sending SqlErrorResult properly |
When do you plan to solve this problem? |
if anyone sends a pull request to fix it |
When will the problem be solved? |
Describe the bug
Sample code
Query:
INSERT INTO players (xuid, ip) VALUES (:xuid, :ip)
Table:
Expected behavior
Errors would be returned in the onError function.
Environment
OS: Windows
PocketMine version: 4.7.0 / 1.19.20
The text was updated successfully, but these errors were encountered: