Skip to content
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

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfffffff4 in tid 25352 #1442

Closed
michael-destiny opened this issue Jun 11, 2020 · 8 comments
Labels

Comments

@michael-destiny
Copy link

michael-destiny commented Jun 11, 2020

Hi developer,

I add below dependency in my gradle file.
implementation group: 'org.bytedeco', name: 'javacv', version: '1.5.3'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm'
and meet the crash as the title.

and I found this issue was reported in Opencv Issue:
opencv/opencv#14906

it was solved in
opencv/opencv@af21a3f

And merged in master branch in
opencv/opencv@ad0ab41

I want to know do the ''org.bytedeco:opencv:4.3.0-1.5.3:android-arm' contains this commit? This arm library crashed also in arm64-v8 devices.

@saudet
Copy link
Member

saudet commented Jun 11, 2020

@saudet
Copy link
Member

saudet commented Jun 12, 2020

If you would like to have it applied to the presets though, please open a PR with that patch here:
https://github.com/bytedeco/javacpp-presets/pulls

@michael-destiny
Copy link
Author

michael-destiny commented Jun 15, 2020

According to opencv/opencv@f4f34ad
I found the fix code seems been moved to
https://github.com/opencv/opencv/blob/master/modules/core/src/system.cpp#L66

I'm not sure whether this issue still exist in official opencv library....

@saudet
Copy link
Member

saudet commented Jun 15, 2020

It's been released in OpenCV 4.3.0, yes:
https://github.com/opencv/opencv/blob/4.3.0/modules/core/src/system.cpp

@saudet
Copy link
Member

saudet commented Jun 15, 2020

BTW, this is probably a duplicate of issues #1133 or #1155.

@michael-destiny
Copy link
Author

Yes, I would do more test on this.

@saudet
Copy link
Member

saudet commented Jun 15, 2020

It might be something that is fixed in more recent versions of the NDK. You might want to try it out locally, and if that fixes the issue, we'd need to update the version used on the CI servers, but it's never an easy task, because so many things change with each version...

@michael-destiny
Copy link
Author

I tried with a cleanest code with bytedeco dependency

build.gradle
implementation group: 'org.bytedeco', name: 'javacv', version: '1.5.3'
implementation 'org.bytedeco:opencv:4.3.0-1.5.3:android-arm'
implementation 'org.bytedeco:ffmpeg:4.2.2-1.5.3:android-arm'
implementation 'org.bytedeco:openblas:0.3.9-1.5.3:android-arm'
implementation ('org.bytedeco:javacpp-presets:1.5.3')
And call the loader function to initialize opencv
Loader.load(opencv_java.class);

This issue seems doestn't happened again.
I would try this code on ABI=armeabi-v7a devices today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants