[SailfishDevel] "Unnamed application is not responding" - How to respond from C and python? (Martin Kampas)
Dmitriy Sedov
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
static void
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?
> Message-ID:
> <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 .
>
> BR,
> Martin
>
> ________________________________________
> 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.
>
> BR,
> Jonas
>
>
> 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>:
>>
>>>
>>>
>>> Hi,
>>>
>>> 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:
>>>
>>> https://github.com/0312birdzhang/harbour-pygame_breakout/blob/master/src/
>>> harbour-pygame_breakout.cpp
>>>
>>>
>>> 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,
>>> Jonas
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe at lists.
>>> sailfishos.org
>
> _______________________________________________
> 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
> https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
>
> ------------------------------
>
> End of Devel Digest, Vol 46, Issue 5
> ************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180214/6afaba36/attachment.html>
More information about the Devel
mailing list