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
Problem with running on Android + Felgo #117
Comments
Hi, |
Hi, |
Hello @JimQML, thank you for your report. The issue that has been reported has to do with the runtime execution of the example, not the compilation. I believe your issue has to do with the "dependencies" in the build.gradle file. Try to create a new project with Felgo and compare possible changes in the build.gradle file. Regarding the issue of @frankipl, I had reproduced the crash. The original ZXing code uses exceptions to rollback when no proper barcode is found. For an reason that I can not understand, if QZXing is used in Felgo framework and an exception is thrown, the memory gets corrupted (?) and produces segmentation fault. I have spend the whole day today to understand the reason though i do not yet have an answer. |
Hi @ftylitak Maybe people from Felgo could shed some light into this if you reach them via email. |
Just posted a question of Felgo forum: https://felgo.com/developers/forums/t/segmentation-using-qzxing-when-exception-is-thrown |
Thank you for that.
Didn’t have time to post a thing on their forum and it’s better you did it because you are more precise than I could have been ^^
Yesterday I made a few changes with android sdk versions in Felgo, and several tries in the Gradle’s file as well… but nothing’s changed.
Hope thy could help you quickly because I’m currently between the hammer and the anvil with my project as I must republished it by the end of the month in 64 bit (new Play Store rules), unfortunately Felgo is still in 32 bit (we expect a Felgo upgrade next week to build Android apps in 64 bit) and finally I will not be able to publish it with the QR Code scanning not functional 😉
Best,
Jean-Marc Lebourg
Apps designer/developer
Code teacher
+33 635 77 12 16
<mailto:jimlebourg@applistudio.fr> jimlebourg@applistudio.fr
…_____
AppliStudio
Conception & réalisation d’applications mobiles et web
<http://www.applistudio.fr/> www.applistudio.fr – <mailto:jimlebourg@applistudio.fr> jimlebourg@applistudio.fr
12 rue de la Donzière – 74600 Annecy – France
N° SIRET 333 479 582 00079 - RCS Annecy 333 479 582
_____
De : Nikolaos Ftylitakis <notifications@github.com>
Envoyé : mercredi 17 juillet 2019 11:11
À : ftylitak/qzxing <qzxing@noreply.github.com>
Cc : JimQML <jimlebourg@applistudio.fr>; Mention <mention@noreply.github.com>
Objet : Re: [ftylitak/qzxing] Problem with running on Android + Felgo (#117)
Just posted a question of Felgo forum:
https://felgo.com/developers/forums/t/segmentation-using-qzxing-when-exception-is-thrown
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#117?email_source=notifications&email_token=AMDFUT3SPLQ22UKH3BCONGLP73O2LA5CNFSM4H7H7YH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DR2WQ#issuecomment-512171354> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMDFUT6ZTT2EEH4XGBLMDALP73O2LANCNFSM4H7H7YHQ> . <https://github.com/notifications/beacon/AMDFUT76J2663PW6PDJPXN3P73O2LA5CNFSM4H7H7YH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DR2WQ.gif>
|
Hello @JimQML (Jean-Marc) I have just received an answer and a solution from Felgo about your issue. It turns out it is an issue that will be either way fixed by the new version of Felgo that you will receive soon. Though, if you want to get it solved from now, download this archive, libs-ssl-clang.zip and unzip it to your installation folder of Felgo at: Felgo\android_armv7\lib. Perform a clean build, compile, run and you are ready. It worked for me. Do you confirm that it works for you as well? Thank you Chris from Felgo for the quick solution! |
Hi all I can confirm that fix is working - app does not crash anymore. This is similar to my problem with @axxel zxing-cpp which I have reported here Below there is debug from running on Linux and on Android with detection of EAN-13 code, I'm using simple image (attached) Best,
|
Thank you !
You and them saved my life 😉
I’ll try this out ASAP and I’ll let you know !
Jean-Marc Lebourg
Apps designer/developer
Code teacher
+33 635 77 12 16
<mailto:jimlebourg@applistudio.fr> jimlebourg@applistudio.fr
…_____
AppliStudio
Conception & réalisation d’applications mobiles et web
<http://www.applistudio.fr/> www.applistudio.fr – <mailto:jimlebourg@applistudio.fr> jimlebourg@applistudio.fr
12 rue de la Donzière – 74600 Annecy – France
N° SIRET 333 479 582 00079 - RCS Annecy 333 479 582
_____
De : Nikolaos Ftylitakis <notifications@github.com>
Envoyé : jeudi 18 juillet 2019 22:14
À : ftylitak/qzxing <qzxing@noreply.github.com>
Cc : JimQML <jimlebourg@applistudio.fr>; Mention <mention@noreply.github.com>
Objet : Re: [ftylitak/qzxing] Problem with running on Android + Felgo (#117)
Hello @JimQML <https://github.com/JimQML> (Jean-Marc)
I have just received an answer and a solution from Felgo about your issue. It turns out it is an issue that will be either way fixed by the new version of Felgo that you will receive soon.
Though, if you want to get it solved from now, download this archive, libs-ssl-clang.zip <https://github.com/ftylitak/qzxing/files/3408229/libs-ssl-clang.zip> and unzip it to your installation folder of Felgo at: Felgo\android_armv7\lib. Perform a clean build, compile, run and you are ready.
It worked for me. Do you confirm that it works for you as well?
Thank you Chris from Felgo for the quick solution!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#117?email_source=notifications&email_token=AMDFUTZOE7U5INR3OHOHBR3QADFG7A5CNFSM4H7H7YH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JUZSA#issuecomment-512969928> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMDFUTZQZXVI6DBPT4Z7WMLQADFG7ANCNFSM4H7H7YHQ> . <https://github.com/notifications/beacon/AMDFUT4IXVIGFIHKQUAMCMTQADFG7A5CNFSM4H7H7YH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JUZSA.gif>
|
Marek, have you used the latest source code for QZXing from the master branch? In my case, when i use the QZXingLive example app on Anrdoid (compiled from latest source code), the image that you provide is decoded excluding the first '0' character (710535034967) instead of (0710535034967). Do you confirm that this works for you as well? Is this functionality ok for your current needs? |
One more question, in the QML declaration of QZxingFilter in your app, which decoders have you enabled? example: QZXingFilter
{
id: zxingFilter
decoder {
//this line below contains the enabled decoders.
enabledDecoders: QZXing.DecoderFormat_EAN_13 | QZXing.DecoderFormat_CODE_39 | QZXing.DecoderFormat_QR_CODE
onTagFound: {
console.log(tag + " | " + decoder.foundedFormat() + " | " + decoder.charSet());
}
tryHarder: false
}
} |
Hi |
Yes indeed it is strange though I would like to be sure that we work on results from the latest source code just to be sure. |
Hi I was using QZXing some 2 years ago to read QR_CODE and it works very fast, very good, with EAN-13 codes I need to have really good printed code on white paper, or very steady hand and try many times, quite difficult to read. Best, |
I'm not sure why previous sources did not work... my issue was posted 10 days ago, and src directory has been changed 12 days ago... |
I have here some page to test barcodes, with these option enabled I can decode all except top left one. Decoding one frame takes up roughly 3-4 seconds. Best, |
Many thanks for your valueable work, with these settings I'm reading pretty much every barcode, also these from pdf document.
Best Regards |
Good to hear it works! Regarding the decoder, yesterday we have received from @Eism a valuable pull request for RSS decoding support: #121 which will be merged soon (just in case you want to try it out) So, as soon as @JimQML also confirm that the application is working properly, the issue will be closed. Regards. |
Out of curiosity, are you sure about the following statement?
In the upstream project |
@axxel thank you for your insightfull info. At the time I forked the C++ part of ZXing, there was no tryRotate so now it is the first time that i hear about this. For this reason I used the tryHarder for rotation along with any other operation the library was already doing. Indeed it sound more logical to separate the operations (rotation, line scanning, etc). EDIT: there was no tryRotate at the C++ code, do not know about Java. |
considering it as solved and closing it. |
Hi
I have problem running QZXing on Android with Felgo framework (felgo.com). Felgo is like extension to Qt, many useful features.
Problem might be related to OpenCV issue reported here, application crashes when it tries to decode image, I have tried QZXing and QZXingFilter.
I have made small changes to QZXingFilter, included in my examples, to add tagFound signal and to set decoder to QR and EAN-13
Example with pure Qt (working)
https://github.com/frankipl/qzxing_test.git
Example with Qt + Felgo (crashing)
https://github.com/frankipl/qzxing_test_felgo
Need some help with this.
Best Regards,
Marek
The text was updated successfully, but these errors were encountered: