-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
ax::backend::CommandBufferGL::drawArrays 中的glDrawArrays崩溃BUG #2240
Comments
@cxcxiaochuan Edited your post to add the code tags to format the logs so that they are easier to read. Please do not forget to add the tags when you post code or logs. |
void CommandBufferGL::drawArrays(PrimitiveType primitiveType, std::size_t start, std::size_t count, bool wireframe) |
It's clear from the logs that the crash is happening when that method is called, but that doesn't necessarily mean it is the cause of the crash. It is most likely something else that is causing this crash, and perhaps even the crashes in the other issues you posted today. If you have a test project that reproduces the issue, then please post it. |
I can't reproduce this error now, but I have collected a lot of this error through the Google Store. We are also analyzing the source code, but have not solved this problem. |
Please check issue #1211 It seems similar, so check if anything in there helps. |
Is there any way to prevent glDrawArrays from crashing when there is an error? For example, can I use try *** catch *** to catch the error, catch the exception and handle it, so as to avoid the program crashing? |
No. It doesn't throw an exception, so try/catch won't work. You need to find the source of the error.
In
to
See if this change helps to reproduce the crash. Also, please test it by putting the app into the background, load up other apps, then bring it back to the foreground etc.. |
崩溃版本:axmol-2.1.2
崩溃堆栈A:
崩溃手机:Infinix Infinix-X6515 (Infinix SMART 7)
崩溃系统:Android 12 (SDK 31)
崩溃堆栈:
崩溃堆栈B:
崩溃手机:OPPO OP4F97 (CPH2269)
崩溃系统:Android 11 (SDK 30)
崩溃堆栈:
崩溃堆栈C:
崩溃手机:OPPO OP56F5 (A17k)
崩溃系统:Android 12 (SDK 31)
崩溃堆栈:
崩溃堆栈D:
崩溃手机:Itel itel-A667L (itel A50)
崩溃系统:Android 14 (SDK 34)
崩溃堆栈:
崩溃堆栈E:
崩溃手机:samsung a10s (Galaxy A10s)
崩溃系统:Android 11 (SDK 30)
崩溃堆栈:
崩溃堆栈F:
崩溃手机:OPPO OP56F5 (A17k)
崩溃系统:Android 12 (SDK 31)
崩溃堆栈:
崩溃版本:axmol-2.1.2
崩溃手机:OPPO OP56F5 (A17k)
崩溃系统:Android 12 (SDK 31)
崩溃堆栈:
The text was updated successfully, but these errors were encountered: