[SailfishDevel] Ho to analyse app crash when re-starting app fails
Dmitriy Purgin
dpurgin at gmail.com
Wed Jul 23 03:23:19 UTC 2014
Hi,
Can you please show myProperty() and dataDir?
Have you tried without setContextProperty? I had the similar issue
when trying to put my custom object containing SailfishApp* and
QQuickView* as a context property to QML in its ctor, and QML did
somehow destroy my object (maybe the reason was incompleteness of the
object at time of setContextProperty()).
Cheers
Dmitriy Purgin
2014-07-23 5:48 GMT+06:00 Andreas Heil <info at aheil.de>:
> Hi again,
>
> I recently run into a new issue, I do not know how to address.
>
> 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.
>
> Is there any best practice to analyse the crashes? Log files etc?
>
> 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.
>
> I am very happy if anyone could point me to some documentation how to do so.
>
> 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.
>
> int main(int argc, char *argv[])
>
> {
>
> QGuiApplication *app = SailfishApp::application(argc, argv);
>
> QQuickView *view = SailfishApp::createView();
>
>
> QQmlEngine engine;
>
> view->rootContext()->setContextProperty("myProperty", myProperty());
>
> view->rootContext()->setContextProperty("dataDir", data_dir);
>
>
>
>
> view->setSource(SailfishApp::pathTo("qml/MyApp"));
>
> view->showFullScreen();
>
>
> int retVal = app->exec();
>
>
> delete view;
>
> delete app;
>
>
> return retVal;
>
> }
>
>
> At the current moment, I even cannot analyse if the crashes are based on
> this or not, though.
>
> Thank you very much,
> Andreas
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
More information about the Devel
mailing list