I can reproduce that even without using autopilot, just start dialer-app from command line:
dialer-app --desktop_file_hint=/usr/share/applications/dialer-app.desktop
Then call the phone and answer the call in the snap decision. The focus will get back to the dialer-app, and as soon as you try to interact with the app, the screen will turn black, and trying to interact with the shell makes it crash.
I can reproduce that even without using autopilot, just start dialer-app from command line:
dialer-app --desktop_ file_hint= /usr/share/ applications/ dialer- app.desktop
Then call the phone and answer the call in the snap decision. The focus will get back to the dialer-app, and as soon as you try to interact with the app, the screen will turn black, and trying to interact with the shell makes it crash.