MM5 Repeats Last 10 Secs of Track [#17180]

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

Moderador: Gurus

MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por MattTown »

Hi, I've managed to pin down a strange playback behavior, where the edit of a track database field can cause MM to replay the last 10 secs of a track. This is more of an annoyance than a bug, but a music player should be able to play a track through without unintended interruptions or repeats.

Context: Main panel is showing Main Music>All Tracks. Left panel (tree view?) is closed. Right panels are opened and behaving normally. Audio Output is listed as Mediamonkey DirectSound output.

Trigger: Double click on a track to play it. Open a database field to edit - I'm generally editing the Comments field - and make a change that would require a write on close. Either let the track play through or move the play control to 00:15 secs and let it play forward. When it passes 00:10, close the edited field.

Observed behavior: The play counter jumps back to 00:20 secs while the audio stream continues to the end of the track uninterrupted. The play counter proceeds forwards and when it gets to 00:10 again it replays the last 10 secs of the track. What you hear is <end of track><brief silence><last 10 secs of track again>. Note that my limited testing only has this happen about 3 out of five times, and I haven't been able to pin down the trigger time window much.

Again, this is more of an annoyance and won't affect anyone who is just playing music without getting into the data. However, it is strange behavior and might be a factor in other reports of strange playing behavior in MM. My perception is that a similar behavior affected MM4 as well.

Cheers
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
dtsig
Mensajes: 3588
Registrado: Lun Ene 24, 2011 6:34 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por dtsig »

This happens in 2656 ...
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig
MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por MattTown »

Sorry, should have stated that the MM version i'm using is 5.0.3.2627.
Cheers
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
Erwin Hanzl
Mensajes: 1190
Registrado: Mar Jun 13, 2017 8:47 am

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por Erwin Hanzl »

Please update last Alpha-Version - link is in my signature.
Then check TOOLS> Options ... Player ... Audio Output (plug ins)
MMW 4.1.31.1919 Gold-Standardinstallation
MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por MattTown »

Erwin Hanzl escribió: Sab Jul 09, 2022 9:58 am Please update last Alpha-Version - link is in my signature.
Then check TOOLS> Options ... Player ... Audio Output (plug ins)
Thanks Erwin. I only have one production system, not a test environment, and am reluctant to hazard my data with a non-released version.
Besides, I'm not sure whether you are offering this advice to me on the basis that it would let me provide a debug data set to the devs, or whether it would fix the problem. Based on what dtsig observed, the latter isn't the case.
dtsig escribió: Vie Jul 08, 2022 6:39 pm This happens in 2656 ...
Maybe dtsig could confirm what Audio Output he is using on his 2656 installation.

Cheers
Matt
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
Ludek
Mensajes: 5119
Registrado: Vie Mar 09, 2007 9:00 am

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por Ludek »

dtsig
Mensajes: 3588
Registrado: Lun Ene 24, 2011 6:34 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por dtsig »

Not happening for me now in 2657
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig
Lowlander
Mensajes: 59338
Registrado: Sab Sep 06, 2003 5:53 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por Lowlander »

Which File Type(s) and what Output Plugin is this happening with? And does switching output plugin remediate the problem?
MiPi
Mensajes: 923
Registrado: Mar Ago 18, 2009 2:56 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por MiPi »

This problem is tracked here.
MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

Re: MM5 Repeats Last 10 Secs of Track

Mensaje por MattTown »

Hi Lowlander, thanks for the response.
Lowlander escribió: Sab Jul 23, 2022 12:18 pm Which File Type(s) and what Output Plugin is this happening with?
Files are MP3s encoded at 256K.
Audio Output plugin is Mediamonkey Direct Sound. Config: all ticked - Enable HW acceleration, smooth pause, smooth seek, smooth stop.
I tested again with MMDS, and the repeat behaviour was again as described.
I also tried the MMDS output with all of the configuration options deselected, didn't change the repeat behaviour.
Lowlander escribió: Sab Jul 23, 2022 12:18 pm And does switching output plugin remediate the problem?
Changed output to Mediamonkey WASPI output - repeat behaviour still there.

So, no, changing the audio output plugin doesn't change the repeat behaviour - the problem is presumably upstream of the output plugin.

Cheers
Matt
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

Re: MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por MattTown »

And here's a bizarre twist for your information. I've just played a short song (1:47) and with a field edit near the end it started repeating the last 10 secs again. However, this time when it reached zero, the time elapsed counter at bottom right started counting back up again. This has happened once or twice before so it is rare but not unique. Bizarrely, the time played counter at bottom left also progressed upwards while the track repeated, and was at least 1 minute beyond the DB track length when I last looked at it.

Tried playing the next track and MM threw an application error:
  • address 0040580D in module 'MediaMonkeyEngine.exe'. Write of address 00A6FE56.
Restarted MM, while the audio of the repeated last 10 secs kept going. MM restarted but balked at a Port In Use error. Track end repeat continued. Closed MM, track repeat continued.

Fired up Task Manager, reported no running apps but MM was still present in the process list with 28% of the CPU and 269Mb of memory. Last 10 sec loop continued to repeat throughout the process.

Rebooted computer, MM started normally.
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
Erwin Hanzl
Mensajes: 1190
Registrado: Mar Jun 13, 2017 8:47 am

Re: MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por Erwin Hanzl »

I've just played a short song (1:47) and with a field edit near the end it started repeating the last 10 secs again.
Never have I edited fields while the same song is playing.
Now I tested it and got the same error.
Changed tags are written back - this of course has an impact.

Further test: I play a specific song and edit some fields in an OTHER song - no problems.

And what does that tell me: don't edit fields when playing the same song. I'm sticking to it.

Output-Plugin: Mediamonkey Direct Sound
...YES: Enable hardware acceleration, Smooth pause , seek, stop
MMW 4.1.31.1919 Gold-Standardinstallation
Barry4679
Mensajes: 2446
Registrado: Vie Sep 11, 2009 8:07 am

Re: MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por Barry4679 »

Erwin Hanzl escribió: Dom Ago 28, 2022 9:40 pm And what does that tell me: don't edit fields when playing the same song. I'm sticking to it.
Good plan, but capability to re-tag the currently playing track seems a basic requirement.
Want a dark skin for MM5? This is the one that works best for me .. elegant, compact & clear.
Erwin Hanzl
Mensajes: 1190
Registrado: Mar Jun 13, 2017 8:47 am

Re: MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por Erwin Hanzl »

Good plan, but capability to re-tag the currently playing track seems a basic requirement.
Isn't that the case with you?
I use MM5.0.4.2661 Beta
MMW 4.1.31.1919 Gold-Standardinstallation
MattTown
Mensajes: 409
Registrado: Dom Mar 15, 2009 5:09 pm

Re: MM5 Repeats Last 10 Secs of Track [#17180]

Mensaje por MattTown »

I've been editing tracks while playing for years and found that MM is always reliable writing to the track tags and database. While this error does occasionally happen it is not frequent enough to cause me a problem (unlike some of the quirks of the inline editing interface) and I usually only have to restart Mediamonkey. I'm just reporting it because it's not a good look for the widespread adoption of MM outside enthusiasts.
MM 2024.2.0.3184 non-debug (WEF 20 Dec 2025, Portable Mode), Gold lifetime license, user since 2009.
Currently 31K files. Library and music files are on a separate partition (E:\) on external USB drive.
Windows Surface Book (Original), i5, 8GB RAM, 250GB SSD.
Win10 Pro 64 bit, update: 22H2 19045.6466
MMA 2.0.6.1251, Android 14 on Nokia XR20, music files on SD card.
Responder