[SailfishDevel] "Unnamed application is not responding" - How to respond from C and python? (Martin Kampas)
code.codition at gmail.com
Wed Feb 14 12:11:02 UTC 2018
I had the same issue, when porting Irrlicht Engine https://together.jolla.com/question/165688/nearly-done-irrlicht-19-opengles2-engine-port/ <https://together.jolla.com/question/165688/nearly-done-irrlicht-19-opengles2-engine-port/>
If I right understand you, in C in Wayland you need to say Wayland, that your app does not freeze
shell_surface_ping (void *data, struct wl_shell_surface *shell_surface, uint32_t serial)
wl_shell_surface_pong (shell_surface, serial);
In my repo https://github.com/savegame/sailfish-irrlicht/blob/master/source/Irrlicht/CIrrDeviceLinux.cpp <https://github.com/savegame/sailfish-irrlicht/blob/master/source/Irrlicht/CIrrDeviceLinux.cpp> line 637
That information you can find in many Wayland tutorials (when Wayland ping your application, you have to answer it)
> Message: 4
> Date: Wed, 14 Feb 2018 05:50:06 +0000
> From: Martin Kampas <martin.kampas at jolla.com>
> To: Sailfish OS Developers <devel at lists.sailfishos.org>, Zhang Bird
> <0312birdzhang at gmail.com>
> Subject: Re: [SailfishDevel] "Unnamed application is not responding" -
> How to respond from C and python?
> <597ECB6BFD23CC488EED8B6CD7566AD25B0C0989 at ORD2MBX01B.mex05.mlsrvr.com>
> Content-Type: text/plain; charset="us-ascii"
> Hi Jonas,
> This example might help you https://github.com/sailfishos/sdk-sdl-project-example .
> From: Devel [devel-bounces at lists.sailfishos.org] on behalf of Jonas Aaberg [cja at lithops.se]
> Sent: Tuesday, January 30, 2018 11:24 AM
> To: Zhang Bird
> Cc: Sailfish OS Developers
> Subject: Re: [SailfishDevel] "Unnamed application is not responding" - How to respond from C and python?
> Yes, some help would be great!
> Maybe create a wrapper util? Like
> sfos_wrap "python3 mypygame.py"
> Although, a flag in .desktop is probably prettier.
> On Sat, 27 Jan 2018 16:47:48 +0800
> Zhang Bird <0312birdzhang at gmail.com> wrote:
>> To be honest, "harbour-pygame_breakout.cpp" is uglycode.
>> I had the same question with you, and i didn't have a perfect
>> solution so i used uglycode :(
>> I tried pyotherside <http://pyotherside.readthedocs.io/en/latest/>
>> with qml, but it not support for SDL2 currently.
>> So, we need some help ;)
>> 2018-01-27 14:58 GMT+08:00 Jonas Aaberg <cja at lithops.se>:
>>> I tested two of my programs on SailfishOS:
>>> - texttv (https://bitbucket.org/gmelchett/texttv) written in
>>> python, using pygame_sdl2
>>> - endlessman (https://bitbucket.org/gmelchett/endlessman/) written
>>> in C using SDL2 (Needs some CFLAG changes to compile on Xperia X
>>> due to gcc 4.x)
>>> Both works nicely on SailfishOS, except that I repeatedly get
>>> "Unnamed application is not responding" with a some seconds in
>>> between. Is there a way to respond from python and C? Or can I
>>> somehow mark my programs as "don't communicate" with them to make
>>> SailfishOS ignore them? Special option in .desktop?
>>> Or must there be some kind of wrapper, like this one:
>>> Btw, I didn't manage to get it to compile, to me the error looks
>>> like the code is outdated (I'm completely green to QT and C++.. So
>>> some help then would be appreciated!)
>>> Best regards,
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe at lists.
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> Subject: Digest Footer
> Devel mailing list
> Devel at lists.sailfishos.org
> End of Devel Digest, Vol 46, Issue 5
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel