kodi-pvr / pvr.hts

Kodi's Tvheadend HTSP client addon
GNU General Public License v2.0
136 stars 93 forks source link

pvr hts crashes kodi on pi when switching channel #199

Closed taiebot closed 8 years ago

taiebot commented 8 years ago

Hi

i am experiencing regular crashes when using the addon pvr.hts on kodi when switching channel. Few people have reported the same error on the kodi forum http://forum.kodi.tv/showthread.php?tid=246345 I have also reported a thread in here with more info http://forum.kodi.tv/showthread.php?tid=259062&pid=2238185#pid2238185

i think the pvrhts addons tries to restart while it still running and causes kodi to crash

20:27:43 16136.622070 T:1483613168 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 24 20:27:43 16136.720703 T:1483613168 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24 20:42:05 16998.644531 T:1429197808 NOTICE: Previous line repeats 6 times. 20:42:05 16998.644531 T:1429197808 NOTICE: PVRManager - PerformChannelSwitch - switched to channel 'ITV' 20:42:05 16998.644531 T:1429197808 NOTICE: Creating Demuxer 20:42:06 16999.583984 T:1759941616 ERROR: PVRManager - Process - an error occured while trying to execute the last update job, trying to recover 20:42:06 16999.583984 T:1759941616 NOTICE: PVRManager - Process - no add-ons enabled anymore. restarting the pvrmanager 20:42:06 16999.656250 T:1492001776 NOTICE: PVRManager - stopping 20:42:07 17000.958984 T:1429197808 NOTICE: Closing stream player 2 20:42:07 17000.958984 T:1429197808 NOTICE: waiting for video thread to exit 20:42:07 17000.958984 T:1501443056 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true 20:42:07 17000.958984 T:1501443056 NOTICE: thread end: video_thread 20:42:07 17000.958984 T:1429197808 NOTICE: deleting video codec 20:42:07 17000.970703 T:1429197808 NOTICE: Closing stream player 1 20:42:07 17000.982422 T:1429197808 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty 20:42:07 17000.982422 T:1429197808 NOTICE: Waiting for audio thread to exit 20:42:07 17000.982422 T:1483613168 NOTICE: thread end: CDVDPlayerAudio::OnExit() 20:42:07 17000.982422 T:1429197808 NOTICE: Closing audio device 20:42:07 17001.062500 T:1429197808 NOTICE: Deleting audio codec 20:42:07 17001.064453 T:1429197808 ERROR: Get - failed to get stream 20:42:07 17001.064453 T:1429197808 NOTICE: Closing stream player 3

I have also capture a crash with the full kodi debug which happened @ 12:47:39 it is located in here http://paste.osmc.io/fihahetide.

If you need anything else let me know

taiebot commented 8 years ago

Hi I have re-captured a crash in here with the log Pvr.hts enabled the crash happens at 23:15:20 http://paste.osmc.io/inesodocib

the error is here ar 03 23:15:20 osmc tvheadend[7718]: htsp: 127.0.0.1 [ | Kodi Media Center ]: Write error -- Broken pipe Mar 03 23:15:20 osmc sudo[8629]: pam_unix(sudo:session): session closed for user osmc Mar 03 23:15:20 osmc mediacenter[7895]: Kodi exited with return code 139 after 1 hours, 23 minutes and 33 seconds

I only change channel at 23:15:19

23:15:19 89975.148438 T:1855415280 DEBUG: PushCecKeypress - received key d2 duration 230 (rep:0 size:0) 23:15:19 89975.187500 T:1855415280 DEBUG: PushCecKeypress - ignored key d2 23:15:19 89975.226562 T:1477440496 NOTICE: PVRManager - PerformChannelSwitch - switched to channel 'Ideal World' 23:15:19 89975.226562 T:1741681648 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc 23:15:19 89975.226562 T:1741681648 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop 23:15:19 89975.226562 T:1477440496 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All channels/pvr.hts_1916743438.pvr) 23:15:19 89975.226562 T:1741681648 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Announce(flag=Player, sender=xbmc, message=OnStop) 23:15:19 89975.226562 T:1477440496 NOTICE: Creating Demuxer 23:15:19 89975.226562 T:1477440496 DEBUG: CDVDPlayer::SetCaching - caching state 2 23:15:19 89975.242188 T:1957732912 DEBUG: ------ Window Init (DialogSeekBar.xml) ------ 23:15:19 89975.312500 T:1741681648 ERROR: PVRManager - Process - an error occured while trying to execute the last update job, trying to recover 23:15:19 89975.312500 T:1741681648 NOTICE: PVRManager - Process - no add-ons enabled anymore. restarting the pvrmanager 23:15:19 89975.312500 T:1741681648 DEBUG: Thread PVRManager 1741681648 terminating 23:15:19 89975.343750 T:1563423728 DEBUG: Thread EPGUpdater 1563423728 terminating 23:15:19 89975.343750 T:1469051888 NOTICE: PVRManager - stopping 23:15:19 89975.343750 T:1571812336 DEBUG: Thread PVRGUIInfo 1571812336 terminating 23:15:19 89975.343750 T:1733293040 DEBUG: Thread PVRClient 1733293040 terminating 23:15:19 89975.343750 T:1469051888 DEBUG: PVR - Destroy - destroying PVR add-on 'HTS Tvheadend:127.0.0.1:9982 [connected]' 23:15:19 89975.632812 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - receive message [timeshiftStatus] 23:15:19 89975.632812 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - timeshiftStatus: 23:15:19 89975.632812 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - full : 0 23:15:19 89975.632812 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - shift : 0 23:15:19 89975.703125 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - receive message [subscriptionStatus] 23:15:20 89976.226562 T:1477440496 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux read nothing 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - receive message [subscriptionStart] 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux subscription start 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - id: 1, type MPEG2VIDEO, codec: 2 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux subscription start 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - id: 2, type MPEG2AUDIO, codec: 86016 23:15:20 89976.500000 T:1714418672 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux stream change

Jalle19 commented 8 years ago

I have a feeling this is an issue in Kodi itself, not in this addon (since Kodi doesn't seem to crash, it just fails on some "update job" in the PVR manager and thus terminates the addon cleanly).

Jalle19 commented 8 years ago

I'm gonna go ahead and close this since it's almost certainly a bug in the video player and not this addon, otherwise it wouldn't be limited to Raspberry Pis.