Andreas Dick wrote:
> hei
> I installed a Feisty on my AMD64 and set up freevo 1.7.3 on it. if I now use
> the eject button on the CD drive or if I use the eject button on the remote,
> freevo crashes with a message and with the attaced log file...
> any suggestions?
> Andreas
>
I get the same crash condition on my Freevo 1.7.3 installation (was fine
in 1.6.x); however, in my situation, the crash occurs when I use the
period key on my keyboard. Using the eject button on the CD drive works
fine. Also, the problem only occurs if I hit the period key to eject
the tray when there's no media in the drive or if I hit the period key
to close the tray and there's no media.
Digging around in rom_drives.py, I noticed that the logic used for
"open" differs from that used for "close". So, I modified the "dir ==
'open'" section along the lines of "dir == 'close'" as follows:
296,303c296,305
< if os.uname()[0] == 'FreeBSD':
< s = ioctl(fd, CDIOCEJECT, 0)
< else:
< s = ioctl(fd, CDROMEJECT)
< self.tray_open = 1
< finally:
< os.close(fd)
<
---
> try:
> if os.uname()[0] == 'FreeBSD':
> s = ioctl(fd, CDIOCEJECT, 0)
> else:
> s = ioctl(fd, CDROMEJECT)
> self.tray_open = 1
> finally:
> os.close(fd)
> except Exception, e:
> _debug_('Cannot open "%s": %s"' % (self.devicename,
e), config.DWARNING)
I'm not a programmer, so I don't know if the above is the "right" way to
fix the problem or not, but Freevo no longer crashes when I use the
period key to open/close the CD drive and there's no media in the tray;
instead, a warning message is written to the log.
Hope that helps.
Art S R
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users