Kodi Community Forum

Full Version: PVR manager error crashes kodi when switching channel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

After some use like 4hours Kodi crashes when i switch channel. It is quite hard to reproduce but it has happened consistently throughout the different version of kodi. I am using jarvis rc2 and i still experience this crash. I previously reported a bug here about this 245683 (thread)

I have uploaded the logs here http://paste.osmc.io/cihifepuze


i think this is what 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


and the crash is in here

Feb 06 20:42:04 osmc tvheadend[876]: subscription: 0050: "127.0.0.1 [ | Kodi Media Center ]" unsubscribing from "BBC TWO", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center"
Feb 06 20:42:04 osmc tvheadend[876]: mpegts: 642MHz in Uk - tuning on Panasonic MN88473 : DVB-T #1
Feb 06 20:42:04 osmc tvheadend[876]: subscription: 0051: "127.0.0.1 [ | Kodi Media Center ]" subscribing on channel "ITV", weight: 150, adapter: "Panasonic MN88473 : DVB-T #1", network: "Uk", mux: "642MHz", service: "ITV", profile="htsp", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center"
Feb 06 20:42:07 osmc tvheadend[876]: parser: The timediff for DVBSUB is big (216585), using audio dts
Feb 06 20:42:07 osmc tvheadend[876]: htsp: 127.0.0.1 [ | Kodi Media Center ]: Disconnected
Feb 06 20:42:07 osmc tvheadend[876]: subscription: 0051: "127.0.0.1 [ | Kodi Media Center ]" unsubscribing from "ITV", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center"
Feb 06 20:42:07 osmc tvheadend[876]: htsp: 127.0.0.1 [ | Kodi Media Center ]: Write error -- Broken pipe
Feb 06 20:42:08 osmc sudo[1264]: pam_unix(sudoConfusedession): session closed for user osmc
Feb 06 20:42:08 osmc mediacenter[1254]: Kodi exited with return code 139 after 4 hours, 25 minutes and 23 seconds
Feb 06 20:42:08 osmc kernel: Console: switching to colour frame buffer device 170x48
Feb 06 20:42:20 osmc mediacenter[1254]: Starting Kodi...
Wonder if it is related to 2235484 (post)

This seems to have been fixed in Krypton
You'll need to enable debug logging, then upload a new log.
Ok find attached the new log http://paste.osmc.io/fihahetide
The crash happens @ 12:47:39 on the old log which stops @12:47:38 there is nothing too suspicious
apart from

12:47:38 74932.375000 T:1448072176 NOTICE: PVRManager - PerformChannelSwitch - switched to channel 'BBC TWO'
12:47:38 74932.375000 T:1750070256 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
12:47:38 74932.375000 T:1750070256 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
12:47:38 74932.375000 T:1750070256 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Announce(flag=Player, sender=xbmc, message=OnStop)
12:47:38 74932.375000 T:1448072176 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All channels/pvr.hts_574029776.pvr)
Ok i have further tested and i think it comes from the MMAL accelaration on the pi. When i disable it and use omxplayer i do not experience the crash.
You should file a ticker on trac.kodi.tv and CC popcornmix
Thanks negge do not remember my password so i have not been able to report the error

I wonder if it is still not related to hts pvr because I am still experiencing the problem but far less with OMXplayer enable.

The four lines in here are pretty weird

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

Pvr manager seems to think it has crashed and tries to restart and crash Kodi could it be linked to 9190 (PR)
You should turn on debug logging, it could highlight the issue. Your trac password is the same as your forum password by the way.
I'm having the exact same issue, on OSMC Kodi 16 Final, Rpi2, and Vu+/Enigma PVR addon.
On Kodi 15, everything was working great.

Here's my debug log: http://paste.osmc.io/ifiduwilep.vhdl

Thanks in advance.
I might have solved my problem i have not had a crash in 5 days which has never happened before.
I have enabled on the pi to max the usb current.
It could be power related but with this setting by giving more juice to the dongles it did not crash yet.
(2016-03-10, 23:55)taiebot Wrote: [ -> ]I might have solved my problem i have not had a crash in 5 days which has never happened before.
I have enabled on the pi to max the usb current.
It could be power related but with this setting by giving more juice to the dongles it did not crash yet.

The crashes I experience occures on both my Raspberry Pi's, one is the original one, the other is ver. 2, the later is ethernet connected, with no USB's except a simple IR receiver for the remote.
This only happens on Kodi 16, on Kodi 15 no crashes occures.