Fwd: Warning dialog for slow scripts?
Mark Kretschmann
kretschmann at kde.org
Sun Feb 7 08:39:34 CET 2010
---------- Forwarded message ----------
From: Peter Zhou <peterzhoulei at gmail.com>
Date: Sun, Feb 7, 2010 at 8:36 AM
Subject: Re: Warning dialog for slow scripts?
To: Mark Kretschmann <kretschmann at kde.org>
Dear markey,
I don't yet have a clear idea of how to do it. I guess we need to make
the scripts threads seperated from the main thread. And thus we can
ping the script threads, say, every 5 seconds.
I am now starting my own business. I am working 12 hours a day, and
7days a week. I cannot promise I can implement the feature on time. I
will try me best anyway.
Best regards,
Sent from my iPhone
On 6 Feb 2010, at 21:31, Mark Kretschmann <kretschmann at kde.org> wrote:
> Heya,
>
> recently we got several bug reports (also forum posts) about people
> having issues with slow Amarok Scripts (QtScript), causing Amarok to
> hang. The problem: It's very hard for the users to identify which
> script exactly is causing these issues.
>
> I think we could do something similar like Konqueror (and Firefox, I
> think) does: Implement a system that checks if a script takes longer
> than X seconds (maybe 3 seconds), and then show a dialog like this:
>
> "The script $FOO appears to have stalled. Would you like to terminate
> it?" -- "Yes/No"
>
> Example of such a bug report:
>
> https://bugs.kde.org/show_bug.cgi?id=225593
>
>
> I think it would be very good if we could add this before tagging (and
> also before string freeze, cause it needs new strings).
>
>
> Is anyone motivated to work on this? :)
>
> --
> Mark Kretschmann
> Amarok Developer
> Fellow of the Free Software Foundation Europe
> www.kde.org - amarok.kde.org - www.fsfe.org
More information about the Amarok-devel
mailing list