Pycharm window closes on ctrl+f2

I am using Pycharm 2020.3 on Linux Mint 20 on a virtual machine, Oracle Virtual Box 6.1.

I debug my application. When I use the shortcut ctrl+f2 to stop the debugging session, the application window closes. I don't know how to switch back to it.

Below is the output of "ps aux | grep pycharm" after pycharm closes:

gidi@gidi-VirtualBoxMint20:~$ ps aux | grep pycharm
gidi        1671  0.0  0.0   2608  1736 ?        S    12:05   0:00 /bin/sh /snap/pycharm-community/222/bin/pycharm.sh
gidi        1722 44.6 19.4 3090512 782664 ?      Sl   12:05   2:37 /snap/pycharm-community/222/jbr/bin/java -classpath /snap/pycharm-community/222/lib/bootstrap.jar:/snap/pycharm-community/222/lib/extensions.jar:/snap/pycharm-community/222/lib/util.jar:/snap/pycharm-community/222/lib/jdom.jar:/snap/pycharm-community/222/lib/log4j.jar:/snap/pycharm-community/222/lib/jna.jar -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -XX:ErrorFile=/home/gidi/java_error_in_pycharm_%p.log -XX:HeapDumpPath=/home/gidi/java_error_in_pycharm_.hprof -Didea.vendor.name=JetBrains -Didea.paths.selector=PyCharmCE2020.3 -Djb.vmOptionsFile=/home/gidi/.config/JetBrains/PyCharmCE2020.3/pycharm64.vmoptions -Didea.platform.prefix=PyCharmCore com.intellij.idea.Main
gidi        1781  0.0  0.0   2956  1884 ?        S    12:06   0:00 /snap/pycharm-community/222/bin/fsnotifier64
gidi        2041  0.0  0.0   9032   728 pts/1    S+   12:11   0:00 grep --color=auto pycharm

If anyone knows how to avoid this issue, I'll be grateful for your comments.

0
2 comments

Does it happen only in PyCharm?

Ctrl+F2 by default is assigned only to Stop action in the debugger and nothing else so it looks like some system shortcut is closing the window.

1
Avatar
Permanently deleted user

Thanks, Sergey. I think that the shortcut ctrl+f2 is used to switch workspaces in Linux mint.

Found it in this link: https://cheatography.com/shakiestnerd/cheat-sheets/linux-mint-cinnamon/

I used the information in https://www.jetbrains.com/help/pycharm/configuring-keyboard-and-mouse-shortcuts.html to reassign a different shortcut for the stop operation.

0

Please sign in to leave a comment.