-
Notifications
You must be signed in to change notification settings - Fork 19
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
CPlayerManager lineBuffer accessed while being updated with multiple byte Unicode characters #72
Comments
Another similar crash occurs out-of-game, but only after you press Enter. (I can option-L multiple times without crashing before then.) Suspect this particular crash has to do with the chat tab. Here's the backtrace:
|
Addendum to what I said above... typing ":¬)" followed by Enter does not crash. |
The issue I clumsily tacked onto this thread has been moved to #73. |
The code in the issue is likely not the source of the exception. But there are two other places here, where utf8 namespace code actually gets called, so it's likely from this area: Avara/src/game/CPlayerManager.cpp Lines 702 to 706 in be507a4
Avara/src/game/CPlayerManager.cpp Lines 721 to 729 in be507a4
|
|
I found out that the exception is thrown when attempting to read the length of For now I have caught the exception so at least the app doesn't crash. But we probably need to lock lineBuffer when we're messing with it. I don't think adding a couple |
uncaught exception of type utf8::not_enough_room: Not enough space
To reproduce: start a game, enter chat mode, type "option-L" or similar
Immediate crash, of everyone connected
This could have to do with the inputBuffer field of CPlayerManager:
Avara/src/game/CPlayerManager.cpp
Lines 258 to 263 in a8352bb
In any case, whether or not we fix the underlying issue, the exception could be caught and discarded
The text was updated successfully, but these errors were encountered: