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 main machine to poweroff when selecting shutdown from the main menu. I had thought the problem was sudo related but it turns out after some 'print' debugging that pygame.quit() was not returning. Commenting out pygame.quit() in osd.shutdown() solved the problem. I've read the pygame documentation and done a bit of googleing this morning and it seems that there have been similar problems with pygame.quit and IDLE, with no solution. However the pygame documentation does say that most applications don't need to call this as it will be called when the app exits (only apps that want to free the pygame resource and continue need to call it). So my question is 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