????????????????????????????????????????????

------------------ ???????? ------------------
??????:&nbsp;"devel-request"<devel-requ...@lists.sailfishos.org&gt;;
????????:&nbsp;2020??4??14??(??????) ????3:12
??????:&nbsp;"devel"<devel@lists.sailfishos.org&gt;;

????:&nbsp;Devel Digest, Vol 72, Issue 12



Send Devel mailing list submissions to
        devel@lists.sailfishos.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
or, via email, send a message with subject or body 'help' to
        devel-requ...@lists.sailfishos.org

You can reach the person managing the list at
        devel-ow...@lists.sailfishos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Devel digest..."


Today's Topics:

&nbsp;&nbsp; 1. ??????Devel Digest, Vol 72, Issue 11
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (=?gb18030?B?srvK3cquve+yu7jEw/vX1g==?=)


----------------------------------------------------------------------

Message: 1
Date: Tue, 14 Apr 2020 15:07:05 +0800
From: "=?gb18030?B?srvK3cquve+yu7jEw/vX1g==?=" <1028294...@qq.com&gt;
To: "=?gb18030?B?ZGV2ZWwtcmVxdWVzdA==?=" <devel@lists.sailfishos.org&gt;
Subject: [SailfishDevel] ??????Devel Digest, Vol 72, Issue 11
Message-ID: <tencent_ae2916f443a6dc6bcbfacde28a8b4141e...@qq.com&gt;
Content-Type: text/plain; charset="gb18030"

??????????????????????????????


------------------&amp;nbsp;????????&amp;nbsp;------------------
??????:&amp;nbsp;"devel-request"<devel-requ...@lists.sailfishos.org&amp;gt;;
????????:&amp;nbsp;2020??4??14??(??????) ????1:40
??????:&amp;nbsp;"devel"<devel@lists.sailfishos.org&amp;gt;;

????:&amp;nbsp;Devel Digest, Vol 72, Issue 11



Send Devel mailing list submissions to
        devel@lists.sailfishos.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
or, via email, send a message with subject or body 'help' to
        devel-requ...@lists.sailfishos.org

You can reach the person managing the list at
        devel-ow...@lists.sailfishos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Devel digest..."


Today's Topics:

&amp;nbsp;&amp;nbsp; 1. memory leak? (E.S. Rosenberg)
&amp;nbsp;&amp;nbsp; 2. Re: memory leak? (David Llewellyn-Jones)
&amp;nbsp;&amp;nbsp; 3. Re: memory leak? (E.S. Rosenberg)
&amp;nbsp;&amp;nbsp; 4. Lipstick not launching app (Julien Blanc)
&amp;nbsp;&amp;nbsp; 5. Re: Lipstick not launching app (???????????? 
????????????????????)
&amp;nbsp;&amp;nbsp; 6. Re: Lipstick not launching app (Julien Blanc)


----------------------------------------------------------------------

Message: 1
Date: Mon, 13 Apr 2020 15:54:02 +0300
From: "E.S. Rosenberg" <es.rosenberg+sailfishos....@gmail.com&amp;gt;
To: Sailfish OS Developers <devel@lists.sailfishos.org&amp;gt;
Subject: [SailfishDevel] memory leak?
Message-ID:
        
<CAHxFV_vsa-YEJ2pL2s8xk=7rwnop9sfj6bsaneq76fbubhv...@mail.gmail.com&amp;gt;
Content-Type: text/plain; charset="utf-8"

Hi all,
Recently I've noticed my phone running out of memory more often.
I've update to 3.3.0.14 but I also released a newer version of gPodder
which may be guilty of this.
However closing gPodder does not release memory so I'm not really sure if I
should blame myself or that lipstick is after all leaking memory.
Also how does one optimize a qml/python apps memory usage? Neither is
managed to the best of my knowledge.
I may have time later to test the level of involvement of gPodder by
downgrading.
Thanks,
Ei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.sailfishos.org/pipermail/devel/attachments/20200413/83519421/attachment-0001.html&amp;gt;

------------------------------

Message: 2
Date: Mon, 13 Apr 2020 17:03:05 +0300
From: David Llewellyn-Jones <da...@flypig.co.uk&amp;gt;
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] memory leak?
Message-ID: <3b91822b-d63c-5266-f907-e4dc7a460...@flypig.co.uk&amp;gt;
Content-Type: text/plain; charset=utf-8

On 13/04/2020 15:54, E.S. Rosenberg wrote:
&amp;gt; Recently I've noticed my phone running out of memory more often.
&amp;gt; I've update to 3.3.0.14 but I also released a newer version of gPodder
&amp;gt; which may be guilty of this.
&amp;gt; However closing gPodder does not release memory so I'm not really sure
&amp;gt; if I should blame myself or that lipstick is after all leaking memory.
&amp;gt; Also how does one optimize a qml/python apps memory usage? Neither is
&amp;gt; managed to the best of my knowledge.
&amp;gt; I may have time later to test the level of involvement of gPodder by
&amp;gt; downgrading.

Hi Eli,

If the memory isn't released when gPodder's closed (assuming the app is
definitely closed, and not just hidden), then it's highly unlikely to be
gPodder draining your memory.

A very simple way to check memory usage is just to take a look at the
output of "top". The following will show everything running ordered by
memory usage and keep it updated:

top -o %MEM

Or if you just want to track gPodder you could use something like this:

top -o %MEM -p `pgrep sailfish-qml`

I used sailfish-qml as the app name, since probably that's what gPodder
will be called if it's QML/python-only, but you can change it to
whatever you're interested in.

Finally I was going to suggest to run it with valgrind, which gives a
summary of memory leaks when you close the app and I've found useful in
the past for C++ code. Unfortunately when I tried it on another QML-only
app the results weren't very helpful at all. So this may not be a
helpful route to go down.

Nevertheless I uploaded an RPM to openrepos in case it's helpful in some
other context:

https://openrepos.net/content/flypig/valgrind

David
-- 
Website: https://www.flypig.co.uk


------------------------------

Message: 3
Date: Mon, 13 Apr 2020 17:47:04 +0300
From: "E.S. Rosenberg" <es.rosenberg+sailfishos....@gmail.com&amp;gt;
To: Sailfish OS Developers <devel@lists.sailfishos.org&amp;gt;
Subject: Re: [SailfishDevel] memory leak?
Message-ID:
        
<CAHxFV_t9EaKUdktvUAf6i-=g1qgWb0DF4YZexER=8yp3-ay...@mail.gmail.com&amp;gt;
Content-Type: text/plain; charset="utf-8"

Hi David,
I have been using htop to monitor what is going on before and after closing.
In the past I've used valgrind for C++ projects (openlighting) but this is
python/QML with no compiled code (from my side) at all to the best of my
understanding valgrind can't help me with this, but I may be wrong.

Memory usage of the newer version of gPodder is definitely higher (it loads
a large amount of images) but it's also not released with closing gPodder
(which does not background) so I suspect there is some bad synergy
happening by a memory leak in system libraries being exasperated by gPodder.
I downgraded on my phone and I could push memory usage up by just switching
between lots of different pages and it seems pages don't get cleared from
memory when not in use, though memory usage did drop a bit when I locked
the screen.
(By opening all podcast information pages which include logos and all
episode listings one after the other I managed to enlarge the total memory
footprint [VIRT] from ~500M to 1200M after screen lock it dropped back down
to ~850M, resident memory usage [RES] was doubled by this and never dropped
back down)
In the newer version the episode listings are much heavier because each
episode comes with a picture.

Thanks,
Eli

Op ma 13 apr. 2020 om 17:03 schreef David Llewellyn-Jones <
da...@flypig.co.uk&amp;gt;:

&amp;gt; On 13/04/2020 15:54, E.S. Rosenberg wrote:
&amp;gt; &amp;gt; Recently I've noticed my phone running out of memory more 
often.
&amp;gt; &amp;gt; I've update to 3.3.0.14 but I also released a newer version 
of gPodder
&amp;gt; &amp;gt; which may be guilty of this.
&amp;gt; &amp;gt; However closing gPodder does not release memory so I'm not 
really sure
&amp;gt; &amp;gt; if I should blame myself or that lipstick is after all 
leaking memory.
&amp;gt; &amp;gt; Also how does one optimize a qml/python apps memory usage? 
Neither is
&amp;gt; &amp;gt; managed to the best of my knowledge.
&amp;gt; &amp;gt; I may have time later to test the level of involvement of 
gPodder by
&amp;gt; &amp;gt; downgrading.
&amp;gt;
&amp;gt; Hi Eli,
&amp;gt;
&amp;gt; If the memory isn't released when gPodder's closed (assuming the app is
&amp;gt; definitely closed, and not just hidden), then it's highly unlikely to 
be
&amp;gt; gPodder draining your memory.
&amp;gt;
&amp;gt; A very simple way to check memory usage is just to take a look at the
&amp;gt; output of "top". The following will show everything running ordered by
&amp;gt; memory usage and keep it updated:
&amp;gt;
&amp;gt; top -o %MEM
&amp;gt;
&amp;gt; Or if you just want to track gPodder you could use something like this:
&amp;gt;
&amp;gt; top -o %MEM -p `pgrep sailfish-qml`
&amp;gt;
&amp;gt; I used sailfish-qml as the app name, since probably that's what gPodder
&amp;gt; will be called if it's QML/python-only, but you can change it to
&amp;gt; whatever you're interested in.
&amp;gt;
&amp;gt; Finally I was going to suggest to run it with valgrind, which gives a
&amp;gt; summary of memory leaks when you close the app and I've found useful in
&amp;gt; the past for C++ code. Unfortunately when I tried it on another 
QML-only
&amp;gt; app the results weren't very helpful at all. So this may not be a
&amp;gt; helpful route to go down.
&amp;gt;
&amp;gt; Nevertheless I uploaded an RPM to openrepos in case it's helpful in 
some
&amp;gt; other context:
&amp;gt;
&amp;gt; https://openrepos.net/content/flypig/valgrind
&amp;gt;
&amp;gt; David
&amp;gt; --
&amp;gt; Website: https://www.flypig.co.uk
&amp;gt; _______________________________________________
&amp;gt; SailfishOS.org Devel mailing list
&amp;gt; To unsubscribe, please send a mail to
&amp;gt; devel-unsubscr...@lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.sailfishos.org/pipermail/devel/attachments/20200413/01e61ca1/attachment-0001.html&amp;gt;

------------------------------

Message: 4
Date: Mon, 13 Apr 2020 18:12:35 +0200
From: Julien Blanc <julien.bl...@tgcm.eu&amp;gt;
To: Sailfish OS Developers <devel@lists.sailfishos.org&amp;gt;
Subject: [SailfishDevel] Lipstick not launching app
Message-ID: <b1756f97cf8c1e4fbf672c03d3323da76902cbde.ca...@tgcm.eu&amp;gt;
Content-Type: text/plain; charset="UTF-8"

Hi,

I??m running into a pretty annoying issue with lipstick not launching
the application i develop anymore (occurs with 3.3, but occurs after i
made some changes which should not be relevant).

The application launch fine from a terminal, launch fine from the sdk,
but launching it from lipstick, it never gets launched and the process
does not show up when running top/ps &amp;amp; co.

This seems like there could be something wrong with my .desktop file,
but it didn't change between version 0.6 which was working fine with
3.3 and the dev version, which is not (i could not test dev version
with 3.2 yet).

journalctl does not show anything. There must be something wrong with
my app, since it is the only one showing this behaviour (and it didn't
before), but i'm puzzled as how to debug this. Any pointer would be
greatly appreciated.

Regards,

Julien



------------------------------

Message: 5
Date: Mon, 13 Apr 2020 19:57:14 +0300
From: ???????????? ????????????????????&amp;nbsp; 
<coderusin...@gmail.com&amp;gt;
To: Sailfish OS Developers <devel@lists.sailfishos.org&amp;gt;
Subject: Re: [SailfishDevel] Lipstick not launching app
Message-ID:
        
<cafbg4ueltmb8udtythjmr39vi_7kv4yglstu7bcnudhpgv7...@mail.gmail.com&amp;gt;
Content-Type: text/plain; charset="utf-8"

Hello. You're right. Show us your .desktop file to judge

????, 13 ??????. 2020 ??. ?? 19:12, Julien Blanc <julien.bl...@tgcm.eu&amp;gt;:

&amp;gt; Hi,
&amp;gt;
&amp;gt; I??m running into a pretty annoying issue with lipstick not launching
&amp;gt; the application i develop anymore (occurs with 3.3, but occurs after i
&amp;gt; made some changes which should not be relevant).
&amp;gt;
&amp;gt; The application launch fine from a terminal, launch fine from the sdk,
&amp;gt; but launching it from lipstick, it never gets launched and the process
&amp;gt; does not show up when running top/ps &amp;amp; co.
&amp;gt;
&amp;gt; This seems like there could be something wrong with my .desktop file,
&amp;gt; but it didn't change between version 0.6 which was working fine with
&amp;gt; 3.3 and the dev version, which is not (i could not test dev version
&amp;gt; with 3.2 yet).
&amp;gt;
&amp;gt; journalctl does not show anything. There must be something wrong with
&amp;gt; my app, since it is the only one showing this behaviour (and it didn't
&amp;gt; before), but i'm puzzled as how to debug this. Any pointer would be
&amp;gt; greatly appreciated.
&amp;gt;
&amp;gt; Regards,
&amp;gt;
&amp;gt; Julien
&amp;gt;
&amp;gt; _______________________________________________
&amp;gt; SailfishOS.org Devel mailing list
&amp;gt; To unsubscribe, please send a mail to
&amp;gt; devel-unsubscr...@lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.sailfishos.org/pipermail/devel/attachments/20200413/0f5410b2/attachment-0001.html&amp;gt;

