[SailfishDevel] 回复:Devel Digest, Vol 72, Issue 13

不瘦十斤不改名字 1028294566 at qq.com
Tue Apr 14 07:10:15 UTC 2020


什么意思


------------------ 原始邮件 ------------------
发件人: "devel-request"<devel-request at lists.sailfishos.org>;
发送时间: 2020年4月14日(星期二) 下午3:14
收件人: "devel"<devel at lists.sailfishos.org>;

主题: Devel Digest, Vol 72, Issue 13



Send Devel mailing list submissions to
	devel at 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-request at lists.sailfishos.org

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

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


Today's Topics:

   1. 回复:Devel Digest, Vol 72, Issue 12
      (=?gb18030?B?srvK3cquve+yu7jEw/vX1g==?=)


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

Message: 1
Date: Tue, 14 Apr 2020 15:09:32 +0800
From: "=?gb18030?B?srvK3cquve+yu7jEw/vX1g==?=" <1028294566 at qq.com>
To: "=?gb18030?B?ZGV2ZWwtcmVxdWVzdA==?=" <devel at lists.sailfishos.org>
Subject: [SailfishDevel] 回复:Devel Digest, Vol 72, Issue 12
Message-ID: <tencent_53E516C25BC15532C38C0858ECD80774F906 at qq.com>
Content-Type: text/plain; charset="gb18030"

给我个说法啊,信用卡付了款,不能用安卓虚拟机


------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"devel-request"<devel-request at lists.sailfishos.org&gt;;
发送时间:&nbsp;2020年4月14日(星期二) 下午3:12
收件人:&nbsp;"devel"<devel at lists.sailfishos.org&gt;;

主题:&nbsp;Devel Digest, Vol 72, Issue 12



Send Devel mailing list submissions to
	devel at 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-request at lists.sailfishos.org

You can reach the person managing the list at
	devel-owner at 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==?=" <1028294566 at qq.com&gt;
To: "=?gb18030?B?ZGV2ZWwtcmVxdWVzdA==?=" <devel at lists.sailfishos.org&gt;
Subject: [SailfishDevel] 回复:Devel Digest, Vol 72, Issue 11
Message-ID: <tencent_AE2916F443A6DC6BCBFACDE28A8B4141E405 at qq.com&gt;
Content-Type: text/plain; charset="gb18030"

我的怎么用不了虚拟安卓,已付款


------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"devel-request"<devel-request at lists.sailfishos.org&amp;gt;;
发送时间:&amp;nbsp;2020年4月14日(星期二) 中午1:40
收件人:&amp;nbsp;"devel"<devel at lists.sailfishos.org&amp;gt;;

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



Send Devel mailing list submissions to
	devel at 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-request at lists.sailfishos.org

You can reach the person managing the list at
	devel-owner at 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.org at gmail.com&amp;gt;
To: Sailfish OS Developers <devel at lists.sailfishos.org&amp;gt;
Subject: [SailfishDevel] memory leak?
Message-ID:
	<CAHxFV_vsa-YEJ2pL2s8xk=7rwNOp9SfJ6BsanEQ76fBubHVdZg at 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 <david at flypig.co.uk&amp;gt;
To: devel at lists.sailfishos.org
Subject: Re: [SailfishDevel] memory leak?
Message-ID: <3b91822b-d63c-5266-f907-e4dc7a46035c at 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.org at gmail.com&amp;gt;
To: Sailfish OS Developers <devel at lists.sailfishos.org&amp;gt;
Subject: Re: [SailfishDevel] memory leak?
Message-ID:
	<CAHxFV_t9EaKUdktvUAf6i-=g1qgWb0DF4YZexER=8yP3-aYTdQ at 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 <
david at 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-unsubscribe at 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.blanc at tgcm.eu&amp;gt;
To: Sailfish OS Developers <devel at lists.sailfishos.org&amp;gt;
Subject: [SailfishDevel] Lipstick not launching app
Message-ID: <b1756f97cf8c1e4fbf672c03d3323da76902cbde.camel at 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; <coderusinbox at gmail.com&amp;gt;
To: Sailfish OS Developers <devel at lists.sailfishos.org&amp;gt;
Subject: Re: [SailfishDevel] Lipstick not launching app
Message-ID:
	<CAFbg4UeLTMb8UdTYTHJmr39vi_7KV4ygLsTu7bcnuDhpgv7XYA at 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.blanc at 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-unsubscribe at 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.blanc at tgcm.eu&amp;gt;
To: devel at lists.sailfishos.org
Subject: Re: [SailfishDevel] Lipstick not launching app
Message-ID: <4bfbf033104b80e93c74fb92459c40974c16245a.camel at 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.blanc at 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-unsubscribe at 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-unsubscribe at lists.sailfishos.org
&amp;gt; 



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

Subject: Digest Footer

_______________________________________________
Devel mailing list
Devel at 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 at lists.sailfishos.org
https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel

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

End of Devel Digest, Vol 72, Issue 12
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200414/755ad28e/attachment.html>

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

Subject: Digest Footer

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

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

End of Devel Digest, Vol 72, Issue 13
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200414/2de4cf3f/attachment-0001.html>


More information about the Devel mailing list