<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi again,<div><br></div><div>I recently run into a new issue, I do not know how to address. </div><div><br></div><div>The app start both, in simulator and on a device (deployed via Warehouse) without any problem. Once the app is closed and restarted, it crashes right after the "Loading..." screen. </div><div><br></div><div>Is there any best practice to analyse the crashes? Log files etc? </div><div><br></div><div>As I still have issues adding a physical device to the SDK, any hints how to analyse the crash on the device directly would help.</div><div><br></div><div>I am very happy if anyone could point me to some documentation how to do so.</div><div><br></div><div>I do use custom code to start the app in the main .cpp file. I haven't found any other way, to set the properties, using the standard startup code. In case this might be the issue, I would be happy if anyone could point me to a better solution to achieve this. </div><div><br></div><div><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>main(<span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span>argc,<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">char</span><span style="color: rgb(192, 192, 192);"> </span>*argv[])</div><div>
<pre style="margin-top: 0px; margin-bottom: 0px;">{</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QGuiApplication</span><span style=" color:#c0c0c0;"> </span>*app<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">SailfishApp</span>::application(argc,<span style=" color:#c0c0c0;"> </span>argv);</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QQuickView</span><span style=" color:#c0c0c0;"> </span>*view<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">SailfishApp</span>::createView();</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QQmlEngine</span><span style=" color:#c0c0c0;"> </span>engine;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span>view->rootContext()->setContextProperty(<span style=" color:#008000;">"myProperty"</span>,<span style=" color:#c0c0c0;"> myProperty</span>());</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span>view->rootContext()->setContextProperty(<span style=" color:#008000;">"dataDir"</span>,<span style=" color:#c0c0c0;"> </span>data_dir);</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span>view->setSource(<span style=" color:#800080;">SailfishApp</span>::pathTo(<span style=" color:#008000;">"qml/MyApp"</span>));</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span>view->showFullScreen();</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>retVal<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>app->exec();</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">delete</span><span style=" color:#c0c0c0;"> </span>view;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">delete</span><span style=" color:#c0c0c0;"> </span>app;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">return</span><span style=" color:#c0c0c0;"> </span>retVal;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;">}<!--EndFragment--></pre><div><br></div></div><div><div>At the current moment, I even cannot analyse if the crashes are based on this or not, though.</div><div><br></div></div><div>Thank you very much,</div><div>Andreas</div><div><br></div></body></html>