port already in use (due to slow shutdown of the debug build) [#21289]
Moderator: Gurus
port already in use (due to slow shutdown of the debug build) [#21289]
“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?
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?
–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
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
Re: port already in use
That happens when MediaMonkey is still running. You should always wait for a program to fully close before relaunching when you're testing things.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Re: port already in use
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>.
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
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
Re: port already in use
It's been around forever. If you launch MediaMonkey prior to it being closed this has been an issue for a long time.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Re: port already in use
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.
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.
Re: port already in use
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
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
Re: port already in use
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.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Re: port already in use
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
Thanks!
-Rusty
p.s. tracking this at https://www.ventismedia.com/mantis/view.php?id=21289
Re: port already in use
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
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
Re: port already in use
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.
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.
Re: port already in use
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
-Rusty