JavaCameraView doesn't load on Android 4.3 (Galaxy S4 i9505) (Bug #3372)
E/OpenCV_for_Tegra(9096): Canot create OpenGL context (logcat attached)
This code was perfectly fine until Android 4.2.2 and then started to fail on 4.3. Latest OpenCV manager installed on mobile.
This is reproing on OpenCV 2.4.6, 2.4.7 (Downloaded from Sourceforge), 3.0-dev (master branch).
Please let me know if you need any other details.
|related to Bug #3403: OpenCVLoader.initAsync never calls LoaderCallback on Gala...||Done||2013-11-27|
Alexander Smorkalov wrote:
Thank you for bug report. What hardware does OpenCV Manager report in its UI? Does it work properly?
Thanks for the reply. I'm desperately looking for a solution to this due to my masters project deadline:(
Yes the OpenCV manager works perfectly, and can be re-installed as well.
HARDWARE: ARM V7 with Neon
OS: 4.3 API 18
Tried installing Samsung Knox since there is a huge error appear in the logcat, but that didn't help either.
I see the same issue on the same device Samsung i9505 but found a Workaround which might help if you use JavaCameraView():
1) Copy the folder with the static libs from OpenCv-188.8.131.52-android-sdk\sdk\native\libs\armeabi-v7a to the libs Folder of your Eclipse-project
2) use OpenCVLoader.InitDebug() instead of OpenCVLoader.initAsync
3) do everything you would normally do in BaseLoaderCallback.onManagerConnected() right after the InitDebug() if it returned true (SUCCESS)
The NativeCameraView() will still not work.
Hello Dimuthu Jayamanna
It looks like I've fixed the issue. Please check that the solution works on your device. Install the Manager apk and try any OpenCV sample app with the Manager. Please, do it ASAP. OpenCV 2.4.8 will be released in a few days. We need respond from you. Package is here: https://dl.dropboxusercontent.com/u/73893565/OpenCV_2.4.8pre_Manager_2.16_armv7a-neon.apk
- Target version set to 2.4.8
It's working fine on Galaxy Note3.0 with the sample projects from openCV document.
Sorry for the delay since looks like I don't receive email notifications from the system on the bug...
Yes I can confirm that with the new OpenCV manager, the issue is no more there. Sample projects and my project all are working fine.
Thanks a million!