skin.arctic.horizon.2 icon indicating copy to clipboard operation
skin.arctic.horizon.2 copied to clipboard

[BUG] Kodi Crashes on EPG fast-scrolling

Open krzysztofwinnik opened this issue 2 years ago • 12 comments

Skin section

Other

Current Behavior

This bug happens for a longer time - probably since the very beginning. If I open EPG view and long press up or down to scroll through the list sooner or later kodi will crash (it takes 5 to 30 seconds usually).

Expected Behavior

fast-scrolling in EPG shouldn't crash Kodi

Steps To Reproduce

  1. go to EPG
  2. long-press up and down and hold it
  3. see epg list scrolling
  4. wait for a crash - it should happen sooner or later

Screenshots and Additional Info

  • I tested this strange behaviour on Linux / CoreElec and MacOs.
  • I tested this with and withoud video playback in the background
  • I testen this with various EPG views
  • my PVR channel list has 198 channels
  • this doesn't happen in Estuary

I will attach crashlog later today with active window component diagnostic info.

Checklist

  • [X] I have searched the issues and this bug has not been reported.
  • [X] I am using the most recent skin version.
  • [X] I have confirmed that this bug does not occur in the default skin.

krzysztofwinnik avatar Jul 30 '22 08:07 krzysztofwinnik

Please find 2 log files attached. @jurialmunkey - any idea what causes that crash? kodi_crashlog_20220730152334.log

kodi.old.log

krzysztofwinnik avatar Jul 30 '22 13:07 krzysztofwinnik

Today I've done some more tests on kodi Matrix and Nexus on MacOS with Estuary and AH2 skins. It turnes out it must be a skin specific bug, as it only happens on AH2 out of those two skins and Kodi version is not an issue.

Each time this bug occurs kodi log ends with the following two lines:

ERROR : GetItem: EPG tag (XXX,YYY) not found! ERROR : GetGridItemPtr: Got no EPG tag (XXX, YYY) where XXX and YYY are different numbers each time this bug occures.

krzysztofwinnik avatar Aug 02 '22 15:08 krzysztofwinnik

Hi @jurialmunkey, I'sure you are superbusy and this issue is not on your priority list, but could you just confirm this is something you will look into? Or does this look more like a skin engine bug, which I should report to Kodi devs? Thank you

krzysztofwinnik avatar Aug 03 '22 10:08 krzysztofwinnik

I'm not sure what that cause would be. I couldn't reproduce it myself

jurialmunkey avatar Aug 03 '22 12:08 jurialmunkey

I was afraid you would say so... Fortunatelly the bug is not critical. Many thanks anyway.

Oo, could we have this issue left open just in case anyone else reported a simmilar problem... or maybe even a solution?

krzysztofwinnik avatar Aug 03 '22 16:08 krzysztofwinnik

i have the issue on my celeron laptop and when i move my mouse anytime while playing a video or a iptv stream kodi CRASHES. Neither happen on estuary.

MattTheTekie avatar Aug 11 '22 12:08 MattTheTekie

Well, it certainly isn't a Celeron issue - my mac has intel i5 and tvbox has amlogic s922x. There must be some other explanation than processor architecture.

krzysztofwinnik avatar Aug 11 '22 14:08 krzysztofwinnik

Well, it certainly isn't a Celeron issue - my mac has intel i5 and tvbox has amlogic s922x. There must be some other explanation than processor architecture.

@krzysztofwinnik - I did find an issue on xbmc github where this comment https://github.com/xbmc/xbmc/issues/21609#issuecomment-1167650872 mentions the same error message as you had. Possibly related.

Also, bit of a long shot but could you try v0.3.16 and see if that helps at all. I changed a couple of things to reduce the reliance on the fake button which sets the contextmenu details -- it is very much a stab in the dark but possibly that button being repeatedly triggered when fast scrolling is causing a crash.

Even if it doesn't fix it, it was still a worthwhile change to make because the old method was a bit of a hack anyway. I still need to use it for widgets but I've manage to remove the need for it in media windows like PVR and Library.

jurialmunkey avatar Aug 11 '22 15:08 jurialmunkey

Many thanks @jurialmunkey for your research and recent contextmenu cleanup. Unfortunatelly v0.3.16 (and latest as well) didn't make any change for me in terms of the epg bug. I've read the discussion you found on xbmc github, but they didn't came to any breakthrough or conclusion. However, they shed some light on the meaning of the bug in kodi log ("ERROR : GetItem: EPG tag (XXX,YYY) not found! ERROR : GetGridItemPtr: Got no EPG tag (XXX, YYY)"). Apparently it means that EPG data is somehow corrupted for channel XXX. Except for the fact that same EPG data works just fine with estuary skin for me. They also suggested Kodi Nexus might help. So I tried nexus alpha - with no success, sadly. It seems the root cause for the bug remains unknown.

krzysztofwinnik avatar Aug 12 '22 09:08 krzysztofwinnik

this bug doesnt happen on the estuary skin for me.

MattTheTekie avatar Aug 12 '22 17:08 MattTheTekie

FYI: This might be related to an issue I posted (with fix on it's way into code) at:

https://github.com/jurialmunkey/plugin.video.themoviedb.helper/pull/884

kcook98765 avatar Sep 30 '22 03:09 kcook98765

FYI: This might be related to an issue I posted (with fix on it's way into code) at:

jurialmunkey/plugin.video.themoviedb.helper#884

@kcook98765 - Unlikely to be that specifically since that particular line of code didn't even exist when this bug was reported -- but does make me think maybe there is something similar with an unmatched parenthesis or bracket hiding somewhere in the skin code.

jurialmunkey avatar Sep 30 '22 03:09 jurialmunkey