[SailfishDevel] Minimized Apps

Jarmo Lahtiranta jarmo.lahtiranta at iki.fi
Tue Sep 9 06:04:05 UTC 2014


I had a similar problem a while ago and the reason was that I used
qt.createObject with invalid parent. You seem to be using it too, so
make sure that your parent references are in order. I think it had
something to do with garbage collection, but anyway - setting a decent
parent solved the problem for me.

-Jarmo



On 09/08/2014 11:49 PM, r0kk3rz wrote:
> Screen On/Off makes no difference, bug is present whenever app is minimized.
> 
> Should I be watching an app state signal and performing some action when
> the app is brought back into focus?
> 
> On Mon, Sep 8, 2014 at 9:15 PM, Martin Kolman <martin.kolman at gmail.com
> <mailto:martin.kolman at gmail.com>> wrote:
> 
>     8.9.2014 21:44, r0kk3rz:
>>     I'm not expecting someone to fix my bug for me, just describe or
>>     point to a link or something that tells me what happens when a
>>     Sailfish App is minimized (status objects changed, signals that
>>     are called, anything?)
>>
>>     It's a QtMultimedia based music player app, and my play queue
>>     stops updating the datamodel when the player reaches the end of
>>     one song and goes to the next in the queue, the player itself
>>     continues to work, but the datamodel that displays in the GUI
>>     becomes stops updating. This happens only when minimized, when the
>>     app is in focus the app works as expected.
>     Does this happen also when the screen is on or off ? When the screen
>     is off Sailfish behaves a bit like Android, freezing running
>     apps/running timers after a few minutes, unless explicitly told
>     otherwise.
>>
>>     Code is available here:
>>     https://github.com/r0kk3rz/SirenSong-Media-Player but again I'm
>>     not expecting anyone to fix it for me, just help me understand the
>>     environment better.
>>
>>     On Mon, Sep 8, 2014 at 8:23 PM, Michael Neufing
>>     <m.neufing at yahoo.de <mailto:m.neufing at yahoo.de>> wrote:
>>
>>         Hello,
>>
>>         I think, without further information on what your app does and
>>         what bug occurs when your app is minimized, nobody is able to
>>         help you.
>>
>>          
>>         Regards,
>>
>>         Michael Neufing
>>
>>
>>         r0kk3rz <r0kk3rz at gmail.com <mailto:r0kk3rz at gmail.com>> schrieb
>>         am 18:47 Montag, 8.September 2014:
>>
>>
>>         Hi,
>>
>>         Can someone explain what happens when an App gets minimized to
>>         the home screen on Sailfish?
>>
>>         I have a bug that only occurs when the App is in minimized
>>         state, and without really knowing what changes to look for it
>>         makes debugging hard.
>>
>>         Regards,
>>
>>
>>
>>         _______________________________________________
>>         SailfishOS.org Devel mailing list
>>         To unsubscribe, please send a mail to
>>         devel-unsubscribe at lists.sailfishos.org
>>         <mailto:devel-unsubscribe at lists.sailfishos.org>
>>
>>
>>         _______________________________________________
>>         SailfishOS.org Devel mailing list
>>         To unsubscribe, please send a mail to
>>         devel-unsubscribe at lists.sailfishos.org
>>         <mailto:devel-unsubscribe at lists.sailfishos.org>
>>
>>
>>
>>
>>     _______________________________________________
>>     SailfishOS.org Devel mailing list
>>     To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org <mailto:devel-unsubscribe at lists.sailfishos.org>
> 
> 
>     _______________________________________________
>     SailfishOS.org Devel mailing list
>     To unsubscribe, please send a mail to
>     devel-unsubscribe at lists.sailfishos.org
>     <mailto:devel-unsubscribe at lists.sailfishos.org>
> 
> 
> 
> 
> _______________________________________________
> 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