Crash in "canvas" qml example during startup
Alexander Neundorf
neundorf at kde.org
Mon Mar 14 09:16:04 GMT 2022
On Montag, 14. März 2022 08:23:20 CET Johnny Jazeix wrote:
> Hi,
>
> usually, crashes happened to me when the images size was not set or there
> was a division by 0.
> Maybe it's something equivalent here.
Hmm, I'm just trying to run one of the "android-ready" examples from Qt, I would expect
that they work. It also crashes if my main() doesn't actually do anything.
Some more info:
something at least already succeeded before:
D : Gralloc Free w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129462 line = 2376
D : Gralloc Free w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129513 line = 2376
D : Gralloc Free w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129462 line = 2376
D ip_monitor-525: fe80::1 dev wlan0 lladdr 4c:1b:86:33:c4:1e router STALE
I QtCore : Start
I Qt : qt started
Then there are some other error messages which don't look good:
W project.exampl: Accessing hidden field Landroid/graphics/drawable/
GradientDrawable$GradientState;->mShape:I (greylist-max-p, reflection, denied)
W System.err: java.lang.NoSuchFieldException: mShape
0W System.err: at java.lang.Class.getField(Class.java:1604)
W System.err: at
org.qtproject.qt5.android.ExtractStyle.getGradientDrawable(ExtractStyle.java:672)
W System.err: at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:
1039)
NullPointerExceptions also looks suspicious:
W System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'float
java.lang.reflect.Field.getFloat(java.lang.Object)' on a null object reference
W System.err: at
org.qtproject.qt5.android.ExtractStyle.getRotateDrawable(ExtractStyle.java:712)
W System.err: at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:
1043)
W System.err: at
org.qtproject.qt5.android.ExtractStyle.getLayerDrawable(ExtractStyle.java:623)
W System.err: at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:
1031)
W System.err: at
org.qtproject.qt5.android.ExtractStyle.extractProgressBarInfo(ExtractStyle.java:1665)
The malloc(4GB)-call and crash happen afterward.
I'm also trying to get some logging output:
int main(int argc, char* argv[])
{
__android_log_write(ANDROID_LOG_DEBUG, "MyTag", "******** hello log !\n");
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc,argv);
but this doesn't seem to appear in logcat. Or do I have to use special options for logcat to
see this ?
Thanks
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-android/attachments/20220314/7d70fd23/attachment.htm>
More information about the KDE-Android
mailing list