croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.18k stars 78 forks source link

Saving settings or manually updating library results in hanging #2078

Open Mibix opened 6 months ago

Mibix commented 6 months ago

Help yourself

Yes I did try to restart Kodi :-) Yes I checked the PKC Frequently Asked Questions on the PKC wiki Yes I did try to reset the Kodi database by going to PKC Settings -> Advanced -> "Reset the database and optionally reset PlexKodiConnect" and then hitting YES, NO Yes I did check the existing issues on Github

Describe the bug

For a while now whenever I go in to the PKC settings and hit manual refresh or change any of the settings in there it just spins forever till I restart Kodi. I usually need to do manual refreshes quite often because of standby and constant version updates for shows. I saw in the logs some things about an old database but I have wiped everything and reinstalled since Omega became official and am still having the same problems.

To Reproduce

Steps to reproduce the behavior:

  1. go in to PKC settings. Change any setting and hit ok or hit manual update.

Expected behavior

Saves the settings or finish the scan then stops spinning

You need to attach a KODI LOG FILE!

kodi.log

Mibix commented 4 months ago

Did you ever take a look at this? When I do the manual sync now it shows:

2024-06-24 21:23:37.279 T:24916   error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexkodiconnect/?mode=manualsync
2024-06-24 21:23:37.281 T:29924   error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexkodiconnect/?mode=manualsync) failed
2024-06-24 21:23:37.721 T:38244   error <general>: C:\Users\Mibix\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect\resources\lib\watchdog\observers\__init__.py:87: UserWarning: Failed to import read_directory_changes. Fall back to polling.
                                                     warnings.warn("Failed to import read_directory_changes. Fall back to polling.")
croneter commented 4 months ago

I haven't found anything suspicious in your log file, unfortunately. I don't think what you just posted is the cause of your experience.

Could you try and capture another debug log file? Enable debug logging, restart Kodi. WAIT FOR 5 MIN. Then enter the PKC settings, hit "manual update". Wait again for a minute doing nothing, then exit Kodi and grab the log.

thanks!

Mibix commented 4 months ago

I haven't found anything suspicious in your log file, unfortunately. I don't think what you just posted is the cause of your experience.

Could you try and capture another debug log file? Enable debug logging, restart Kodi. WAIT FOR 5 MIN. Then enter the PKC settings, hit "manual update". Wait again for a minute doing nothing, then exit Kodi and grab the log.

thanks!

Here is a new one where I waited a while and did the manual update with debugging enabled from my Nvidia Shield 2019: kodi.log

I also did a fresh install on my laptop with only PKC installed and am having the same issue but the error is a little different in the logs: kodi.log