Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKC gets stuck in a mode incompatible with TV #2066

Open
jecorn opened this issue Apr 19, 2024 · 3 comments
Open

PKC gets stuck in a mode incompatible with TV #2066

jecorn opened this issue Apr 19, 2024 · 3 comments

Comments

@jecorn
Copy link

jecorn commented Apr 19, 2024

Help yourself

  • Restarted Kodi
  • Checked FAQ
  • Reset PKC DB once, happened again (though much later)
  • Checked GitHub

Describe the bug

Twice out of 50+ plays I've had Kodi via PKC start to play a 1920x800 24 fps file and fail in a strange and somewhat hard way. I have refresh rate switching on and 1920x1080 / 24 Hz in the whitelist. Instead of playing, my TV shows an error message that the resolution/mode is unsupported. I then need to restart the computer, since it's seemingly stuck in a bad resolution. Alt+F4 or Ctrl-Alt-Del doesn't bring things back.

The strange thing is that trying to play the exact same file again after restart just works. So I'm having a hard time wrapping my head around what might be going wrong.

At first I thought this was just a Kodi thing. But it happened again last night, and I managed to grab a log. And the last line that makes me unsure if this is PKC or Kodi.

An excerpt is below. I accidentally restarted Kodi, so kodi.log.old with the error was overwritten. But I'll post a full log the next time it happens.

2024-04-18 23:01:18.825 T:5440     info <general>: PLEX.playback_decision: User chose playback method DirectPath in PKC settings
2024-04-18 23:01:18.830 T:5440     info <general>: PLEX.playback_decision: PKC decided on playback method DirectPlay
2024-04-18 23:01:18.830 T:5440     info <general>: PLEX.playback_decision: Lets ask the PMS next
2024-04-18 23:01:18.830 T:5440     info <general>: PLEX.playback_decision: Asking PMS with maximal quality settings
2024-04-18 23:01:18.855 T:5440     info <general>: PLEX.playback_decision: PMS general decision None: None
2024-04-18 23:01:18.855 T:5440     info <general>: PLEX.playback_decision: PMS Direct Play decision None: None
2024-04-18 23:01:18.855 T:5440     info <general>: PLEX.playback_decision: PMS MDE decision 1000: Direct play OK.
2024-04-18 23:01:18.855 T:5440     info <general>: PLEX.playback_decision: PMS transcoding decision None: None
2024-04-18 23:01:18.856 T:5440     info <general>: PLEX.playback_decision: The playurl for DirectPlay is: https://81-221-214-45.14db66cf92e544c598df6728d7294fa3.plex.direct:32400/library/parts/1821241/1712798878/?Accept=%2A%2F%2A&Content-Type=application%2Fx-www-form-urlencoded&Accept-Language=en&X-Plex-Device=Windows&X-Plex-Model=10&X-Plex-Device-Name=Kodi+gamebox&X-Plex-Platform=Generic&X-Plex-Platform-Version=1.0.0&X-Plex-Product=PlexKodiConnect&X-Plex-Version=3.9.0&X-Plex-Client-Identifier=6e78a58c-83ab-4282-babd-da5cdfcc2132&X-Plex-Provides=client%2Ccontroller%2Cplayer%2Cpubsub-player&X-Plex-Protocol=1.0&Cache-Control=no-cache&X-Plex-Token=XYZ
2024-04-18 23:01:18.864 T:5440     info <general>: PLEX.api: Found external subs: []
2024-04-18 23:01:18.868 T:9580  warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-04-18 23:01:18.868 T:9580  warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-04-18 23:01:18.868 T:9580     info <general>: Skipped 2 duplicate messages..
2024-04-18 23:01:18.868 T:9580     info <general>: PLEX.TVSHOWS: PKC add-on for tv shows stopped
2024-04-18 23:01:18.889 T:13744    info <general>: Skipped 1 duplicate messages..
2024-04-18 23:01:18.889 T:13744    info <general>: VideoPlayer::OpenFile: plugin://plugin.video.plexkodiconnect.tvshows/1796266/?mode=play&plex_id=1796269&plex_type=episode&filename=Fallout (2024) - S01E02 - The Target [WEBDL-1080p][EAC3 Atmos 5.1][h264]-FLUX.mkv
2024-04-18 23:01:18.900 T:8736     info <general>: Creating InputStream
2024-04-18 23:01:18.974 T:8736     info <general>: Creating Demuxer
2024-04-18 23:01:19.029 T:8736     info <general>: Opening stream: 0 source: 256
2024-04-18 23:01:19.029 T:8736     info <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 800, fps: 24.000, 3D: false
2024-04-18 23:01:19.031 T:8736     info <general>: Display resolution ADJUST : QBQ90 #1: 1920x1080 @ 24.00Hz (120) (weight: 0.000)
2024-04-18 23:01:19.040 T:13744   error <general>: CWinSystemWin32::ChangeResolution: Unable to retrieve registry settings for Windows 8+ workaround, using fallback
2024-04-18 23:02:08.990 T:15092   error <general>: PLEX.kodimonitor: Exception encountered while init streams:
2024-04-18 23:02:08.990 T:15092   error <general>: PLEX.kodimonitor: Kodi did not tell us the correct index for video

To Reproduce

Steps to reproduce the behavior:

  1. Go to a 1920x800 file (at least it happened 2x on such a file)
  2. Play
  3. 99 times out of 100 no problem
  4. Sometimes, display complain about a bad resolution and the whole compute rneeds to be reset

Expected behavior

Kodi switches resolution and refresh rate. File is played.

You need to attach a KODI LOG FILE!

Sorry, I restarted Kodi in the meantime, and kodi.log.old was overwritten. I'll post a full log the next time it happens.

@croneter
Copy link
Owner

Share the entire debug log please, see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

@jecorn
Copy link
Author

jecorn commented Apr 19, 2024

Share the entire debug log please, see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

Sorry, but the log file from the session when the error occurred was overwritten when I restarted kodi. I’ll send a full log the next time it happens.

@croneter
Copy link
Owner

This is mooooost likely something that has NOTHING to do with PKC. PKC only tells Kodi what to play, everything else is up to Kodi. If playback does not work out, it's a Kodi issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants