Dirk Meyer wrote:
> Duncan Webb wrote:
>   
>> Duncan Webb wrote:
>>     
>>> Dirk Meyer wrote:
>>>       
>>>> Jason Tackaberry wrote:
>>>>         
>>>>> On Sun, 2008-03-02 at 16:02 +0100, Dirk Meyer wrote:
>>>>>           
>>>>>> Yes. Maybe we should only change the system handler if no one is
>>>>>> installed. But what happens in dfb on the system handler? We need a
>>>>>> clean shutdown somehow.
>>>>>>             
>>>>> Register an atexit handler and call it only if we weren't able to
>>>>> shutdown using our normal route?
>>>>>           
>>>> I just did some tests by removing our signal handler. Even with atexit
>>>> (we already have this) the handler is not called. The default action
>>>> without handler is to stop without _any_ further code.
>>>>         
>>> So how do we achieve a clean shut down?
>>>
>>> I was thinking that I could install a kaa handler before kaa.main
>>> has been run. Of course, DirectFB needs closing down cleanly
>>> otherwise the video mode is incorrect.
>>>
>>> The other shut down problem, is that it does not shut down from the
>>> main menu, just blocks. I've checked the current svn against
>>> 1.8.0rc2 and the shut down code is the same.
>>>
>>> There is another error, that I think is coming from kaa.rpc when an
>>> exception occurs. I get this message when something is incorrect:
>>>
>>> exceptions must be classes, instances, or strings (deprecated), not
>>> RemoteException
>>>       
>> I have another one for you to look at:
>>
>> 2008-03-07 21:45:43,640 ERROR    signal.emit
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/site-packages/kaa/notifier/signals.py",
>> line 209, in emit
>>     if cb(*args, **kwargs) == False:
>>   File "/usr/lib/python2.4/site-packages/kaa/notifier/callback.py",
>> line 168, in __call__
>>     result = cb(*cb_args, **cb_kwargs)
>> TypeError: signal_handler() takes exactly 2 arguments (0 given)
>>     
>
> kaa.main.signals['shutdown'].connect(signal_handler)
>
> The kaa shutdown signal has no parameter while you still have the args
> From the unix signal handler:
> def signal_handler(sig, frame)
>   

Oh thanks,

What about the RemoteException would this be something similar?

Duncan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to