Debugger is stuck on launch when running from IntelliJ

Sometimes it causes the entire phone to be stuck on the app launcher, it doesn’t even respond to home button presses, like what happens to some of our customers in this bug: