Spurious "cannot delete, access is denied message" during track removal

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Modérateur : Gurus

mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

Running latest test build 2275 in portable mode (was also noticed in 2273), MM5 appears to generate spurious "cannot delete [dir\filename] " Access is denied" The file may be in use or you may not have access rights message when right clicking and removing track from playlist. However this is bogus, the track has already been successfully removed and clicking OK to the message clears the error.

How to reproduce:
Pick a playlist (for example, files to edit, Duplicate titles)
Right click on a duplicate track, select remove
Select delete all copies and remove from the database
Error will then appear even though track has already been successfully deleted, click ok to clear bogus error
mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Re: Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

Additional info: I discovered this doesn't always occur, some testing seems to suggest:
I think this might only occur if there are two tracks with very similar filenames, for example Dir1/music track.mp3 and Dir1/music track (2).mp3
drakinite
Messages : 988
Inscription : mar. mai 12, 2020 10:06 am

Re: Spurious "cannot delete, access is denied message" during track removal

Message par drakinite »

I can't replicate on 2275. Tried a few times with different tracks. Is this consistently replicable for you with certain tracks/names/directories?
Image
Data scientist, web programmer, part-time MediaMonkey developer, full-time MediaMonkey enthusiast
I uploaded many addons to MM's addon page, but not all of those were created by me. "By drakinite, Submitted by drakinite" means I made it on my own time. "By Ventis Media, Inc., Submitted by drakinite" means it may have been made by me or another MediaMonkey developer, so instead of crediting/thanking me, please thank the team. You can still ask me for support on any of our addons.
Ludek
Messages : 5103
Inscription : ven. mars 09, 2007 9:00 am

Re: Spurious "cannot delete, access is denied message" during track removal

Message par Ludek »

I also cannot replicate, but I see that you wrote " delete all copies and remove from the database"
Such a dialog appears only when there are multiple copies of the same track, e.g. when track is downloaded from a cloud location or synced to a cloud location.
See https://www.dropbox.com/s/mpueo6u4k1twi ... 7.png?dl=0

Such a track(s) have the cloud icon in the 'Source' column together with the hdd icon.
So maybe it just failed to delete the remote cloud copy?

Anyhow if you can still replicate then it would be good to catch this in debug log generated using DbgView (item 4b here: viewtopic.php?f=30&t=86643 )
mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Re: Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

ok, perhaps its something I'm not understanding about the cloud sync aspect however I only see this intermittently, and it appears only when the files names are close duplicates in the same directory, such as track.mp3 and track (2).mp3
Anyhow PM sent ludek with screencast and debug log
mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Re: Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

Any update on this from the screencast/logs I sent?
Thanks
Ludek
Messages : 5103
Inscription : ven. mars 09, 2007 9:00 am

Re: Spurious "cannot delete, access is denied message" during track removal

Message par Ludek »

Hi Alan, I replied you via PM on Tue Nov 24, 2020 10:45 am, see: https://www.dropbox.com/s/trc8h86isctw7 ... 6.png?dl=0
Did you receive my message?

As for the link to MediaMonkeyEngine.exe , it has already expired, so use build 2276 for generating the debug log.
mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Re: Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

ah sorry Ludek, missed the pm, I'll check it out and get back to you.
mtrhead
Messages : 27
Inscription : sam. déc. 29, 2018 6:38 pm

Re: Spurious "cannot delete, access is denied message" during track removal

Message par mtrhead »

sorry for the delay on updating this but I've been trying for several weeks but cannot reproduce this problem anymore. I'll continue to monitor but suggest you close this one down.

Thanks!
Répondre