OpenMPT doesn't terminate it's processes and i can't close them.

Started by ida, February 26, 2018, 12:42:31

Previous topic - Next topic

ida

I have a problem with MPT:



Each time i close MPT, it's process remains. When i try to end any of the processes, i get an access denied message. The processes also remain even after i reboot my computer. This appeared to be because Windows wasn't shutting down properly and it left some programs on. Thanks, Windows!

What the hell is going on here?
.

Midori Mizuno

Do you hibernate your OS session instead of doing a proper full shutdown, by any chance? Anyway, i had never experienced such kind of misbehavior before, really weird. Especially the low memory amount some of those processes are using is puzzling. Might be some serious kernel-level problem, that causes your system to not terminate the processes correctly. That's my blind guess here, but sometimes some aggressive/badly coded antimalware software can mess with legitimate stuff in unexpected ways, have you tried disabling it, in case you're using any?

The other thing i can think of, as for the culprit of you being unable to end the processes - maybe they are being assigned elevated priviledges (admin), and you're trying to terminate then from an account with lower priviledges (though as far as my memory can serve, you shouldn't be able to run the task manager without the administrator rights, but don't quote me on that)

Midori Mizuno

Also just found this helpful article after a short while of research, so it might mean some of drivers OpenMPT uses migh be faulty. Have you changed your sound output API recently, or updated any hardware drivers? This might prove to be the culprit here.

manx

Quote from: WouterVL on February 26, 2018, 12:42:31
Each time i close MPT, it's process remains. When i try to end any of the processes, i get an access denied message.

What the hell is going on here?

A few things to check:
Does it also happen if you do not use any VST plugins at all?
Does it happen with every sound device type?

The fact that you cannot even close the processes at all via task manager is very strange. I am not even aware what OpenMPT could even be doing to prevent that.

Quote from: WouterVL on February 26, 2018, 12:42:31
The processes also remain even after i reboot my computer. This appeared to be because Windows wasn't shutting down properly and it left some programs on. Thanks, Windows!
Yes, Windows (since 8.0) does not shutown your system by default when you select "shutdown", but instead only hibernates it. Selecting "reboot" does a proper system shutdown and restart though.

Saga Musix

VST plugins and/or buggy sounds drivers would also be my two top suspects, although not being able to kill the processes (and the low memory footprint of 28K of those zombies) makes me tend towards the latter.
I doubt there is much we can do, but a memory dump of the process in this state would be helpful to at least confirm these ideas. You can create one by right-clicking the process in task manager and choosing "Create dump file" (warning: this file will be large, so compress it with 7r or rar if you are going to upload it somewhere).
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

LPChip

Also, if you are on Windows 10 v1709, you should note that a reboot or shutdown when the program is still running will make windows relaunch the program at startup whether you want or not.

If this happens, it can become stuck in the boot sequence even if you close the program normally.

I had it so badly that Windows would open 3 empty word documents at startup and it was nearly impossible to make windows stop doing that.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Saga Musix

I am rather sure that Word integrates with Windows' restart manager (which does not just exist in Windows 10) though, which OpenMPT does not. Even if OpenMPT made use of the restart manager, it would not explain dozens of dead processes spawning on restart.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Midori Mizuno

QuoteAlso, if you are on Windows 10 v1709, you should note that a reboot or shutdown when the program is still running will make windows relaunch the program at startup whether you want or not.
Huh, that sounds nothing but awful, if it's true for any program that isn't closed by hand before the shutdown. Good thing i stayed with 8.1

Saga Musix

No, that's not the case, but Windows has had a startup manager for a long time but only few programs make use of it (much less than on some other platforms). It's an optional feature that a program can opt into. Of course if there's a bug in the implementation (which could very well be inside Word here), this might not work as intended.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

jmkz

Quote from: Saga Musix on February 26, 2018, 17:11:37
VST plugins and/or buggy sounds drivers would also be my two top suspects, although not being able to kill the processes (and the low memory footprint of 28K of those zombies) makes me tend towards the latter.
I doubt there is much we can do, but a memory dump of the process in this state would be helpful to at least confirm these ideas. You can create one by right-clicking the process in task manager and choosing "Create dump file" (warning: this file will be large, so compress it with 7r or rar if you are going to upload it somewhere).
As Saga Musix said, also happens at my side when I use Farbrausch V2 (which is known to be buggy). This VST keeps the PluginBridge32.exe hanged and I need to kill PluginBridge manually so OpenMPT can exit normally. Try to check if PluginBridge32.exe or PluginBridge64.exe are still executing when you close OpenMPT.
I even noticed that closing all songs with buggy VSTs may lead to OpenMPT get stuck between it and PluginBridge because leaves PluginBringe* on execution.

Saga Musix

Okay guys, I know you just want to be helpful but at least try to read the initial post a bit more carefully. He mentioned that he cannot kill the process manually, and it's clearly mptrack.exe that's hanging, not a plugin bridge instance.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.