Music on startup makes videos freeze

  • i changed the xml so it plays the internet radio when it starts up and when i do that, the videos dont play. as soon as i click on a video to play, it freezes. i do have the current build as well. any suggestions?


  • we need some more information.

    bugs need to be reproducible. outline the exact steps necessary to reproduce, and it will be fixed.


  • bump


  • nope, same thing


  • it worked! thanks for the support everone!


  • autoexec.py:
    # auto execute scripts when xbmc starts, place this file in xbmchome\scripts\
    #
    # note: - do not execute more than one script at a time which asks for user input!

    import xbmc

    xbmc.executescript('q:\\scripts\\mp3.py')



    mp3.py:
    import xbmc

    file = 'q:\\scripts\\radio.pls'
    pls = xbmc.playlist(0)
    pls.load(file)
    player = xbmc.player()
    player.play(pls)

    radio.pls:
    [playlist]
    numberofentries=4
    file1=http://64.236.34.196:80/stream/1038
    title1=(#1 - 1264/13573) hitzradio.com - #1 for all the hits!
    length1=-1
    file2=http://64.236.34.4:80/stream/1038
    title2=(#2 - 1426/14175) hitzradio.com - #1 for all the hits!
    length2=-1
    file3=http://64.236.34.97:80/stream/1038
    title3=(#3 - 1005/9432) hitzradio.com - #1 for all the hits!
    length3=-1
    file4=http://64.236.34.67:80/stream/1038
    title4=(#4 - 3793/7720) hitzradio.com - #1 for all the hits!
    length4=-1
    version=2


  • i can try that, what exactly do i need to type and what file do i need to put it in? thanks


  • one thing to try might be to delete the playlist player, rather than just the playlist.

    eg add

    del player

    note that i know practically nothing about python, having only really seen it in this very thread :p, so the above may not work.

    cheers,
    jonathan


  • it appears to be an issue with the python playlist manager. i'm not up with python and it's interaction with xbmc to determine why it's doing what it's doing.

    basically, onplaybackstarted() is being called when anything new is played. this causes a message to be sent to the playlist player (in python) which fails. i haven't determined why it fails. this also happens if you have already stopped playing your radio stream. if you re-run the mp3.py script, it will do the same thing, except it deletes the old playlist player (likely as it has to in order to run the script) and therefore no issues occur. it's either a bug in the script, or a bug in xbmc's interaction with python playlist players.

    if i see the dev who developed the python stuff around, i'll ask him for comment. note that he's extremely busy atm though, so it might not be for a while.

    any python experts want to comment on the bugfree status of the above code?

    cheers,
    jonathan


  • mp3.py:
    import xbmc

    file = 'q:\\scripts\\radio.pls'
    pls = xbmc.playlist(0)
    pls.load(file)
    player = xbmc.player()
    player.play(pls)
    del pls

    i'm not sure at alle that it will work ! anyway i debug all my scripts while testing....


  • that everything you need?


  • moving to the python support forum


  • any other suggestions? thanks


  • what about adding
    del pls
    after player command ?


  • all i need to do to reproduce it is have internet radio startup through the autoexec.xml. then when i play any video doesnt matter if its over the network or on the harddrive, i get the fatal error thats on the bottom of the log. i tried stoping the internet radio then playing the video, same problem. but whats wierd is when the intro sound plays from previous build i wouldnt have this problem. also tried switching skins, different builds.. ect right now im on the most current version.






    here is the log:
    19-02-2005 12:45:26 notice q is mapped to:harddisk0\partition6\apps\xbmc
    19-02-2005 12:45:26 debug setting resolution 4
    19-02-2005 12:45:26 debug we set resolution 4
    19-02-2005 12:45:26 debug setting resolution 4
    19-02-2005 12:45:26 debug we set resolution 4
    19-02-2005 12:45:26 info load language file:q:\language\english\strings.xml
    19-02-2005 12:45:27 notice loaded q:\mplayer\iso639-1.xml
    19-02-2005 12:45:27 notice loaded q:\mplayer\iso639-2.xml
    19-02-2005 12:45:27 info load keymapping
    19-02-2005 12:45:27 info loading q:\keymap.xml
    19-02-2005 12:45:27 info checking skin version of: hifi
    19-02-2005 12:45:27 info skin version is: 1.22
    19-02-2005 12:45:27 info gui format 720x480 ntsc 4:3
    19-02-2005 12:45:27 info gui screen offset (0,0)
    19-02-2005 12:45:27 info install unhandled exception filter
    19-02-2005 12:45:27 info creating subdirectories
    19-02-2005 12:45:27 info thumbnails folder:q:\thumbs
    19-02-2005 12:45:27 info shortcuts folder:q:\shortcuts
    19-02-2005 12:45:27 info albums folder:q:\albums
    19-02-2005 12:45:27 info recording folder:q:\recordings
    19-02-2005 12:45:27 info screenshots folder:q:\screenshots
    19-02-2005 12:45:27 info subtitle folder:q:\subtitles
    19-02-2005 12:45:27 notice initialize assignment:[dhcp] network ip:[192.168.15.108] netmask:[255.255.255.0] gateway:[192.168.15.1] nameserver:[0.0.0.0]
    19-02-2005 12:45:27 notice use dhcp
    19-02-2005 12:45:27 info setting up network...
    19-02-2005 12:45:27 info requesting dhcp
    19-02-2005 12:45:29 info full duplex
    19-02-2005 12:45:29 info 100 mbps
    19-02-2005 12:45:29 info dynamic ip
    19-02-2005 12:45:29 info dns
    19-02-2005 12:45:29 info ip: 192.168.1.103
    19-02-2005 12:45:29 info get local ip address:
    19-02-2005 12:45:29 info ip adres:192.168.1.103
    19-02-2005 12:45:29 notice start ftpserver
    19-02-2005 12:45:29 notice start led control
    19-02-2005 12:45:29 notice start dvd mediatype detection
    19-02-2005 12:45:29 notice initializing playlistplayer
    19-02-2005 12:45:29 notice start fancontroller
    19-02-2005 12:45:29 notice load default skin:[hifi]
    19-02-2005 12:45:29 info load skin from:q:\skin\hifi
    19-02-2005 12:45:29 info delete old skin...
    19-02-2005 12:45:29 info default 4:3 resolution directory is q:\skin\hifi\pal
    19-02-2005 12:45:29 info default 16:9 resolution directory is q:\skin\hifi\pal
    19-02-2005 12:45:29 info load fonts for skin...
    19-02-2005 12:45:29 info loading fonts from q:\skin\hifi\pal\font.xml
    19-02-2005 12:45:29 warning file q:\skin\hifi\pal\font.xml doesnt have with name 'default', defaulting to first fontset
    19-02-2005 12:45:29 info load font:font10 path:q:\skin\hifi\fonts\common-font10.xpr
    19-02-2005 12:45:29 info load font:font12 path:q:\skin\hifi\fonts\common-font12.xpr
    19-02-2005 12:45:29 info load font:font13 path:q:\skin\hifi\fonts\common-font13.xpr
    19-02-2005 12:45:29 info load font:font14 path:q:\skin\hifi\fonts\common-font14.xpr
    19-02-2005 12:45:29 info load font:font15 path:q:\skin\hifi\fonts\common-font15.xpr
    19-02-2005 12:45:29 info load font:font16 path:q:\skin\hifi\fonts\common-font16.xpr
    19-02-2005 12:45:29 info load font:font18 path:q:\skin\hifi\fonts\common-font18.xpr
    19-02-2005 12:45:29 info load font:font20 path:q:\skin\hifi\fonts\common-font20.xpr
    19-02-2005 12:45:29 info load font:font64 path:q:\skin\hifi\fonts\common-font64.xpr
    19-02-2005 12:45:29 info load font:matrix8 path:q:\skin\hifi\fonts\matrix8.xpr
    19-02-2005 12:45:29 info load font:font04 path:q:\skin\hifi\fonts\common-font14.xpr
    19-02-2005 12:45:29 info load font:font101 path:q:\skin\hifi\fonts\common-font10.xpr
    19-02-2005 12:45:29 info load new skin...
    19-02-2005 12:45:29 info skin version is: 1.22
    19-02-2005 12:45:29 info loading skin file: home.xml
    19-02-2005 12:45:29 info loading references file: q:\skin\hifi\pal\references.xml
    19-02-2005 12:45:30 info loading skin file: myprograms.xml
    19-02-2005 12:45:30 info loading skin file: mypics.xml
    19-02-2005 12:45:30 info loading skin file: filemanager.xml
    19-02-2005 12:45:30 info loading skin file: myvideo.xml
    19-02-2005 12:45:30 info loading skin file: myvideogenre.xml
    19-02-2005 12:45:30 info loading skin file: myvideoactors.xml
    19-02-2005 12:45:30 info loading skin file: myvideoyear.xml
    19-02-2005 12:45:30 info loading skin file: myvideotitle.xml
    19-02-2005 12:45:30 info loading skin file: settings.xml
    19-02-2005 12:45:30 info loading skin file: myvideoplaylist.xml
    19-02-2005 12:45:30 info loading skin file: settingssysteminfo.xml
    19-02-2005 12:45:30 info loading skin file: dialogalbuminfo.xml
    19-02-2005 12:45:30 info loading skin file: dialogscriptinfo.xml
    19-02-2005 12:45:30 info loading skin file: settingsprofile.xml
    19-02-2005 12:45:30 info loading skin file: dialogyesno.xml
    19-02-2005 12:45:30 info loading skin file: dialogprogress.xml
    19-02-2005 12:45:30 info loading skin file: dialogvolumebar.xml
    19-02-2005 12:45:30 info loading skin file: dialogkaitoast.xml
    19-02-2005 12:45:30 info loading skin file: dialognumeric.xml
    19-02-2005 12:45:30 info loading skin file: dialoggamepad.xml
    19-02-2005 12:45:30 info loading skin file: dialogsubmenu.xml
    19-02-2005 12:45:30 info loading skin file: dialogbuttonmenu.xml
    19-02-2005 12:45:30 info loading skin file: dialogcontextmenu.xml
    19-02-2005 12:45:30 info loading skin file: dialogmusicscan.xml
    19-02-2005 12:45:30 info loading skin file: mymusicplaylist.xml
    19-02-2005 12:45:30 info loading skin file: mymusicsongs.xml
    19-02-2005 12:45:30 info loading skin file: mymusicalbum.xml
    19-02-2005 12:45:30 info loading skin file: mymusicartists.xml
    19-02-2005 12:45:30 info loading skin file: mymusicgenres.xml
    19-02-2005 12:45:30 info loading skin file: mymusictop100.xml
    19-02-2005 12:45:30 info loading skin file: dialogselect.xml
    19-02-2005 12:45:30 info loading skin file: dialogok.xml
    19-02-2005 12:45:30 info loading skin file: dialogfilestacking.xml
    19-02-2005 12:45:30 info loading skin file: dialogvideoinfo.xml
    19-02-2005 12:45:30 info loading skin file: musicoverlay.xml
    19-02-2005 12:45:30 info loading skin file: settingsuicalibration.xml
    19-02-2005 12:45:30 info loading skin file: settingsscreencalibration.xml
    19-02-2005 12:45:30 info loading skin file: settingscategory.xml
    19-02-2005 12:45:30 info loading skin file: videooverlay.xml
    19-02-2005 12:45:30 info loading skin file: videofullscreen.xml
    19-02-2005 12:45:30 info loading skin file: myscripts.xml
    19-02-2005 12:45:30 info loading skin file: musicvisualisation.xml
    19-02-2005 12:45:30 info loading skin file: slideshow.xml
    19-02-2005 12:45:30 info loading skin file: videoosd.xml
    19-02-2005 12:45:30 info loading skin file: myweather.xml
    19-02-2005 12:45:30 info loading skin file: dialoginvite.xml
    19-02-2005 12:45:30 info loading skin file: dialoghost.xml
    19-02-2005 12:45:30 info loading skin file: dialogkeyboard.xml
    19-02-2005 12:45:30 info loading skin file: mybuddies.xml
    19-02-2005 12:45:31 info loading skin file: pointer.xml
    19-02-2005 12:45:31 info loading user windows q:\skin\hifi\pal\custom*.xml
    19-02-2005 12:45:31 info loading skin file: q:\skin\hifi\pal\custom1.xml
    19-02-2005 12:45:31 info initialize new skin...
    19-02-2005 12:45:31 info skin loaded...
    19-02-2005 12:45:31 info initializing skin
    19-02-2005 12:45:31 info kaiclient: instantiating...
    19-02-2005 12:45:31 debug udpclient: creating udp socket...
    19-02-2005 12:45:31 debug udpclient: setting broadcast socket option...
    19-02-2005 12:45:31 debug udpclient: setting non-blocking socket options...
    19-02-2005 12:45:31 debug udpclient: spawning listener thread...
    19-02-2005 12:45:31 debug udpclient: ready.
    19-02-2005 12:45:31 info kaiclient: ready.
    19-02-2005 12:45:31 notice kaiclient: attach to kai engine host at 192.168.1.1
    19-02-2005 12:45:31 info removing tempfiles
    19-02-2005 12:45:31 notice initialize done
    19-02-2005 12:45:31 notice running the application...
    19-02-2005 12:45:31 debug loadlibrarya('zlib.pyd')
    19-02-2005 12:45:31 debug initializing fs_seg..
    19-02-2005 12:45:31 debug fs segment @ 0x80f650
    19-02-2005 12:45:31 debug executing entrypoint at: 0x9184ff - dll: zlib.pyd
    19-02-2005 12:45:31 debug loadlibrary('zlib.pyd') returning: 0x7e27b0
    19-02-2005 12:45:31 debug kernel32!getprocaddress(0x7e27b0, 'initzlib') => 0x912210
    19-02-2005 12:45:31 info -->python initialized<--
    19-02-2005 12:45:31 info
    19-02-2005 12:45:31 error texture manager unable to load file: q:\skin\hifi\media\
    19-02-2005 12:45:31 info mplayer play:shout://64.236.34.196:80/stream/1038 cachesize:256
    19-02-2005 12:45:33 debug udpclient: listening.
    19-02-2005 12:45:33 debug udpclient tx: 10623 -> 'kai_client_attach;'
    19-02-2005 12:45:33 debug udpclient rx: 10625 <- 'kai_client_engine_in_use;'
    19-02-2005 12:45:33 debug udpclient tx: 10625 -> 'kai_client_takeover;'
    19-02-2005 12:45:33 debug udpclient rx: 10760 <- 'kai_client_detach;'
    19-02-2005 12:45:33 debug udpclient rx: 10761 <- 'kai_client_dhcp_failure;0050f2a3070f;'
    19-02-2005 12:45:33 debug udpclient rx: 10761 <- 'kai_client_attach;'
    19-02-2005 12:45:33 debug udpclient tx: 10762 -> 'kai_client_getstate;'
    19-02-2005 12:45:33 debug udpclient rx: 10764 <- 'kai_client_logged_in;'
    19-02-2005 12:45:33 debug udpclient rx: 10765 <- 'kai_client_status;xlink kai is online..;'
    19-02-2005 12:45:33 debug udpclient rx: 10765 <- 'kai_client_user_data;tsicoupe;'
    19-02-2005 12:45:33 debug udpclient rx: 10766 <- 'kai_client_arena_status;1;1;'
    19-02-2005 12:45:33 info kaiclient: user intends to join games.
    19-02-2005 12:45:33 debug udpclient rx: 10767 <- 'kai_client_connected_messenger;'
    19-02-2005 12:45:33 debug udpclient rx: 10768 <- 'kai_client_chatmode;;'
    19-02-2005 12:45:33 debug udpclient rx: 10768 <- 'kai_client_add_contact;psyke426;'
    19-02-2005 12:45:33 debug udpclient rx: 10796 <- 'kai_client_add_contact;dpelta1;'
    19-02-2005 12:45:33 debug udpclient rx: 10797 <- 'kai_client_dhcp_failure;0050f2a3070f;'
    19-02-2005 12:45:33 debug udpclient rx: 10797 <- 'kai_client_admin_privileges;dfunked/die-hard/prestige/runtime/ss-funk/taz/texlink/thedaddy/xcondor/zipleen/[mf]taz/^s^/;'
    19-02-2005 12:45:33 debug udpclient rx: 10798 <- 'kai_client_moderator_privileges;;cphoenix/cyborgas/dk.swifttank/hajaz/jmel/kj05/komp/l3laze/oldhouse/puma81/redwolf/shadowace/sniperkilla/soul2soul/ss-cybrpunk/ss-scorp/twocents/welshcrook/xboxgeek/[bs]duke_uk/[bs]mrmurdertmoj/[ixs]porsj/[sad]tizzo/;'
    19-02-2005 12:45:33 info flipping bi-directional subtitles disabled
    19-02-2005 12:45:34 info stating file shout://64.236.34.196:80/stream/1038.conf
    19-02-2005 12:45:34 info stating file q:\mplayer\1038.conf
    19-02-2005 12:45:34 error texture manager unable to load file: q:\skin\hifi\media\
    19-02-2005 12:45:36 notice start led control
    19-02-2005 12:45:38 debug udpclient tx: 15791 -> 'kai_client_caps;013;'
    19-02-2005 12:45:48 debug udpclient tx: 25774 -> 'kai_client_get_metrics;'
    19-02-2005 12:45:48 debug udpclient rx: 25777 <- 'kai_client_metrics;us mid-east (secondary);not yet;68.231.32.72;1400;7.0.0.4;kaistation;mineiro;b r0;1;0;2;0;0;0;2;libpcap;n/a;0;0;0;0;'
    19-02-2005 12:45:49 debug freeing fs segment @ 0x80f650
    19-02-2005 12:45:49 notice start led control
    19-02-2005 12:46:00 info mplayer play:f:\movies\the.aviator.ts.pot.1of3.avi cachesize:256
    19-02-2005 12:46:00 debug initializing fs_seg..
    19-02-2005 12:46:00 debug fs segment @ 0x80aff0
    19-02-2005 12:46:01 info flipping bi-directional subtitles disabled
    19-02-2005 12:46:01 info stating file f:\movies\the.aviator.ts.pot.1of3.avi.conf
    19-02-2005 12:46:01 info stating file q:\mplayer\f:\movies\the.aviator.ts.pot.1of3.avi.c onf
    19-02-2005 12:46:01 warning emergency recovery console starting...
    19-02-2005 12:46:01 fatal xbmc fatal error:
    19-02-2005 12:46:01 fatal exception_access_violation (0xc0000005)
    19-02-2005 12:46:01 fatal at 0x003bfd70
    19-02-2005 12:46:01 fatal init network using dhcp...
    19-02-2005 12:46:01 error texture manager unable to load file: q:\skin\hifi\media\


  • we need the script you are using (both autoexec.py plus anything else it's using)







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Music on startup makes videos freeze , Please add it free.