2005-04-21, 18:05
(jpf @ april 21 2005,16:47 Wrote:could you point me towards a xbmc-cvs build that actually works? and to a location. the primary -my mom- mirror only has a build since 2005-04-01(madtw @ april 21 2005,15:40 Wrote:first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.hi,
as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.
that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.
ok well basically the newer versions of xbmc have horrible bugs, the mplayer window shows a black screen sometimes amongst other random problems.
when i can't exit the screens, basically i can still use all the menus in the screen i'm stuck in. the main screen that freezes is the recordedshowdetails screen, but the livetv screen does that periodically as well. i also was having problems with connections freezing, and when i killed the mythbackend then i magically got control of the menus again, so i changed the socket to a timeoutsocket, put a default of 20 seconds in there, i haven't had a freeze like that since.
also, why was the "back" button disabled? i reenabled it here:
# stop user from quitting selecting parent dir in main window
if action == mythtvgui.action_parent_dir:
actionconsumed = none
maybe the back button will work even if the "menu" button doesn't, but maybe there is something i'm not aware of.
here is the change i made to def connect()
def connect( self ):
s = timeoutsocket.socket( socket.af_inet, socket.sock_stream )
timeoutsocket.setdefaultsockettimeout(20);
with regards to the last error, i've seen it a few times. i am still able to exit onto the main menu and then everything seems fine.
why is the program referencing a window id of -10000? that happens every time i can't exit the menu and am trying to by pressing the "menu" key.
it would probably be good to add code to recreate any connection that fails (connection reset by peer is an error i see sometimes), as well as recreate the player object if it does not exist.