-
Notifications
You must be signed in to change notification settings - Fork 158
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
GC error encountered in Android runtime environment #553
Comments
@ncannasse Do you need such printf? |
read memory from 0x4aaa4aaa4aa94aa8 failed (0 of 8 bytes read) |
When I used hashlink1.11 to construct Android, no crash occurred |
I encountered the same bug and I was able to fix this by doing the following changes: Line 977 in 21ede72
to pextra *inf = (pextra*)malloc(sizeof(pextra)); and adding a free(e); after this line Line 1018 in 21ede72
This may not be the correct solution, but it doesn't crash for me anymore. The error seems to stem from the issue that struct pextra is stored in the ptr memory which is susceptible to being overwritten when writing to that block of memory, making the struct values invalid. |
Thank you, I will try this change. |
21ede72#r77274896
This is the key cause of the problem.
And i chaneg it:
Crash log:
The text was updated successfully, but these errors were encountered: