<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>我的怎么用不了虚拟安卓,已付款</div><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "devel-request"<devel-request@lists.sailfishos.org>;</div><div><b>发送时间:</b> 2020年4月14日(星期二) 中午1:40</div><div><b>收件人:</b> "devel"<devel@lists.sailfishos.org>;<wbr></div><div></div><div><b>主题:</b> Devel Digest, Vol 72, Issue 11</div></div><div><br></div>Send Devel mailing list submissions to<br>    devel@lists.sailfishos.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>       https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel<br>or, via email, send a message with subject or body 'help' to<br>     devel-request@lists.sailfishos.org<br><br>You can reach the person managing the list at<br>   devel-owner@lists.sailfishos.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Devel digest..."<br><br><br>Today's Topics:<br><br>   1. memory leak? (E.S. Rosenberg)<br>   2. Re: memory leak? (David Llewellyn-Jones)<br>   3. Re: memory leak? (E.S. Rosenberg)<br>   4. Lipstick not launching app (Julien Blanc)<br>   5. Re: Lipstick not launching app (Андрей Кожевников)<br>   6. Re: Lipstick not launching app (Julien Blanc)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 13 Apr 2020 15:54:02 +0300<br>From: "E.S. Rosenberg" <es.rosenberg+sailfishos.org@gmail.com><br>To: Sailfish OS Developers <devel@lists.sailfishos.org><br>Subject: [SailfishDevel] memory leak?<br>Message-ID:<br>        <CAHxFV_vsa-YEJ2pL2s8xk=7rwNOp9SfJ6BsanEQ76fBubHVdZg@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi all,<br>Recently I've noticed my phone running out of memory more often.<br>I've update to 3.3.0.14 but I also released a newer version of gPodder<br>which may be guilty of this.<br>However closing gPodder does not release memory so I'm not really sure if I<br>should blame myself or that lipstick is after all leaking memory.<br>Also how does one optimize a qml/python apps memory usage? Neither is<br>managed to the best of my knowledge.<br>I may have time later to test the level of involvement of gPodder by<br>downgrading.<br>Thanks,<br>Ei<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200413/83519421/attachment-0001.html><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 13 Apr 2020 17:03:05 +0300<br>From: David Llewellyn-Jones <david@flypig.co.uk><br>To: devel@lists.sailfishos.org<br>Subject: Re: [SailfishDevel] memory leak?<br>Message-ID: <3b91822b-d63c-5266-f907-e4dc7a46035c@flypig.co.uk><br>Content-Type: text/plain; charset=utf-8<br><br>On 13/04/2020 15:54, E.S. Rosenberg wrote:<br>> Recently I've noticed my phone running out of memory more often.<br>> I've update to 3.3.0.14 but I also released a newer version of gPodder<br>> which may be guilty of this.<br>> However closing gPodder does not release memory so I'm not really sure<br>> if I should blame myself or that lipstick is after all leaking memory.<br>> Also how does one optimize a qml/python apps memory usage? Neither is<br>> managed to the best of my knowledge.<br>> I may have time later to test the level of involvement of gPodder by<br>> downgrading.<br><br>Hi Eli,<br><br>If the memory isn't released when gPodder's closed (assuming the app is<br>definitely closed, and not just hidden), then it's highly unlikely to be<br>gPodder draining your memory.<br><br>A very simple way to check memory usage is just to take a look at the<br>output of "top". The following will show everything running ordered by<br>memory usage and keep it updated:<br><br>top -o %MEM<br><br>Or if you just want to track gPodder you could use something like this:<br><br>top -o %MEM -p `pgrep sailfish-qml`<br><br>I used sailfish-qml as the app name, since probably that's what gPodder<br>will be called if it's QML/python-only, but you can change it to<br>whatever you're interested in.<br><br>Finally I was going to suggest to run it with valgrind, which gives a<br>summary of memory leaks when you close the app and I've found useful in<br>the past for C++ code. Unfortunately when I tried it on another QML-only<br>app the results weren't very helpful at all. So this may not be a<br>helpful route to go down.<br><br>Nevertheless I uploaded an RPM to openrepos in case it's helpful in some<br>other context:<br><br>https://openrepos.net/content/flypig/valgrind<br><br>David<br>-- <br>Website: https://www.flypig.co.uk<br><br><br>------------------------------<br><br>Message: 3<br>Date: Mon, 13 Apr 2020 17:47:04 +0300<br>From: "E.S. Rosenberg" <es.rosenberg+sailfishos.org@gmail.com><br>To: Sailfish OS Developers <devel@lists.sailfishos.org><br>Subject: Re: [SailfishDevel] memory leak?<br>Message-ID:<br>  <CAHxFV_t9EaKUdktvUAf6i-=g1qgWb0DF4YZexER=8yP3-aYTdQ@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi David,<br>I have been using htop to monitor what is going on before and after closing.<br>In the past I've used valgrind for C++ projects (openlighting) but this is<br>python/QML with no compiled code (from my side) at all to the best of my<br>understanding valgrind can't help me with this, but I may be wrong.<br><br>Memory usage of the newer version of gPodder is definitely higher (it loads<br>a large amount of images) but it's also not released with closing gPodder<br>(which does not background) so I suspect there is some bad synergy<br>happening by a memory leak in system libraries being exasperated by gPodder.<br>I downgraded on my phone and I could push memory usage up by just switching<br>between lots of different pages and it seems pages don't get cleared from<br>memory when not in use, though memory usage did drop a bit when I locked<br>the screen.<br>(By opening all podcast information pages which include logos and all<br>episode listings one after the other I managed to enlarge the total memory<br>footprint [VIRT] from ~500M to 1200M after screen lock it dropped back down<br>to ~850M, resident memory usage [RES] was doubled by this and never dropped<br>back down)<br>In the newer version the episode listings are much heavier because each<br>episode comes with a picture.<br><br>Thanks,<br>Eli<br><br>Op ma 13 apr. 2020 om 17:03 schreef David Llewellyn-Jones <<br>david@flypig.co.uk>:<br><br>> On 13/04/2020 15:54, E.S. Rosenberg wrote:<br>> > Recently I've noticed my phone running out of memory more often.<br>> > I've update to 3.3.0.14 but I also released a newer version of gPodder<br>> > which may be guilty of this.<br>> > However closing gPodder does not release memory so I'm not really sure<br>> > if I should blame myself or that lipstick is after all leaking memory.<br>> > Also how does one optimize a qml/python apps memory usage? Neither is<br>> > managed to the best of my knowledge.<br>> > I may have time later to test the level of involvement of gPodder by<br>> > downgrading.<br>><br>> Hi Eli,<br>><br>> If the memory isn't released when gPodder's closed (assuming the app is<br>> definitely closed, and not just hidden), then it's highly unlikely to be<br>> gPodder draining your memory.<br>><br>> A very simple way to check memory usage is just to take a look at the<br>> output of "top". The following will show everything running ordered by<br>> memory usage and keep it updated:<br>><br>> top -o %MEM<br>><br>> Or if you just want to track gPodder you could use something like this:<br>><br>> top -o %MEM -p `pgrep sailfish-qml`<br>><br>> I used sailfish-qml as the app name, since probably that's what gPodder<br>> will be called if it's QML/python-only, but you can change it to<br>> whatever you're interested in.<br>><br>> Finally I was going to suggest to run it with valgrind, which gives a<br>> summary of memory leaks when you close the app and I've found useful in<br>> the past for C++ code. Unfortunately when I tried it on another QML-only<br>> app the results weren't very helpful at all. So this may not be a<br>> helpful route to go down.<br>><br>> Nevertheless I uploaded an RPM to openrepos in case it's helpful in some<br>> other context:<br>><br>> https://openrepos.net/content/flypig/valgrind<br>><br>> David<br>> --<br>> Website: https://www.flypig.co.uk<br>> _______________________________________________<br>> SailfishOS.org Devel mailing list<br>> To unsubscribe, please send a mail to<br>> devel-unsubscribe@lists.sailfishos.org<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200413/01e61ca1/attachment-0001.html><br><br>------------------------------<br><br>Message: 4<br>Date: Mon, 13 Apr 2020 18:12:35 +0200<br>From: Julien Blanc <julien.blanc@tgcm.eu><br>To: Sailfish OS Developers <devel@lists.sailfishos.org><br>Subject: [SailfishDevel] Lipstick not launching app<br>Message-ID: <b1756f97cf8c1e4fbf672c03d3323da76902cbde.camel@tgcm.eu><br>Content-Type: text/plain; charset="UTF-8"<br><br>Hi,<br><br>I’m running into a pretty annoying issue with lipstick not launching<br>the application i develop anymore (occurs with 3.3, but occurs after i<br>made some changes which should not be relevant).<br><br>The application launch fine from a terminal, launch fine from the sdk,<br>but launching it from lipstick, it never gets launched and the process<br>does not show up when running top/ps & co.<br><br>This seems like there could be something wrong with my .desktop file,<br>but it didn't change between version 0.6 which was working fine with<br>3.3 and the dev version, which is not (i could not test dev version<br>with 3.2 yet).<br><br>journalctl does not show anything. There must be something wrong with<br>my app, since it is the only one showing this behaviour (and it didn't<br>before), but i'm puzzled as how to debug this. Any pointer would be<br>greatly appreciated.<br><br>Regards,<br><br>Julien<br><br><br><br>------------------------------<br><br>Message: 5<br>Date: Mon, 13 Apr 2020 19:57:14 +0300<br>From: Андрей Кожевников  <coderusinbox@gmail.com><br>To: Sailfish OS Developers <devel@lists.sailfishos.org><br>Subject: Re: [SailfishDevel] Lipstick not launching app<br>Message-ID:<br>       <CAFbg4UeLTMb8UdTYTHJmr39vi_7KV4ygLsTu7bcnuDhpgv7XYA@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello. You're right. Show us your .desktop file to judge<br><br>пн, 13 апр. 2020 г. в 19:12, Julien Blanc <julien.blanc@tgcm.eu>:<br><br>> Hi,<br>><br>> I’m running into a pretty annoying issue with lipstick not launching<br>> the application i develop anymore (occurs with 3.3, but occurs after i<br>> made some changes which should not be relevant).<br>><br>> The application launch fine from a terminal, launch fine from the sdk,<br>> but launching it from lipstick, it never gets launched and the process<br>> does not show up when running top/ps & co.<br>><br>> This seems like there could be something wrong with my .desktop file,<br>> but it didn't change between version 0.6 which was working fine with<br>> 3.3 and the dev version, which is not (i could not test dev version<br>> with 3.2 yet).<br>><br>> journalctl does not show anything. There must be something wrong with<br>> my app, since it is the only one showing this behaviour (and it didn't<br>> before), but i'm puzzled as how to debug this. Any pointer would be<br>> greatly appreciated.<br>><br>> Regards,<br>><br>> Julien<br>><br>> _______________________________________________<br>> SailfishOS.org Devel mailing list<br>> To unsubscribe, please send a mail to<br>> devel-unsubscribe@lists.sailfishos.org<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200413/0f5410b2/attachment-0001.html><br><br>------------------------------<br><br>Message: 6<br>Date: Tue, 14 Apr 2020 07:35:13 +0200<br>From: Julien Blanc <julien.blanc@tgcm.eu><br>To: devel@lists.sailfishos.org<br>Subject: Re: [SailfishDevel] Lipstick not launching app<br>Message-ID: <4bfbf033104b80e93c74fb92459c40974c16245a.camel@tgcm.eu><br>Content-Type: text/plain; charset="UTF-8"<br><br>There it is :<br><br>[Desktop Entry]<br>Type=Application<br>X-Nemo-Application-Type=silica-qt5<br>Icon=harbour-kontroller<br>Exec=harbour-kontroller<br>Name=Kontroller<br># translation example:<br># your app name in German locale (de)<br>#<br># Remember to comment out the following line, if you do not want to use<br># a different app name in German locale (de).<br>#Name[de]=kontroller<br><br><br>The whole source code is available here:<br><br>https://github.com/Julien-Blanc-tgcm/kontroller<br><br>I changed a lot of things from v0.6, so tracking which particular<br>change triggers the problem is not an easy task. I’d rather have a way<br>to get more traces from lipstick than reverting every single change i<br>made.<br><br>THanks for your help,<br><br>Regards,<br><br>Julien<br><br>Le lundi 13 avril 2020 à 19:57 +0300, Андрей Кожевников a écrit :<br>> Hello. You're right. Show us your .desktop file to judge<br>> <br>> пн, 13 апр. 2020 г. в 19:12, Julien Blanc <julien.blanc@tgcm.eu>:<br>> > Hi,<br>> > <br>> > I’m running into a pretty annoying issue with lipstick not<br>> > launching<br>> > the application i develop anymore (occurs with 3.3, but occurs<br>> > after i<br>> > made some changes which should not be relevant).<br>> > <br>> > The application launch fine from a terminal, launch fine from the<br>> > sdk,<br>> > but launching it from lipstick, it never gets launched and the<br>> > process<br>> > does not show up when running top/ps & co.<br>> > <br>> > This seems like there could be something wrong with my .desktop<br>> > file,<br>> > but it didn't change between version 0.6 which was working fine<br>> > with<br>> > 3.3 and the dev version, which is not (i could not test dev version<br>> > with 3.2 yet).<br>> > <br>> > journalctl does not show anything. There must be something wrong<br>> > with<br>> > my app, since it is the only one showing this behaviour (and it<br>> > didn't<br>> > before), but i'm puzzled as how to debug this. Any pointer would be<br>> > greatly appreciated.<br>> > <br>> > Regards,<br>> > <br>> > Julien<br>> > <br>> > _______________________________________________<br>> > SailfishOS.org Devel mailing list<br>> > To unsubscribe, please send a mail to <br>> > devel-unsubscribe@lists.sailfishos.org<br>> <br>> _______________________________________________<br>> SailfishOS.org Devel mailing list<br>> To unsubscribe, please send a mail to <br>> devel-unsubscribe@lists.sailfishos.org<br>> <br><br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Devel mailing list<br>Devel@lists.sailfishos.org<br>https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel<br><br>------------------------------<br><br>End of Devel Digest, Vol 72, Issue 11<br>*************************************<br></div>