SailfishApp::pathTo crashes in debug

asked 2017-09-16 09:38:23 +0200

dair gravatar image

updated 2017-09-24 10:20:52 +0200


I'm new to Sailfish software development and I couldn't find solution so far.

In my simple application I'm using SailfishApp::pathTo() method to get, well, path to bundled resource.

Sources of the first Sailfish project:

I found out that I can compile and "run" the app from Qt Creator fine and it works (it opens and plays short mp3 file on tapping the only button on screen). But when I debug the application it crashes every time I pass SailfishApp::pathTo I'm using to get file's path.

What could be the issue?

Also as app runs fine I cannot run that from apps screen by tapping an icon. Is it supposed to be so? Fixed that by simply rebooting the phone.

  • Sailfish OS 2.1
  • INOI R7 phone
  • build (Jämsänjoki) (armv7hl)
edit retag flag offensive close delete



SSCCE needed

ScumCoder ( 2017-09-16 10:18:27 +0200 )edit

As I was trying to clean this up and provide an SSCCE I found out that it happens only when I debug the application. On "just run" it works fine.

Will change the question now. Thanks.

dair ( 2017-09-16 14:59:41 +0200 )edit

Not related to the bug but if you want to use a resource (mp3 file for example as notification sound,...) then take a look at QT Resource system.

Dylan Van Assche ( 2017-09-24 17:22:17 +0200 )edit