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

SIGSEGV on Android using Qml #192

Open
florentmpt opened this issue Mar 3, 2021 · 2 comments
Open

SIGSEGV on Android using Qml #192

florentmpt opened this issue Mar 3, 2021 · 2 comments

Comments

@florentmpt
Copy link

Hello,
I run the QZXing module within an Android app in order to scan barcode.
On my Pocophone F1 which runs Android 10, it works well.
On my Asus tablet which runs Android 7.0 it crashes with an "undebuggable" fatal error:

F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe in tid 21611 (Thread (pooled))

I tried to use a static lib, I tried dynamic.

When I remove the QZXingFilter from my qml, the camera works just fine but it seems it's coming when entering in this function:
QString QZXing::decodeImage(const QImage &image, int maxWidth, int maxHeight, bool smoothTransformation)

After enabling debug traces, it must occur within this part of the code:

        try {
                qDebug() << "Decoding phase 1: started";
                res = decoder->decode(bb, hints);
                processingTime = t.elapsed();
                lastDecodeOperationSucceded_ = true;
                break;
            } catch(zxing::Exception &/*e*/){
                qDebug() << "Decoding phase 1: failed";
            }
@florentmpt
Copy link
Author

the way the lib is used is not compliant with this Qt configuration:
LIBS += -lz

It needs to be removed from the project .pro file.

@florentmpt florentmpt reopened this Mar 3, 2021
@florentmpt
Copy link
Author

After more research it looks like QZXing is not compliant with Zlib at this point on Android 7.0

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

No branches or pull requests

1 participant