swex / QZXingNu

simple Qt wrapper library for zxing-cpp rewrite by nu-book
Apache License 2.0
8 stars 2 forks source link

Android crash with Qt 5.13.2 #3

Open frankipl opened 4 years ago

frankipl commented 4 years ago

Hi After change to new Qt 5.13.2 (with Felgo framework) my app is crashing when I want to read barcode, here is some debug it is crashing with `I BufferQueueProducer: SurfaceTexture-0-21104-0 new GraphicBuffer needed

D GraphicBuffer: register, handle(0xc90a2240) (w:1664 h:1248 s:1664 f:0x32315659 u:0x000103) I CameraFramework: handleMessage: 16

W myapp: QImage qt_imageFromVideoFrame(const QVideoFrame &) : unsupported pixel format Format_ABGR32

D myapp: QZXingNu::decodeImage starting

F libc : /usr/local/google/buildbot/src/android/ndk-release-r20/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type QUnhandledException: std::exception" failed`

Here is stack from that crash:

`1 tgkill 0xf073ed64

2 pthread_kill 0xf073c506

3 raise 0xf07114b8

4 __libc_android_abort 0xf070cff4

5 abort 0xf070b058

6 __libc_fatal 0xf070f4b2

7 __assert2 0xf070d1ee

8 abort_message abort_message.cpp 73 0xd46d4ff0

9 demangling_terminate_handler cxa_default_handlers.cpp 62 0xd46d5168

10 std::__terminate cxa_handlers.cpp 60 0xd46dcb7a

11 __cxxabiv1::failed_throw cxa_exception.cpp 153 0xd46dc52a

12 __cxa_throw cxa_exception.cpp 285 0xd46dc4f2

13 QUnhandledException::raise() const 0xd4312c5c

14 QFutureInterfaceBase::waitForResult(int) 0xd4313928

15 QFuture::result qfuture.h 162 0xd1a367ec

16 QZXingNu::QZXingNuFilterRunnable::run(QVideoFrame *, QVideoSurfaceFormat const&, QFlags)::{lambda()#1}::operator()() const qzxingnufilter.cpp 55 0xd1a36708

17 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, QZXingNu::QZXingNuFilterRunnable::run(QVideoFrame , QVideoSurfaceFormat const&, QFlags)::{lambda()#1}>::call({lambda()#1}&, void *) qobjectdefs_impl.h 146 0xd1a36680

18 QtPrivate::Functor<QZXingNu::QZXingNuFilterRunnable::run(QVideoFrame , QVideoSurfaceFormat const&, QFlags)::{lambda()#1}, 0>::call<QtPrivate::List<>, void>({lambda()#1}&, void , {lambda()#1}& *) qobjectdefs_impl.h 256 0xd1a3664c

19 QtPrivate::QFunctorSlotObject<QZXingNu::QZXingNuFilterRunnable::run(QVideoFrame , QVideoSurfaceFormat const&, QFlags)::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase , QObject , void , bool ) qobjectdefs_impl.h 439 0xd1a365e0

20 QMetaObject::activate(QObject , int, int, void *) 0xd43e8690 ... <Więcej>
`

Can I help somehow ? Best, Marek

frankipl commented 4 years ago

Hi Is there any hope to fix this problem?

Best Regards Marek