On Mon, 2009-01-26 at 19:50 +0100, Duncan Webb wrote: > The first stop-stopper is that the CPU usage is very high when freevo is > idle. > > Wonder if anyone knows how to find out what the problem could be? > Profiling the code also crashes, so that didn't help much.
There's no substitute for a well placed print call :) strace _might_ give you some clues. At the very least, if you see excessive calls to select, you know the main loop is stepping quite a lot, which probably means you have a very low duration timer running. It might then be helpful to add some debug lines to kaa's nf_generic.py to see what timers are getting invoked and how often. You could also try disabling your KeyboardInterrupt handler and let it bubble up uncaught, and then hit ctrl-c when it starts sucking cpu and see if anything informative shows up in the traceback. > The next problem is that the HTMLParser is not as robust as with > Python-2.4 or Python-2.5. This means that the IMDB searches tend to > cause a crash. The difference between 2.5 and 2.6 HTMLParser isn't much. In fact, doing diff on the two versions, the only change is with the unescape() method, and to me it looks like the 2.6 version is more feature-complete. Are you seeing tracebacks in unescape()? If not, the crashes might be caused by something else. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel