By fzaiatz
on Fri, 10/16/2015 - 14:23
I've just updated to Vuforia 5.0.6 in my iOS app. I was running Vuforia 4 before, with no issues at all (except for the black screen in iOS9).
Now, I'm having another issue (a new one): when I lock the screen, I can get one of these two EXC_BAD_ACCESS:
1. glFinish() -> within the finishOpenGLESCommands method
2. [self.context presentRenderbuffer:GL_RENDERBUFFER]; -> within the presentFramebuffer method
Just for the record, the app and the lines mentioned before where working perfect before updating to Vuforia 5.0.6.
Any idea of what might be happening here? Did the latest update change something else not documented in the migration guide?
Thanks,
Federico
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Have you already tried the fix discussed in this thread :
https://developer.vuforia.com/forum/issues-and-bugs/crash-after-lock-unlock-device-screen
?
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Hi AlessandroB, thanks for your quick response.
I've tried that, and this is what happen:
1. Open the app: everything looks perfect
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Have you tried the Vuforia Samples ?
Tested a screen lock/unlock sequence with a few consecutive locks and unlocks on 2 different iOS 9.0.2 devices (iPhone 5S and iPad mini), but I could not reproduce the crash in the presentFrameBuffer.
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
I've downloaded the Vuforia Samples for 5.0.5, and updated the library with the iOS 5.0.6 version.
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Could you also make a test on iOS 9.0.2 on your side and confirm (or not) whether you get the same result that we observe here ?
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Well, I think I've got it working.. (really still don't know why this didn't happend with Vuforia 4). The issue was that once I pressed the lock button, "sometimes" it crashed in presentFramebuffer.
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Nice. Could you post the relevant code snippets of your solution here ?
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
BTW, we also tested on 9.0 and 9.0.2, but we could not reproduce the crash; so, this seems probably a timing / threading issue (as you also noted), that shows up a bit "randomly", but not consistently / not all the time..
Vuforia 5.0.6 + iOS9 + OpenGL calls -> BAD ACCESS
Sure, here's the fix:
Hello I am also facing this
Hello I am also facing this issue in playback demo but I couldn't find class names which you have written in Vuforia Demo app.
At what point in running the
At what point in running the app are you getting this crash?
Thanks,
-Vuforia Support