Max crashes the dirty way under Windows

Roald Baudoux's icon

Hello,

Since a very, very long time I have an issue with Max under Windows (W10 v18362.1016 - 64 bit).

Whenever Max crashes, I cannot relaunch it directly because obviously there is at least one background Max process is left open after the crash. First the task manager from Windows must be opened. Then the background thread must be terminated. Moreover, most of the time the background process isn't removed from the list displayed in the task manager even if the "end of task" action has been executed. However, it seems that performing this action it whatsoever has some effect because afterwards I can launch Max again.

This is really annoying especially if a crash happens in a live setup because it makes relaunching Max longer and more complicated than it should be.

This issue happens under Max 8.1.5 but I think it's been happening since version 8.0.0 at least.

Source Audio's icon

You can make executable command to kill Max

taskkill /IM Max.exe /f

Replace Standalone Name in the script.
One can easily make little exe file to force quit and start app.

taskkill /IM MyApp.exe /f

start C:\MyApps\MyApp.exe

Roald Baudoux's icon

Very interesting! I'll check that. thank you @Source Audio.

Source Audio's icon

If you need any help making cmd file or exe out of it just post here.

Roald Baudoux's icon

Are these PowerShell scripts?

Also, now I need a way to crash Max easily in order to check my scripts. Any suggestion?

Source Audio's icon

this is simple batch script.
Easiest way - open Notepad paste inside and save as .cmd

Doubleclick will execute it.
I use bat to exe converter to convert script to exe application

You don't need to crash max, use this script :
taskkill /IM Max.exe /f

There is one thing to remember :
Max writes preferences on normal exit,
I noticed that dsp settings fail to store if one forces Max quit,
and also if main patcher window is close disabled, or full screen.
One has to get out of full screen, or
window flags close, window exec
before quitting standalone, otherwise dsp settings won't store.
--------
Maybe I did not state this clearly :
taskkill needs no path, just the name of app to kill.
start on the other hand needs full path to application
and it fails if app is not on root partition

Source Audio's icon

Ok, I understand what you mean by crashing max,
to quit max might not let it hang,
bang this message to provoke max to crash.

;
max crash

But I don't know if it would still keep hanging in the background.

Roald Baudoux's icon

I didn't know such a Max message existed! :-)))

However there's no process hanging in the background indeed. So I'll wait for the next "dirty" crash.

Thanks a lot @Source Audio!