port already in use (due to slow shutdown of the debug build) [#21289]

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

Moderator: Gurus

Edgar
Posts: 106
Joined: Sun Aug 30, 2009 12:06 pm

port already in use (due to slow shutdown of the debug build) [#21289]

Post by Edgar »

“Media server MediaMonkey Library could not start port 10827…”
In testing 3063 on my multi-monitor system I was repeatedly launching and closing MediaMonkey. I kept seeing this – more than 60% of the time. I was waiting at least a few seconds between closing and launching (I have an extremely fast computer) and it seems that if I waited about 5 seconds the odds were much better that this would not happen. Would it be possible to move releasing this port much earlier in the closedown routine?
Image
–Edgar

64-bit Windows 10 MediaMonkey Lifetime Gold 3, 4 & beta5
Asus ASUS Prime X299-Deluxe motherboard
sound system: Soundcraft Signature 12 MTK mixer, JBL Eon 15 G2 speakers as mains and mains subs, and JBL Eon610 mains with Tascam LF-S8 sub as near field monitors at the computer
Lowlander
Posts: 57474
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: port already in use

Post by Lowlander »

That happens when MediaMonkey is still running. You should always wait for a program to fully close before relaunching when you're testing things.
Edgar
Posts: 106
Joined: Sun Aug 30, 2009 12:06 pm

Re: port already in use

Post by Edgar »

Agreed about waiting for an application to completely close, but…

I have been testing MediaMonkey 2024 quite extensively over the last few weeks; this testing has involved rapid closing and re-opening. Until version 3063 I have never seen this issue <shrug>.
–Edgar

64-bit Windows 10 MediaMonkey Lifetime Gold 3, 4 & beta5
Asus ASUS Prime X299-Deluxe motherboard
sound system: Soundcraft Signature 12 MTK mixer, JBL Eon 15 G2 speakers as mains and mains subs, and JBL Eon610 mains with Tascam LF-S8 sub as near field monitors at the computer
Lowlander
Posts: 57474
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: port already in use

Post by Lowlander »

It's been around forever. If you launch MediaMonkey prior to it being closed this has been an issue for a long time.
MattTown
Posts: 336
Joined: Sun Mar 15, 2009 5:09 pm
Location: Australia

Re: port already in use

Post by MattTown »

It also happens when MM crashes or has to be closed from Task Manager. In those circumstances I have to restart the computer, even if I've terminated all of the MM processes I can find in Task Manager.
MM 2024.0.0.3061 debug (WEF 7 Oct 2024, Portable Mode), Gold lifetime license, user since 2009.
Currently 27K 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 Home 64 bit, update: 23H2 22631.3880
MMA 2.0.0.1103, Android 13 on Nokia XR20, music files on SD card.
Edgar
Posts: 106
Joined: Sun Aug 30, 2009 12:06 pm

Re: port already in use

Post by Edgar »

Matt is correct.
–Edgar

64-bit Windows 10 MediaMonkey Lifetime Gold 3, 4 & beta5
Asus ASUS Prime X299-Deluxe motherboard
sound system: Soundcraft Signature 12 MTK mixer, JBL Eon 15 G2 speakers as mains and mains subs, and JBL Eon610 mains with Tascam LF-S8 sub as near field monitors at the computer
Lowlander
Posts: 57474
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: port already in use

Post by Lowlander »

Never seen that. However if I need to force close MediaMonkey I use the Details tab in Task Manager and use End process tree on MediaMonkey.exe, which will also kill the MediaMonkeyEngine.exe processes.
rusty
Posts: 8705
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: port already in use

Post by rusty »

In my testing, this issue is specific to the debug build. Can you confirm that this is the case for you as well?

Thanks!

-Rusty

p.s. tracking this at https://www.ventismedia.com/mantis/view.php?id=21289
rusty
Posts: 8705
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: port already in use

Post by rusty »

Based on the dev team's preliminary assessment, this is a limitation of the debug build and slow closing of MM debug will always occur if dbgview isn't running with the debug build to capture messages.

The solution for now would be to switch to the 'regular' build once testing is complete, but we plan to examine this further in the future.

Thanks!

-Rusty
MattTown
Posts: 336
Joined: Sun Mar 15, 2009 5:09 pm
Location: Australia

Re: port already in use

Post by MattTown »

Lowlander wrote: Tue Oct 22, 2024 10:04 am Never seen that. However if I need to force close MediaMonkey I use the Details tab in Task Manager and use End process tree on MediaMonkey.exe, which will also kill the MediaMonkeyEngine.exe processes.
Thanks Lowlander, didn't know that option existed. Will try that in future to see if it makes a difference - assuming of course that MM crashes in future after all the attention that the Devs are lavishing on it : )

Cheers
Matt
MM 2024.0.0.3061 debug (WEF 7 Oct 2024, Portable Mode), Gold lifetime license, user since 2009.
Currently 27K 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 Home 64 bit, update: 23H2 22631.3880
MMA 2.0.0.1103, Android 13 on Nokia XR20, music files on SD card.
rusty
Posts: 8705
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: port already in use

Post by rusty »

fyi, we've fixed the slow shutdown speed that occurred with the debug build so that this should no longer be an issue (except in the event of a crash in which MM fails to terminate properly). The new build should be available soon.

-Rusty
Post Reply