------------------------------

Message: 6
Date: Tue, 14 Apr 2020 07:35:13 +0200
From: Julien Blanc <julien.bl...@tgcm.eu&amp;gt;
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Lipstick not launching app
Message-ID: <4bfbf033104b80e93c74fb92459c40974c16245a.ca...@tgcm.eu&amp;gt;
Content-Type: text/plain; charset="UTF-8"

There it is :

[Desktop Entry]
Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=harbour-kontroller
Exec=harbour-kontroller
Name=Kontroller
# translation example:
# your app name in German locale (de)
#
# Remember to comment out the following line, if you do not want to use
# a different app name in German locale (de).
#Name[de]=kontroller


The whole source code is available here:

https://github.com/Julien-Blanc-tgcm/kontroller

I changed a lot of things from v0.6, so tracking which particular
change triggers the problem is not an easy task. I??d rather have a way
to get more traces from lipstick than reverting every single change i
made.

THanks for your help,

Regards,

Julien

Le lundi 13 avril 2020 ?? 19:57 +0300, ???????????? ???????????????????? a 
??crit :
&amp;gt; Hello. You're right. Show us your .desktop file to judge
&amp;gt; 
&amp;gt; ????, 13 ??????. 2020 ??. ?? 19:12, Julien Blanc 
<julien.bl...@tgcm.eu&amp;gt;:
&amp;gt; &amp;gt; Hi,
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; I??m running into a pretty annoying issue with lipstick not
&amp;gt; &amp;gt; launching
&amp;gt; &amp;gt; the application i develop anymore (occurs with 3.3, but occurs
&amp;gt; &amp;gt; after i
&amp;gt; &amp;gt; made some changes which should not be relevant).
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; The application launch fine from a terminal, launch fine from 
the
&amp;gt; &amp;gt; sdk,
&amp;gt; &amp;gt; but launching it from lipstick, it never gets launched and the
&amp;gt; &amp;gt; process
&amp;gt; &amp;gt; does not show up when running top/ps &amp;amp; co.
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; This seems like there could be something wrong with my 
.desktop
&amp;gt; &amp;gt; file,
&amp;gt; &amp;gt; but it didn't change between version 0.6 which was working 
fine
&amp;gt; &amp;gt; with
&amp;gt; &amp;gt; 3.3 and the dev version, which is not (i could not test dev 
version
&amp;gt; &amp;gt; with 3.2 yet).
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; journalctl does not show anything. There must be something 
wrong
&amp;gt; &amp;gt; with
&amp;gt; &amp;gt; my app, since it is the only one showing this behaviour (and 
it
&amp;gt; &amp;gt; didn't
&amp;gt; &amp;gt; before), but i'm puzzled as how to debug this. Any pointer 
would be
&amp;gt; &amp;gt; greatly appreciated.
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; Regards,
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; Julien
&amp;gt; &amp;gt; 
&amp;gt; &amp;gt; _______________________________________________
&amp;gt; &amp;gt; SailfishOS.org Devel mailing list
&amp;gt; &amp;gt; To unsubscribe, please send a mail to 
&amp;gt; &amp;gt; devel-unsubscr...@lists.sailfishos.org
&amp;gt; 
&amp;gt; _______________________________________________
&amp;gt; SailfishOS.org Devel mailing list
&amp;gt; To unsubscribe, please send a mail to 
&amp;gt; devel-unsubscr...@lists.sailfishos.org
&amp;gt; 



------------------------------

Subject: Digest Footer

_______________________________________________
Devel mailing list
Devel@lists.sailfishos.org
https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel

------------------------------

End of Devel Digest, Vol 72, Issue 11
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.sailfishos.org/pipermail/devel/attachments/20200414/a3b58c0e/attachment.html&gt;

------------------------------

Subject: Digest Footer

_______________________________________________
Devel mailing list
Devel@lists.sailfishos.org
https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel

------------------------------

End of Devel Digest, Vol 72, Issue 12
*************************************
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to