Page 1 of 1

[Solved] UMS 14.10.1 Issue with scan of the folders

Posted: Thu Feb 20, 2025 10:11 am
by Capiray
Hi,

I Have notice that the scan of the files don't complete itself. Seem to freeze the process.This only started with this version of the UMS, as It is working fine with version 14.10.0.

2025-02-19 16-35-24.png
2025-02-19 16-35-24.png (57.86 KiB) Viewed 6138 times

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Thu Feb 20, 2025 2:42 pm
by mik_s
There are a few warnings that have started to appear in the logs for people recently but are not important to UMS functioning so they can probably be ignored. This was mentioned on Github recently.

The only other error is a scanning a file with "CC1" subtitles

Code: Select all

TRACE 2025-02-19 16:32:00.696 [Media Scanner] net.pms.store.MediaInfoStore Store does not yet contain MediaInfo for I:\Séries\Magnum P I\Saison 5\Magnum P I 2018 S05E01 WEBRip x264-ION10.mp4
ERROR 2025-02-19 16:32:00.871 [Media Scanner] net.pms.store.MediaScanner Unhandled exception during media scan: For input string: "CC1"
TRACE 2025-02-19 16:32:00.872 [Media Scanner] net.pms.store.MediaScanner 
java.lang.NumberFormatException: For input string: "CC1"
	at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.base/java.lang.Long.parseLong(Unknown Source)
	at java.base/java.lang.Long.valueOf(Unknown Source)
	at net.pms.parsers.MediaInfoParser.getSpecificID(MediaInfoParser.java:1090)
	at net.pms.parsers.MediaInfoParser.parse(MediaInfoParser.java:505)
	at net.pms.parsers.Parser.parse(Parser.java:79)
	at net.pms.store.MediaInfoStore.getMediaInfo(MediaInfoStore.java:152)
	at net.pms.store.item.RealFile.resolve(RealFile.java:254)
	at net.pms.store.StoreContainer.addChild(StoreContainer.java:122)
	at net.pms.store.container.VirtualFolder.manageFile(VirtualFolder.java:115)
	at net.pms.store.container.VirtualFolder.analyzeChildren(VirtualFolder.java:198)
	at net.pms.store.container.VirtualFolder.discoverChildren(VirtualFolder.java:323)
	at net.pms.store.MediaScanner.scan(MediaScanner.java:141)
	at net.pms.store.MediaScanner.scan(MediaScanner.java:147)
	at net.pms.store.MediaScanner.scan(MediaScanner.java:147)
	at net.pms.store.MediaScanner.startScan(MediaScanner.java:98)
	at net.pms.store.MediaScanner.lambda$startMediaScan$0(MediaScanner.java:198)
	at java.base/java.lang.Thread.run(Unknown Source)
I have seen this several times but as that format of sub is uncommon it would help if the devs had this file to test with and fix this error.
Any chance you could upload it somewhere so we can get a copy? You can use something like google drive or mega.nz and send the link but probably better to send in a PM.

Besides that there is nothing else wrong in your logs so should be working fine (not counting that 1 video) and scanning is finishing I think unless this has stopped it.

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Fri Feb 21, 2025 5:08 am
by Capiray
@mik_s

I have send to you personally the Mega link. Tks!

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Fri Feb 21, 2025 7:10 am
by mik_s
Thanks I got it.

I'll do some testing with this later when I get time to confirm this and if somehow it stops media scanning.
If it does I'll send the link to the devs so they can trace the bug.

In the meantime if you think scanning is not completing then move this video to another folder that is not shared and the scanning should finish.

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Fri Feb 21, 2025 5:23 pm
by mik_s
I think this is a much more serious issue than I thought.
I assumed this file was just ignored and the scanning would continue but when I had that video in my shared folder it would appear empty. Removing it restored the contents.
Scanning appears to stop too once it reaches this video so anything else won't be scanned.

I have mentioned this on Github so hopefully it will be a priority to fix.

For now just move that to another folder that is not shared and restart UMS and it should complete scanning.
It might be possible that you have multiple videos with this so keep an eye on the logs for errors and move any videos that show up.

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Wed Feb 26, 2025 6:22 am
by mik_s
This has just been fixed and is waiting for code review before being merged. It should be in the next release.
Subjunk may be able to do a test build for you to try.

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Wed Feb 26, 2025 10:09 am
by SubJunk
I can make the test build for you if you want, please let me know if you are willing to try it :)

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Wed Feb 26, 2025 11:24 am
by Capiray
Hey, Sure! Send it to me!

Let keep moving on!

Love your Application! This change the way we watch (T.V.) Today! At my Age... at 60 year old :D

Also thanks to mik_s to lesson to us, even if we have some problem to explain the issues that we have. :lol:

Regards,

Capiray

Re: UMS 14.10.1 Issue with scan of the folders

Posted: Thu Feb 27, 2025 7:48 am
by Capiray
Hi,

The fix work, the scan when until the end.

Please see attach log if need be for reviewing.

Regard,

Capiray.

Re: [Solved] UMS 14.10.1 Issue with scan of the folders

Posted: Thu Feb 27, 2025 7:18 pm
by SubJunk
Thanks for your kind words and testing, I'm glad we could fix it! That fix will be in the next release