<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Montag, 14. März 2022 08:23:20 CET Johnny Jazeix wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Hi,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> usually, crashes happened to me when the images size was not set or there</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> was a division by 0.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Maybe it's something equivalent here.</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">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.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Some more info:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">something at least already succeeded before:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:monospace;">D         : Gralloc Free  w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129462 line = 2376 <br />D         : Gralloc Free  w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129513 line = 2376 <br />D         : Gralloc Free  w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129462 line = 2376 <br />D ip_monitor-525: fe80::1 dev wlan0 lladdr 4c:1b:86:33:c4:1e router STALE <br />I QtCore  : Start <br />I Qt      : qt started</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Then there are some other error messages which don't look good:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br /><span style="color:#000000;"><span style="background-color:#ffffff;">W project.exampl: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mShape:I (greylist-max-p, reflection, denied) </span></span><br />W System.err: java.lang.NoSuchFieldException: mShape <br />0W System.err:    at java.lang.Class.getField(Class.java:1604) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getGradientDrawable(ExtractStyle.java:672) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:1039)<br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">NullPointerExceptions also looks suspicious:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;">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 </span></span><br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getRotateDrawable(ExtractStyle.java:712) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:1043) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getLayerDrawable(ExtractStyle.java:623) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java:1031) <br />W System.err:    at org.qtproject.qt5.android.ExtractStyle.extractProgressBarInfo(ExtractStyle.java:1665)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The malloc(4GB)-call and crash happen afterward.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I'm also trying to get some logging output:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">int main(int argc, char* argv[])</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">{</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  __android_log_write(ANDROID_LOG_DEBUG, "MyTag", "******** hello log !\n");</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">//     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    QGuiApplication app(argc,argv);</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">but this doesn't seem to appear in logcat. Or do I have to use special options for logcat to see this ?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Thanks</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Alex</p>
<br /><br /></body>
</html>