-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed bug #9792 - Android: build failure / deprecated ALooper_pollAll #9807
Conversation
…due to use of deprecated ALooper_pollAll replace ALooper_pollAll by ALooper_pollOnce
I'm not sure this has something to do with my phone, or SDL, but often I can't get testautomation to finish.
If it finishes, the following tests fail:
Do you see something similar? If so, then I'll create an issue. About this pr. I don't see a change in behavior in a few test apps. So LGTM! |
I'll go ahead and merge this, but the timeout probably shouldn't be -1. We can resolve that in a future commit. Thanks! |
@madebr We would need to do some PollEvent between tests. maybe a basic while loop to deplete the events in between test suites ? SDL_test_harness.c: line 518. |
I think Android required both frequent event polling and updating the window. I don't think (solely) adding a
|
Not sure it really need a screen refresh, but we can try. but maybe it needs, a dummy window in between suites, otherwise it doesm't really pump the events, and the activity could be stucked SDL_CreateWindow() also, there are the issue of calling init / quit multiple time:
|
Any chance to get this ee16d2f commit backport-ed to SDL2 branch? |
It's already done. |
The 2.26.5 release is still impossible to build with NDK r27 |
2.26 is not maintained anymore, use a release >= 2.30.x |
Typo. 2.30.6 |
The fix is in the 2.30.x branch, but is not yet part of an official release. |
Fixed bug #9792 - Android: build failure with ndk 27-beta1 of deprecated ALooper_pollAll
replace ALooper_pollAll by ALooper_pollOnce
not tested ! but that replace the call to
pollAll()
withwhile() { .. pollOnce() }