SailfishApp::pathTo crashes in debug
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)
SSCCE needed
ScumCoder ( 2017-09-16 10:18:27 +0200 )editAs 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 )editNot 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