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-unsubscr...@lists.sailfishos.org

Reply via email to