On Mon, January 19, 2009 7:23 pm, Duncan Webb wrote: > Jason Tackaberry wrote: >> On Wed, 2009-01-14 at 21:50 +0000, Adam Charrett wrote: >>> Yes, the new dialog module uses kaa.display if available to display >>> dialogs/OSDs over video. >> >> Ok. It's not clear to me where things could be going wrong. >> >> Duncan, was SystemExit raised in the main process? kaa.display should >> not interfere with this or prevent the process from shutting down. >> >> Hopefully you can troubleshoot a bit more and give me some idea as to >> what, if anything, kaa.display is doing wrong. >> >> Add some print statements to X11Display.handle_events and make sure >> things aren't blocking in the call to self._display.handle_events(). >> That's the only thing I could think of that could cause problems >> (although it should never block there). > > > Is the SystemExit passed through kaa and should be seen by Freevo? This > seems to be the case. > > AFAICT the existing code does not raise a SystemExit in all cases. Need > to look at what the shutdown module is doing and to see if the module is > still needed. > > I get very little time on the machine running X, either someone is > watching a TV recording or a DVD ISO... > > Should get some time this weekend. > > Duncan
An old thread I know, but I was doing some fiddling last night to get my machine to shutdown when selecting the shutdown option from the main menu. I had assumed the reason it wasn't shutting down was sudo related, but it turns out that the problem was pygame.quit(), commenting out this in osd.py meant the machine properly shutdown. pygame.quit() was not returning! I've had a quick google this morning and this appears not to be just a freevo problem I found a thread with a similar problem when using IDLE and pygame. Checking the pygame documentation, it says that pygame.quit() only needs to be called if the app wants to free pygame resources and continue, otherwise it will be called when the app exits. So do we really need to call pygame.quit()? Cheers Adam ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel