Ubuntu freezes after Android MTP connected

In my case, solution was:

Android MM: Settings->Advanced settings/options -> Debug options ->Verify applications - USB (disable)

The system will freeze/crash if this option is enabled.