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

Plugin crashes after update #24

Closed
waqasmq opened this issue Jul 9, 2018 · 5 comments
Closed

Plugin crashes after update #24

waqasmq opened this issue Jul 9, 2018 · 5 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@waqasmq
Copy link

waqasmq commented Jul 9, 2018

Hi chris,
I built my ionic app today after some other changes ( not related to this plugin).. and i saw it updated the cordova scan plugin.. and since then this plugin starts to crash. it does not open camera or gallery options :( ..
and in the phone log i can see this exception

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.ionic.starter-eC91gWckgNN3MK_UB9WYeA==/base.apk"],nativeLibraryDirectories=[/data/app/io.ionic.starter-eC91gWckgNN3MK_UB9WYeA==/lib/arm64, /system/lib64, /system/vendor/lib64]]] couldn't find "libopencv_java3.so"

I was able to solve this by following the solution in this thread https://stackoverflow.com/questions/33030900/android-unsatisfiedlinkerror-with-tesseract-and-opencv

any ideas about a proper fix?

@ChrisTomAlx
Copy link
Collaborator

ChrisTomAlx commented Jul 10, 2018

Hey @waqasmq

I think I have found a solution to this. I have made changes to the scan library, Could you please test it if possible? Let me know if this worked.

The opencv library was being loaded first, which has 64 bit builds in it. I have changed the code to load the scanner library first which has only 32 bit builds. So now it will make sure 32 bit builds are used when running the app. If this solves it for you then it should probably be a permanent solution to issue #8 as well.

Cheers,
Chris
Neutrinos

@waqasmq
Copy link
Author

waqasmq commented Jul 10, 2018

Hey @ChrisTomAlx ,
I have tested now without the workaround and its works fine. Thanks for the help mate 👍

Regards,
Waqas

@ChrisTomAlx
Copy link
Collaborator

@waqasmq

That is great news. Will let the people on the other issue know this has been fixed as well.

Cheers and thanks a ton for your help :)
Chris
Neutrinos

@ChrisTomAlx ChrisTomAlx added the duplicate This issue or pull request already exists label Jul 10, 2018
@ChrisTomAlx ChrisTomAlx self-assigned this Jul 10, 2018
@openopen114
Copy link

openopen114 commented Jul 11, 2018

i got the same crash issue on the Android before...
but i "git clone" my ionic project
and then "npm i", "ionic cordova platform add android"

right now it works perfectly on the phone !!
sooo thank you for fix this issue

@ChrisTomAlx
Copy link
Collaborator

@openopen114

I am glad that it worked for you ;)

Cheers,
Chris
Neutrinos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants