Kodi Community Forum

Full Version: Frequent Crashes When Starting New File In Playlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been using nightlies because it offers me 64bit HEVC decoding on Windows.  This issue started about two weeks ago, it's also present in Alpha 1.  Mainly Kodi just crashes about 2-5 items into any playlist when starting the new file.  I'm pretty sure it's on playback of the NEW file since the file that finishes is safely marked 'watched' and all that before Kodi crashes.  It's quite the pain though if Kodi can't play a few items without crashing.

https://paste.ubuntu.com/p/WRJDZyP9Kb/

Full log here don't worry, no banned addons, everything is played off SMB. Tongue  But I'm not sure how useful the log will be, looking at it, nothing seems to go wrong, it just seems to end.
Quote:14:43:53.197 T:6016   DEBUG: CGUIInfoManager::SetCurrentMovie(smb://FLUTTERSHY/Media/Anime Series/Beck Mongolian Chop Squad/Beck Mongolian Chop Squad 1x01 [1080p][Remux][Dual].mkv)
14:43:53.204 T:4028   DEBUG: Twitch: Player: |onPlayBackEnded| isTwitch |False|
14:43:53.213 T:8964   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
14:43:53.213 T:8964   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
14:43:53.215 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers(smb://FLUTTERSHY/Media/Anime Series/Citrus/citrus 1x07 love or lie! [1080p HDTV][Golumpa].mkv)
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
14:43:53.215 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
14:43:53.216 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
14:43:53.216 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
14:43:53.216 T:1284   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
14:43:53.216 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
14:43:53.216 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
14:43:53.216 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
14:43:53.216 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
14:43:53.216 T:1284   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
14:43:53.216 T:1284  NOTICE: VideoPlayer::OpenFile: smb://FLUTTERSHY/Media/Anime Series/Citrus/citrus 1x07 love or lie! [1080p HDTV][Golumpa].mkv
14:43:53.216 T:1284   DEBUG: CApplication::OnPlayBackStarted: CApplication::OnPlayBackStarted
14:43:53.216 T:9508   DEBUG: Thread VideoPlayer start, auto delete: false
14:43:53.217 T:9508  NOTICE: Creating InputStream
14:43:53.218 T:7928   DEBUG: Thread JobWorker start, auto delete: true
14:43:53.219 T:7928   DEBUG: CGUIInfoManager::SetCurrentMovie(smb://FLUTTERSHY/Media/Anime Series/Citrus/citrus 1x07 love or lie! [1080p HDTV][Golumpa].mkv)
14:43:53.224 T:3768   DEBUG: Loading settings for smb://FLUTTERSHY/Media/Anime Series/Citrus/citrus 1x07 love or lie! [1080p HDTV][Golumpa].mkv
14:43:53.233 T:8964   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
14:43:53.233 T:8964   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
14:43:53.234 T:8964   DEBUG: CAnnouncementManager - Announcement: OnChanged from xbmc
14:43:53.234 T:8964   DEBUG: GOT ANNOUNCEMENT, type: 1024, from xbmc, message OnChanged
14:43:53.284 T:5184   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
14:43:53.316 T:4028   DEBUG: Twitch: Player: |onPlayBackStarted| isTwitch |False| SeekTime ||
 
Thanks for your report!!

There's a known issue that kodi crashes if the playback of a video ends which could be related to your problem. The devs are working on it.
(2018-03-11, 00:23)DaVu Wrote: [ -> ]Thanks for your report!!

There's a known issue that kodi crashes if the playback of a video ends which could be related to your problem. The devs are working on it.
 So this is caused by the conclusion if the file, not the start of the new file?  That would explain why when I tried to skip through a playlist after only watching a few seconds of each item, I couldn't replicate a crash.
This is actually the same issue I've been experiencing and reported in Ticket #17795.
The cause is a memory access to an area that was already freed.

The file definitely has to have been playing for a while to cause a crash... I couldn't replicate it through skipping towards the end either.
A Playlist, however, is not necessary, it just seems to increase the likelihood of it happening - merely watching a single file can crash Kodi as well.
(2018-03-11, 00:23)DaVu Wrote: [ -> ]Thanks for your report!!

There's a known issue that kodi crashes if the playback of a video ends which could be related to your problem. The devs are working on it.
 So how can I follow the progress on this?  I'd like to support development by reporting bugs on the alpha/beta stages, but with Kodi effectively in an 'unusable state' due to this bug, I've reverted to an older nightly which I might as well stay on until Kodi reach the end of a file without crashing.
@DJ_Izumi Can you tell us what version you are using that is not suffering from this issue?
(2018-03-19, 12:50)ginkgobitter Wrote: [ -> ]@DJ_Izumi Can you tell us what version you are using that is not suffering from this issue?
 I can say for this, this Windows x64 Nightly build -does- work without that issue.  Obviously I can't tell for sure what else DOESN'T work, it is a nightly and we're using them at our own risk.  I also don't know which versions later than this are fine.  But I'm going to sit on this nightly until someone else says that Kodi can again play more than a handfull of files without crashing.


Image
It appears that this problem was fixed - KodiSetup-20180318-277d75c1-master-x86.exe has been working stable for half the day already.
I'd assume the same would be true for the x64 build.