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

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: port already in use (due to slow shutdown of the debug build) [#21289]

Re: port already in use

by rusty » Fri Nov 01, 2024 9:22 am

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

Re: port already in use

by MattTown » Wed Oct 23, 2024 7:10 pm

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

Re: port already in use

by rusty » Tue Oct 22, 2024 1:43 pm

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

Re: port already in use

by rusty » Tue Oct 22, 2024 10:21 am

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

Re: port already in use

by Lowlander » 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.

Re: port already in use

by Edgar » Tue Oct 22, 2024 9:53 am

Matt is correct.

Re: port already in use

by MattTown » Tue Oct 22, 2024 7:14 am

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.

Re: port already in use

by Lowlander » Sat Oct 12, 2024 3:04 pm

It's been around forever. If you launch MediaMonkey prior to it being closed this has been an issue for a long time.

Re: port already in use

by Edgar » Sat Oct 12, 2024 3:02 pm

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>.

Re: port already in use

by Lowlander » Fri Oct 11, 2024 8:12 pm

That happens when MediaMonkey is still running. You should always wait for a program to fully close before relaunching when you're testing things.

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

by Edgar » Fri Oct 11, 2024 8:10 pm

“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

Top