JavaCameraView doesn't load on Android 4.3 (Galaxy S4 i9505) (Bug #3372)


Added by Dimuthu Jayamanna over 3 years ago. Updated about 3 years ago.


Status:Done Start date:2013-11-11
Priority:Normal Due date:
Assignee:Alexander Smorkalov % Done:

0%

Category:android
Target version:2.4.8
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty:Medium HW Platform:x64
Pull request:

Description

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.


android4.3-galaxys4-i9505.zip (21.3 kB) Dimuthu Jayamanna, 2013-11-10 11:43 pm


Related issues

related to Bug #3403: OpenCVLoader.initAsync never calls LoaderCallback on Gala... Done 2013-11-27

History

Updated by Dimuthu Jayamanna over 3 years ago

update: Even the tutorials doesn't work. (OpenCV Tutorial 1 - camera preview)

Updated by Alexander Smorkalov over 3 years ago

Thank you for bug report. What hardware does OpenCV Manager report in its UI? Does it work properly?

Updated by Dimuthu Jayamanna over 3 years ago

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.

Updated by Alexander Smorkalov over 3 years ago

  • Status changed from New to Open

Updated by Dimuthu Jayamanna over 3 years ago

The newest OpenCV release (2.4.7) doesn't work either. The same problem is happening.
Alexander, is there any way I can help you to pinpoint the issue? Note that I'm a newbie on Android/ openCV and openGL, but would like to help...

Updated by Caspar Gorvin over 3 years ago

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-2.4.7.1-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.

Updated by Alexander Smorkalov over 3 years ago

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

Updated by Alexander Smorkalov over 3 years ago

Issue was fixed in private OpenCV4Tegra Optimizations.

  • Status changed from Open to Done

Updated by eric chen over 3 years ago

Hi

I've tried https://dl.dropboxusercontent.com/u/73893565/OpenCV_2.4.8pre_Manager_2.16_armv7a-neon.apk

It's working fine on Galaxy Note3.0 with the sample projects from openCV document.

Updated by Dimuthu Jayamanna about 3 years ago

Hi Alexandar,
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!

Updated by Shorin Windy about 3 years ago

nice man
Thanks a lot Alexander Smorkalov

Also available in: Atom PDF