James Fiore wrote:

On Tue, 22 Nov 2005, Duncan Webb wrote:

the time seems to vary. And it is related to the having background music, if this is removed the slide show plays correctly.


I believe it varies with the length of the song playing in the background. As the song ends, freevo tries to remove the entry from the callback stack but the items are being removed from the stack out of order from which they were placed on the stack...causing the ab-end.

Don't think that it's related to the song or the images, timings are too random for that.


Anybody got any ideas?

Crash!
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/freevo/main.py", line 492, in ?
  MainTread().run()
File "/usr/lib/python2.3/site-packages/freevo/main.py", line 352, in run
  self.eventhandler(rc.get_event(True))
File "/usr/lib/python2.3/site-packages/freevo/rc.py", line 149, in get_event
  return get_singleton().get_event(blocking)
File "/usr/lib/python2.3/site-packages/freevo/rc.py", line 488, in get_event
  self.poll()
File "/usr/lib/python2.3/site-packages/freevo/rc.py", line 466, in poll
  self.callbacks.remove(c)
ValueError: list.remove(x): x not in list


I worked around the problem by applying the following patch to rc.py line 466 but I suspect it's causing a memory leak in python because items are not actually being removed from the callback stack:

[EMAIL PROTECTED] freevo]$ diff rc.py rc.py_ORIGINAL_20051023
466c466
<                     if c in self.callbacks : self.callbacks.remove(c)
---

                    self.callbacks.remove(c)

This works well thanks, can't any problems with the memory, checked with top. I would guess that it can't remove the callback because it's already been removed.

Duncan


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to