SailfishApp::pathTo crashes in debug

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

dair gravatar image

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

Hello,

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: https://github.com/dair/sailfish-example

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 2.1.1.12 (Jämsänjoki) (armv7hl)
edit retag flag offensive close delete

Comments

1

SSCCE needed

ScumCoder ( 2017-09-16 10:18:27 +0300 )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 +0300 )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 +0300 )edit