-
Notifications
You must be signed in to change notification settings - Fork 123
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
ios9 soft keyboard dictation button crash #298
Comments
I wonder if the bug is not in the render code directly, but caused by a memory overwrite from earlier. |
I was able prevent this error by setting stage.framerate = 0 before keyboard open and dictation button clicked. Of corse this solution useless I need update screen from keyboard events. Googled it and many solutions suggestion was to disable OpenGL cache, not sure if it related to this bug. Sent from my iPad
|
More updates. I can see this bug only if I have 3 or more sprites with graphics. Less then three opengl works fine. I recompile nme in debug mode and have more detailed info for this bug: Code to reproduce bug:
On soft keyboard voice dictation button. (IOS9.2) |
Had time check this problem closely. IOS can lost current EAGL context from time to time. It happens for example when user activate siri or use keyboard dictation button. This breaks nme opengl rendering. Frame looping need constantly check this situation and return context to it original state. In UIStageView.mm method mainLoop can be updated with follow code modifications. Works for me at list.
|
Are you sure you didn't make any other changes except for that one? I tried to add those two lines in, but they didn't seem to fix the crashing bug on iOS when hitting the dictation button. |
Yes. Works for me. Check if you maybe still using old nme libs in you project. |
Thanks codeservice! I just updated everything to latest github build and it works like a charm. I guess now we just need to get the dictation mid-dictate to update an inputfield, but otherwise, there's no crash and now it's possible to submit apps with native keyboards to the app store 👍 |
Moreover, I tested a similar fix in openFL's engine and it seems like openFL has more issues than this one and still crashes on dictation. Therefore NME is now more stable than OpenFL for native keyboards on iOS. |
When I click voice dictation button on soft keyboard app crash with:
on poll -> stage render -> GLEngine`gleRunVertexSubmitARM -> EXC_BAD_ACCESS
The text was updated successfully, but these errors were encountered: