[PyQt] Application crashes on Android while trying to log error message

Kálmán Viktor viktorvector at gmail.com
Tue Aug 28 14:30:23 BST 2018


Hello,

I have these "stacktraces" in my Play Console but they are not too verbose

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.my.app <<<
backtrace:
 #00 pc 000000000004b590 /system/lib/libc.so (tgkill+12)
 #01 pc 000000000001a473 /system/lib/libc.so (abort+54)
 #02 pc 000000000006ce5b
/data/app/com.my.app-20mmUlGYjBL4x4J0WwRNnA==/lib/arm/libQt5Core.so
(_ZNK14QMessageLogger5fatalEPKcz+50)
 #03 pc 000000000034cec7
/data/app/com.my.app-20mmUlGYjBL4x4J0WwRNnA==/lib/arm/libMyApp.so


*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.my.app <<<
backtrace:
 #00 pc 0000000000049c34 /system/lib/libc.so (tgkill+12)
 #01 pc 00000000000473d3 /system/lib/libc.so (pthread_kill+34)
 #02 pc 000000000001d525 /system/lib/libc.so (raise+10)
 #03 pc 0000000000019071 /system/lib/libc.so (__libc_android_abort+34)
 #04 pc 00000000000170d4 /system/lib/libc.so (abort+4)
 #05 pc 000000000006ce5b /data/app/com.my.app-2/lib/arm/libQt5Core.so
(_ZNK14QMessageLogger5fatalEPKcz+50)
 #06 pc 000000000034cec7 /data/app/com.my.app-2/lib/arm/libMyApp.so


Would it be possible to somehow catch these in Python so the app doesn't
crash?
(I tested a build on my phone that returns None in a pyqtProperty(bool)
decorated method and basically got the same stacktrace but it was a little
more verbose, however on the live app I have no idea which method is the
bad cause I get no information, the app just crashes)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180828/7fa16cdd/attachment.html>


More information about the PyQt mailing list