Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Strange stuck bug on the old Android devices #26
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:
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!
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)