Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Strange stuck bug on the old Android devices #26
Comments
|
Yes, it's a problem with older Android version were dl_open is not recursive. here is an url with some info ( http://grokbase.com/t/gg/android-ndk/124bdvscqx/block-with-calling-dlopen-and-dlclose ), but basicaly, on version of Android oder then 4.1 I think, you cannot dlopen a lib from a dlopen.
(I need to document that in main readme) |
|
Many thanks for the detailed explanation. It works now!
Ok! Please close this issue when you add this info to ReadMe. |
|
Done with 5d6a723 |
On older Android devices I get the problem with stuck when choosing some libraries through dlopen.
The bug is reproducible on Motorola Droid 2, Android 2.3.4 and don't affect on my another Android devices: Motorola Droid 4, Android 6.0.1 (CM 13), Motorola Photon Q, Android 4.1.2 and huge heap of emulators.
Using debug I found a place where the app gets stuck:
https://github.com/ptitSeb/gl4es/blob/master/src/gl/loader.c#L62
I put a couple of debug-output:
And I got a log:
I thought it was because of the RPi libraries that are not in the Android device and I commented this function calls:
But it did not help. OpenGL ES and EGL libraries were not loaded too:
Log from the Motorola Photon Q, Android 4.1.2 phone, where everything works:
I tried to substitute library name with the full path (e. g. /system/lib/egl/libEGL_POWERVR_SGX530_125.so) to the dlopen function, but this also does not work.
Any assumptions or suggestions? Thanks!