nova-video-player / aos-AVP

NOVA opeN sOurce Video plAyer: main repository to build them all
Apache License 2.0
3.54k stars 202 forks source link

[Bug]: Entire library lost after playback, rescrapes automatically #824

Open HDGuy opened 1 year ago

HDGuy commented 1 year ago

Problem description

This one is a major issue, been happening on my Nvidia Shield 2019 Pro with the last two versions or so- almost every time I play back a video my entire (rather sizable) library of scraped titles disappears (using SMB off a NAS) and Nova starts rescraping automatically again. I’m not sure if this happens only when I’m using an external player (JustPlayer or Vimu) or it happens when I’m using the internal player.

I deleted Nova and reinstalled but it is still happening.

At this point I would use another player but there really isn’t any other options on the Shield that scrapes titles with Trakt integration that doesn’t stutter (Kodi).

Hopefully this gets resolved soon as it’s a rather annoying bug.

FYI: I fixed my Trakt login problem- AdGuard was autostarting and was blocking login.

Steps to reproduce the issue

Playback (external player?)

Expected behavior

Lost scrapped library info

Your phone/tablet/androidTV model

Nvidia Shield Pro 2019

Operating system version

11

Application version and app store

6.0.95

Additional system information

No response

Debug logs

No response

courville commented 1 year ago

@HDGuy unfortunately this does not happen to me on my nvidia shield 2019 with synology SMB NAS (and other devices). It should not be related but does your NAS change IP? It could also be linked to nova media library being corrupted somehow but I never saw it happen (yet). I would probably need adb logcat on this one to figure out what is happening. Good to know about your trakt issue.

HDGuy commented 1 year ago

Next time it happens I will upload logcat.

I’m using UnRaid but my NAS has a static address so that shouldn’t me the issue.

Separate issue which I’m still having with a OpenMediaVailt NAS which Nova sees but doesn’t show any drives as being available. Everything else works with it.

Also, if I mount a NAS directly to my Shield from the Storage settings menu, when I access the drives from Nova it shows them all as being empty.

courville commented 1 year ago

Thx for the answers. I will wait for your logcat and other user reports too.

Concerning the other points, we are mixing discussion of several issues which is not a good practice on github. Nevertheless:

courville commented 1 year ago

What would be interesting is to get is the android media id of your collection before and after a whole rescan is triggered. I.e. you could save now the result of: adb shell content query --uri "content://media/external/video/media" --projection _id:_data and do it after you get this annoying rescan as well and compare _id (or alternatively send both files to me).

What I am trying to figure out is if this is not android that does a change of _id (for some reasons to be determined) causing nova rightfully to trigger a global rescan.

HDGuy commented 1 year ago

What would be interesting is to get is the android media id of your collection before and after a whole rescan is triggered. I.e. you could save now the result of: adb shell content query --uri "content://media/external/video/media" --projection _id:_data and do it after you get this annoying rescan as well and compare _id (or alternatively send both files to me).

What I am trying to figure out is if this is not android that does a change of _id (for some reasons to be wdetermined) causing nova rightfully to trigger a global rescan.

How do I collect the info you need? Do I need to SSH into the Shield? I haven’t tried to do that before.

courville commented 1 year ago

In order to do adb you need to follow https://github.com/nova-video-player/aos-AVP/wiki/Debugging i.e. enable adb debugging through dev settings and then connect through adb networking with the IP of your shield. Afterwards all commands can be done through your PC when you have all the adb tools installed.

Wickedmoose306 commented 1 year ago

This just happened to me now on my Sony Google tv. I had to do a reinstall after it stopped scraping new videos. That solved that issue, but now today when I started it up, I could see all of my movies for a second and then they disappeared and a new scan started. Also a pretty sizeable collection on a local storage USB HDD.

courville commented 1 year ago

@Wickedmoose306, I believe this issue is a different one since it relies on SMB shares (at least I have the exact same configuration of @HDGuy) and not an USB HDD and the indexing process on nova is different between local storage and network shares.

courville commented 1 year ago

Could be linked to https://github.com/nova-video-player/aos-AVP/issues/844

Pentaphon commented 1 year ago

Could be linked to #844

I think so too. @HDGuy are you still experiencing this with the latest release?