Max crashes/hangs when connected to router which isn't connected to internet

ironside's icon

I have an odd bug I think I've found.
When I boot Max with my computer connected to a router that isn't connected to the internet Max/MSP hangs and crashes.
However, when I am disconnected from the router, or when I am connected to the internet, Max starts up fine.
Otherwise my computer works perfectly, and no other apps exhibit this behaviour.
I'm on macOS. Anyone know why this would happen?

EDIT: I think Max *thinks* it's connected to the internet, and is somehow trying to authorize itself etc but is hanging when it can't connect to the outside world. Is this plausible?

11OLSEN's icon

Try to switch off rnbo server in Max prefs. Only a guess.

ironside's icon

Cool - I will try when back at my computer.

Further info: I’m running it on a computer for an installation, and Max is running in standalone/unlicenced mode (ie saving disabled etc)

Source Audio's icon

Remove any trace of rnbo and CEF framework, as well as node.js
if you don't use anything that depends on it.
will make standalone app start fast and run reliably.

ironside's icon

Is there a documented way to remove node from max?

Jan M's icon

I wouldn’t remove Node or CEF from your main Max installation!

I frequently use Max in my studio connected to a router with no internet connection. (I am also on MocOs)
maybe check your router config and try to completely disable WAN.
Or try to set the DNS server on your Mac manually….

ironside's icon

I think the caveat here is this is an unlicensed install of Max - I’m running it in read only mode for an installation, and I’m pretty certain this is what’s causing this bug

Jan M's icon

Seems very plausible!

ironside's icon

Fixed! FYI disabling RNBO server in preferences fixed it.

ironside's icon

Actually it isn’t fixed at all.
It definitely seems that Max isn’t able to boot up unauthorised on this machine if I have a DHCP assigned address from my router.
It I disconnect from the router, or give max internet access it all seems fine.

ironside's icon

@Source Audio - can you tell me how to remove RNBO and node.js?

Source Audio's icon

As first, I would do that only on standalone, and in case you don't need anything that
relies on node and CEF framework.

if you want to strip max application itself, ok, but
you will have errors , because new max versions uses it for some init routines.

please, post here what your standalone uses, and I'll will post what I find best to trimm it down.

in normal case, you would use standalone inspector to disable CEF, max extensions, gen support etc, then remove the rest manually.

P.S. if your app needs no latest max version or arm arch. to function,
8.1.11 or 8.3 would be a better choice

pdelges's icon

If there a DNS server defined in your network setup, try to remove it.

ironside's icon

Hi - for future reference for anyone with similar problems:
I wasn't able to fix this issue with the Max app, even after clean installs and following everyone's advice. I managed to sidestep it by exporting a standalone from another machine, which runs fine. Strange.

Source Audio's icon

standalone does not need internet.
unless you want it to.
Max full version does, and in some cases/versions even slows down internet traffic
for other apps.
One can block it using firewall, or then trash max binary and replace it with
noCEF runtime

extract runtime, rename it to Max, replace original
and you have handmade runtime max,
just as in old days.


ironside's icon

Thanks all for suggestions!
Here's where things are going wrong in the log dumped out of terminal:

[0904/131718.475704:WARNING:dns_config_service_posix.cc(197)] Failed to read DnsConfig.

Trying to work out why this is, as I have DNS disabled on the router... Does anyone know if this is what this means?

pdelges's icon

As I proposed earlier, did you try to remove the DNS server address from your computer's network settings (not on the router)?

ironside's icon

Yes - there's no DNS server settings in my computer's network settings