View Issue Details

IDProjectCategoryView StatusLast Update
0021472MMW 5Tagging / organizing (properties / auto-tools)public2025-02-20 16:12
Reporterlowlander Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status feedbackResolutionreopened 
Product Version5.0.4 
Target Version2024.1Fixed in Version2024.1 
Summary0021472: Auto-Organize of file with accents in filename has MediaMonkey lose access to file
DescriptionNot entirely sure what's happening, but using Organize-Files of a file with accent (in this case é) causes MediaMonkey to subsequently lose access to the file.

Path in MM seems to be the same as the Path the file is actually located at after MM does Organize Files..
Steps To Reproduce1 Scan in file.
2 Do some editing (Artist, Actor, Title, Date, Comment, Publisher) some manual, some with Tag from Filename
3 Use Organize Files on the file
--> Tag update failed Toast is shown
TagsNo tags attached.
Fixed in build3105

Relationships

related to 0021277 closedLudek Leading . (dot) in filename causing incorrect folder in Organize Files 

Activities

Ludek

2025-02-01 23:52

developer   ~0078115

I can't replicate and from the screenshot I don't see anything bad..

Please share the sample file and debug log..

Ludek

2025-02-02 20:47

developer   ~0078118

Last edited: 2025-02-02 21:15

From the log I see that the file has been organized at the same second with tagging, and during tagging the FileExists function returned false,
so I wonder: Was the file only temporarily inaccassible?

Ludek

2025-02-02 21:13

developer   ~0078119

Supposing that the file was inaccessible only temporarily (tagging called at the same time with organizing) I tweaked the code to prevent from this situation..

So please re-test in 3105

Ludek

2025-02-02 22:42

developer   ~0078123

Re-openeing: LowLander is saying that just adding the accent letter (in Properties > File Path) causes the file to be inaccessible permanently, added some new logs to analyze..

Ludek

2025-02-04 11:47

developer   ~0078135

Last edited: 2025-02-04 14:40

Test note: The key to repliciate is scan the original file with 2-chars version of é (65CC81) and then open Properties and replace the 2-chars version of é (65CC81) by one char version (C3A9)

.. and actually such a file is removed from library due to this SQL:
[13868] MM5 [19628](R) DB exec SQL: DELETE FROM Songs WHERE SongPath=':\Temp\logs\Quando - Michael Bubleé & Nelly Furtado | Karaoke Version | KaraFun.mp4' and IdMedia=5
....
[13868] MM5 [19628](R) DB lock took 0 ms : UPDATE Songs Set SongPath=':\Temp\logs\Quando - Michael Bubleé & Nelly Furtado | Karaoke Version | KaraFun.mp4', IdMedia=5 WHERE SongPath=':\Temp\logs\Quando - Michael Bublee´ & Nelly Furtado | Karaoke Version | KaraFun.mp4' and IdMedia=5

.. must be really long standing issue, good catch! Happens in 5.0.4 too

Ludek

2025-02-04 14:37

developer   ~0078137

Fixed in 3105

lowlander

2025-02-07 16:50

developer   ~0078214

Last edited: 2025-02-07 17:00

No toast was shown on Organize Files, but in-line editing and opening Properties both showed toast that file was inaccessible after Organize Files. Playback also failed.

File remained inaccessible after MM restart.

lowlander

2025-02-12 00:37

developer   ~0078248

It seems the key is that the files are being organize to an existing folder with a variation of the accent. Perhaps File Explorer doesn't see the difference, thus adds it in the existing folder, but MediaMonkey does see a difference, thus can't find the file?

Ludek

2025-02-14 19:38

developer   ~0078267

Last edited: 2025-02-17 22:53

I am unable to replicate after the fix in 3105... accents are stored correctly also in DB...
In your log I see that you are using auto-scanner, so maybe that's the key..

Could you please isolate some exact and consistent steps with screencast video and share the files?
The log is useless in this case as I can't see the character variants :-/

And could you please test whether auto-scanner plays a role and if not then disable it to rule it out?

Tested also with my NAS (Synology) and I am unable to replicate after the fix in 3105..
But in your debug log I see 'Michael Bubl ' while in my it is either 'Michael Bublé' or 'Michael Buble´'

Isolating some consistent steps to reproduce (with empty DB) and attaching the music file , MM5.DB, screenscast and text file with the accents would be really useful here..

lowlander

2025-02-18 23:07

developer   ~0078297

It seems to require to use a NAS to reproduce. So far I've not been able to reproduce with files on internal drive.

It seems Windows handles this weird é differently. The test folder/file copied from internal to NAS also showed no problem, but copying the folder name from the original NAS did reproduce the issue on the new NAS.

lowlander

2025-02-19 16:27

developer   ~0078302

Another screencast/log added. txt was already provided. DB from after this screencast added. All Auto-Scanning was disabled for this test (it's not a factor).

Ludek

2025-02-20 12:47

developer   ~0078311

OK,
I tried the exactly same steps as on your last screencast video, created the folder and then auto-organized to that folder,
but it created duplicate folder (with different accent) on my Synology NAS and the file was playable without issue, so I would probably need to use your kind of NAS to replicate..

BTW: If you create the folder with different accent manually (as in step 1), it does not create duplicate folder for you ?
image-6.png (19,593 bytes)   
image-6.png (19,593 bytes)   

rusty

2025-02-20 16:12

administrator   ~0078312

Based on conversation with LL:
- The issue occurs only with tracks stored to a NAS (i.e. it's related to differences in file storage on Linux vs Windows)
- The issue likely isn't a regression
- There's a known workaround of manually editing the folder name to the correct character
Considering the above, we may want to consider pushing if we're unable to determine a simple/consistent set of repro steps.

LL's hypothesis of when this occurs is that:
" somewhere I had some files Organized by MM with a variant of the é character (Ludek already indicated we're dealing with 2 variants). This created a Michael Bublé folder with an alternative é character. So now when I Organize files with the normal é version they end up in that alternative version of Michael Bublé. MM thus can't find the file as it's looking for the specific é variant.

So the 'bug' is either:
MM doesn't organize to the correct variant of é (however Windows and/or Linux may be the cause of this).
MM reads specific variant when it shouldn't (as OS doesn't see diference (like capitalization in Windows)."