Shadow on the PyCharm window

I am running PyCharm in Linux in WSL, and I use command line pycharm-professional & to launch PyCharm.

However, I can always see a dark colored shadow on the PyCharm window after I resize it.

Let's look into this example:

Can you see the dark block on the bottom horizontally across the Jupyter code block and the “Jupyter Variables” section?

Initially, this issue does not appear. But after I resize the PyCharm window to the size of the dark block, I see the whole window become dark as the block. Then after I maximize it, the area before maximizing is still as dark as before, but other area become light as normal.

Then we see this shadow.

This shadow also go with the PyCharm window. It stays there even if I drag the window into another monitor.

0

This is my PyCharm version:

PyCharm 2026.1.2

Build #PY-261.24374.152, built on May 14, 2026

Runtime version: 25.0.2+10-b329.117 amd64 (JCEF 137.0.17-261-b81)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Are there any ways to trigger an auto fix for PyCharm Software without damaging any other settings?

0

More discoveries!

I can use Win+Shift+Left Arrow or Win+Shift+Right Arrow to relocate the PyCharm window to different monitors WITHOUT creating the shadows. The PyCharm window remains full screen even in different monitors.

However, if I resize it in one of the monitors to make it not full screen, and then use the same way to relocate it. I see PyCharm window did not move to the different monitors, but the shadow did!

Then PyCharm crashed and I got this error log:

$ /snap/pycharm-professional/current/bin/pycharm.sh
[0.012s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
2026-06-06 14:33:20,437 [    433]   WARN - #c.i.p.instanceContainer - InstanceNotOverridableException: Override failed for com.intellij.openapi.project.impl.ProjectStoreFactory: com.intellij.configurationScript.providers.ConfigurationScriptProjectStoreFactory attempts to override com.intellij.configurationStore.PlatformLangProjectStoreFactory, but the existing implementation is not overriddable (not declared as 'open=true')
2026-06-06 14:33:20,439 [    435]   WARN - #c.i.p.instanceContainer - InstanceNotOverridableException: Override failed for com.intellij.ml.llm.matterhorn.activation.data.repos.JunieAieProvisionRepository: com.intellij.ml.llm.matterhorn.activation.data.impl.enterprise.JunieAieProvisionRepositoryImpl attempts to override com.intellij.ml.llm.matterhorn.activation.data.repos.JunieNoProvisionRepositoryImpl, but the existing implementation is not overriddable (not declared as 'open=true')
2026-06-06 14:33:20,443 [    439]   WARN - #c.i.p.instanceContainer - InstanceNotOverridableException: Override failed for com.intellij.modcommand.ModCommandExecutor: com.jetbrains.rdserver.ui.intentions.RemoteModCommandExecutor attempts to override com.intellij.lang.impl.modcommand.ModCommandExecutorImpl, but the existing implementation is not overriddable (not declared as 'open=true')
2026-06-06 14:33:20,518 [    514]   WARN - #c.i.m.l.t.AIAssistantTelemetryExporterKt - No Langfuse auth string found.
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
2026-06-06 14:33:20,764 [    760]   WARN - #c.i.s.c.i.StationSocketConnectionLoop - Discovery connection failed with NoSuchFileException (/run/user/1000/jb.station.sock)
2026-06-06 14:33:20,949 [    945]   WARN - #c.i.o.e.c.i.EditorColorsManagerImpl - Cannot find scheme: Islands Light from plugins: com.intellij.ml.llm
Starting cer server. Pre-initialize spent 0 ms.
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by com.jetbrains.cef.JCefAppConfig$6 in module jcef (jrt:/jcef)
WARNING: Use --enable-native-access=jcef to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

2026-06-06 14:33:24,546 [   4542]   WARN - #c.i.j.c.j.e.o.w.j.JupyterCefDisplayHandler - http://127.0.0.1:63342/jupyter/main.js (1) => strict mode: use allowUnionTypes to allow union type keyword at "#/properties/state/additionalProperties/properties/buffers/items/properties/path/items" (strictTypes)
2026-06-06 14:33:26,823 [   6819]   WARN - #c.i.o.a.i.ActionUpdater - 4586 ms total to grab EDT 2 times to expand EditorMarkupModelImpl$StatusToolbarGroup#expandGroup@EditorInspectionsToolbar (com.intellij.openapi.editor.impl.EditorMarkupModelImpl$StatusToolbarGroup). Use `ActionUpdateThread.BGT`.
2026-06-06 14:33:27,407 [   7403]   WARN - #c.i.o.a.i.ActionUpdater - 4129 ms total to grab EDT 2 times to expand EditorMarkupModelImpl$StatusToolbarGroup#expandGroup@EditorInspectionsToolbar (com.intellij.openapi.editor.impl.EditorMarkupModelImpl$StatusToolbarGroup). Use `ActionUpdateThread.BGT`.
2026-06-06 14:33:27,407 [   7403]   WARN - #c.i.o.a.i.ActionUpdater - 4096 ms total to grab EDT 2 times to expand EditorMarkupModelImpl$StatusToolbarGroup#expandGroup@EditorInspectionsToolbar (com.intellij.openapi.editor.impl.EditorMarkupModelImpl$StatusToolbarGroup). Use `ActionUpdateThread.BGT`.
2026-06-06 14:33:27,408 [   7404]   WARN - #c.i.o.a.i.ActionUpdater - 4088 ms total to grab EDT 2 times to expand EditorMarkupModelImpl$StatusToolbarGroup#expandGroup@EditorInspectionsToolbar (com.intellij.openapi.editor.impl.EditorMarkupModelImpl$StatusToolbarGroup). Use `ActionUpdateThread.BGT`.
2026-06-06 14:33:27,408 [   7404]   WARN - #c.i.o.a.i.ActionUpdater - 4068 ms total to grab EDT 2 times to expand EditorMarkupModelImpl$StatusToolbarGroup#expandGroup@EditorInspectionsToolbar (com.intellij.openapi.editor.impl.EditorMarkupModelImpl$StatusToolbarGroup). Use `ActionUpdateThread.BGT`.
2026-06-06 14:33:27,805 [   7801]   WARN - #c.i.s.c.i.StationSocketConnectionLoop - RecentProjects connection failed with NoSuchFileException (/run/user/1000/jb.station.sock)
2026-06-06 14:33:27,991 [   7987]   WARN - #c.i.m.l.c.q.QuotaManager2Impl - Quota refill state was updated by another thread, wanted to update to Error(exception=com.intellij.ml.llm.core.quota.ResultDoesNotMatchConditionException: Returned result does not match the condition, previous=null)
2026-06-06 14:33:27,994 [   7990]   WARN - #c.i.s.c.i.StationSocketConnectionLoop - /mcp-servers connection failed with NoSuchFileException (/run/user/1000/jb.station.sock)
2026-06-06 14:33:28,057 [   8053]   WARN - #c.i.v.g.r.GitRepositoriesHolder - State of repository RepositoryId(projectId=ProjectId#9qliuoc7b752u60tfrs8, rootPath=/home/yaohuazhuo/PycharmProjects/PythonProject) is not synchronized. Known repositories are:
2026-06-06 14:33:28,518 [   8514]   WARN - JetBrains UI DSL - Row should not be empty
2026-06-06 14:33:32,384 [  12380]   WARN - JetBrains UI DSL - Row should not be empty
2026-06-06 14:33:33,113 [  13109]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Junie is already registered (group=com.intellij.notification.NotificationGroup@710579de). Plugin descriptor: ContentModuleDescriptor(id=matterhorn.ej-ui.backend.main, package=com.intellij.ml.llm.matterhorn.junie.backend) <- PluginMainDescriptor(name=Junie, the AI coding agent by JetBrains, id=org.jetbrains.junie, version=261.1755.48, package=com.intellij.ml.llm.matterhorn.ej.plugin, isBundled=false, path=~/.local/share/JetBrains/PyCharm2026.1/ej)
2026-06-06 14:33:33,145 [  13141]   WARN - #c.i.n.i.NotificationGroupManagerImpl - Notification group Python LSP Tools is already registered (group=com.intellij.notification.NotificationGroup@ffcd435). Plugin descriptor: ContentModuleDescriptor(id=intellij.python.lsp.impl, loadingRule=REQUIRED) <- PluginMainDescriptor(name=Python LSP, id=intellij.python.lsp, version=261.24374.152, isBundled=true, path=/snap/pycharm-professional/628/plugins/python-lsp)
2026-06-06 14:33:34,219 [  14215]   WARN - #c.j.p.s.s.PySkeletonRefresher - Some skeletons failed to generate: pyarrow.libarrow_python, pyarrow.libarrow_python_flight, pyarrow.libarrow_python_parquet_encryption
2026-06-06 14:33:45,972 [  25968] SEVERE - sun.awt.wl.WLToolkit - Wayland protocol I/O error
2026-06-06 14:33:45,981 [  25977] SEVERE - #c.i.concurrency - Thread context was already set: InstalledThreadContext(snapshot=null, context=EmptyCoroutineContext).
 Most likely, you are using 'runBlocking' instead of 'runBlockingCancellable' somewhere in the asynchronous stack.
Also, if you have any kind of manual event queue draining/pumping/flushing/etc
you have to wrap the loop with `resetThreadContext().use { // your queue draining code }`.
See usages of resetThreadContext().
java.lang.Throwable: Thread context was already set: InstalledThreadContext(snapshot=null, context=EmptyCoroutineContext).
 Most likely, you are using 'runBlocking' instead of 'runBlockingCancellable' somewhere in the asynchronous stack.
Also, if you have any kind of manual event queue draining/pumping/flushing/etc
you have to wrap the loop with `resetThreadContext().use { // your queue draining code }`.
See usages of resetThreadContext().
        at com.intellij.concurrency.ThreadContext.installThreadContext$lambda$1(threadContext.kt:321)
        at com.intellij.concurrency.ThreadContext.withThreadLocal(threadContext.kt:409)
        at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:317)
        at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:304)
        at com.intellij.concurrency.ThreadContext.installThreadContext$default(threadContext.kt:303)
        at com.intellij.openapi.wm.impl.WindowCloseListener.windowClosing(ProjectFrameHelper.kt:673)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.Window.processWindowEvent(Window.java:2037)
        at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
        at java.desktop/java.awt.Window.processEvent(Window.java:1996)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2713)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4836)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$shutDownAfterServerError$1(WLToolkit.java:342)
        at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4264)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$shutDownAfterServerError$0(WLToolkit.java:342)
        at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
        at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
        at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:198)
        at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:192)
        at com.intellij.util.concurrency.ContextRunnable.lambda$run$0(ContextRunnable.java:26)
        at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
        at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:25)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:323)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:732)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:711)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:721)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:574)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0$0(IdeEventQueue.kt:382)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:928)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:381)
        at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$0(IdeEventQueue.kt:1111)
        at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
        at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1111)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:376)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:416)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
        Suppressed: java.lang.Throwable: To enable stack trace recording set log category '#com.intellij.concurrency' to 'trace'
                at com.intellij.concurrency.ThreadContext.tracingHint(threadContext.kt:517)
                at com.intellij.concurrency.ThreadContext.installThreadContext$lambda$1(threadContext.kt:326)
                ... 44 more
2026-06-06 14:33:45,982 [  25978] SEVERE - #c.i.concurrency - PyCharm 2026.1.2  Build #PY-261.24374.152
2026-06-06 14:33:45,982 [  25978] SEVERE - #c.i.concurrency - JDK: 25.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2026-06-06 14:33:45,983 [  25979] SEVERE - #c.i.concurrency - OS: Linux
2026-06-06 14:33:45,983 [  25979] SEVERE - #c.i.concurrency - Last Action:
2026-06-06 14:33:46,026 [  26022] SEVERE - #c.i.o.a.i.ApplicationImpl - Failed to destruct the application
com.intellij.openapi.application.impl.ApplicationImpl$1ApplicationExitException: java.awt.AWTError: Wayland display error flushing data out to the server
        at com.intellij.openapi.application.impl.ApplicationImpl.logErrorDuringExit(ApplicationImpl.java:939)
        at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:791)
        at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:773)
        at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:762)
        at com.intellij.openapi.application.ex.ApplicationEx.exit(ApplicationEx.java:69)
        at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.quitApp(CloseProjectWindowHelper.kt:103)
        at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.windowClosing$lambda$0(CloseProjectWindowHelper.kt:82)
        at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
        at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:126)
        at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteIntentReadAction(NestedLocksThreadingSupport.kt:705)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1214)
        at com.intellij.openapi.application.WriteIntentReadAction.computeThrowable(WriteIntentReadAction.java:55)
        at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
        at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.windowClosing(CloseProjectWindowHelper.kt:65)
        at com.intellij.openapi.wm.impl.ProjectFrameHelper.windowClosing(ProjectFrameHelper.kt:627)
        at com.intellij.openapi.wm.impl.WindowCloseListener.windowClosing$lambda$0(ProjectFrameHelper.kt:674)
        at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
        at com.intellij.concurrency.ThreadContext.installThreadContext$default(threadContext.kt:303)
        at com.intellij.openapi.wm.impl.WindowCloseListener.windowClosing(ProjectFrameHelper.kt:673)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:359)
        at java.desktop/java.awt.Window.processWindowEvent(Window.java:2037)
        at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
        at java.desktop/java.awt.Window.processEvent(Window.java:1996)
        at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
        at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2713)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4836)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$shutDownAfterServerError$1(WLToolkit.java:342)
        at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4264)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$shutDownAfterServerError$0(WLToolkit.java:342)
        at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
        at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
        at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:198)
        at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:192)
        at com.intellij.util.concurrency.ContextRunnable.lambda$run$0(ContextRunnable.java:26)
        at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
        at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:25)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:323)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:732)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:711)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:721)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:574)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0$0(IdeEventQueue.kt:382)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:928)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:381)
        at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$0(IdeEventQueue.kt:1111)
        at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
        at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1111)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:376)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:416)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.awt.AWTError: Wayland display error flushing data out to the server
        at java.desktop/sun.awt.wl.WLToolkit.flushImpl(Native Method)
        at java.desktop/sun.awt.wl.WLToolkit.flush(WLToolkit.java:1138)
        at java.desktop/sun.awt.wl.WLComponentPeer.lambda$wlSetVisible$0(WLComponentPeer.java:421)
        at java.desktop/sun.awt.wl.WLComponentPeer.performLocked(WLComponentPeer.java:1868)
        at java.desktop/sun.awt.wl.WLComponentPeer.wlSetVisible(WLComponentPeer.java:391)
        at java.desktop/sun.awt.wl.WLWindowPeer.wlSetVisible(WLWindowPeer.java:124)
        at java.desktop/sun.awt.wl.WLComponentPeer.setVisible(WLComponentPeer.java:551)
        at java.desktop/sun.awt.wl.WLDialogPeer.setVisible(WLDialogPeer.java:44)
        at java.desktop/java.awt.Dialog.conditionalShow(Dialog.java:922)
        at java.desktop/java.awt.Dialog.show(Dialog.java:1029)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:1009)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.lambda$show$13(DialogWrapperPeerImpl.java:574)
        at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
        at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:126)
        at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteIntentReadAction(NestedLocksThreadingSupport.kt:705)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1214)
        at com.intellij.openapi.application.WriteIntentReadAction.computeThrowable(WriteIntentReadAction.java:55)
        at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.lambda$show$14(DialogWrapperPeerImpl.java:573)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.lambda$show$5(DialogWrapperPeerImpl.java:515)
        at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.lambda$show$6(DialogWrapperPeerImpl.java:514)
        at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:569)
        at com.intellij.openapi.ui.DialogWrapper.lambda$doShow$16(DialogWrapper.java:1926)
        at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
        at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:126)
        at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteIntentReadAction(NestedLocksThreadingSupport.kt:705)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1214)
        at com.intellij.openapi.application.WriteIntentReadAction.computeThrowable(WriteIntentReadAction.java:55)
        at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
        at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1925)
        at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1873)
        at com.intellij.ui.messages.AlertMessagesManager.showMessageDialog(AlertMessagesManager.kt:107)
        at com.intellij.ui.messages.MessagesServiceImpl.showMessageDialog(MessagesServiceImpl.java:69)
        at com.jetbrains.rdserver.ui.BackendMessagesService.showMessageDialog(BackendMessagesService.kt:39)
        at com.intellij.openapi.ui.messages.MessagesService.showMessageDialog$default(MessagesService.kt:53)
        at com.intellij.openapi.ui.MessageDialogBuilder$YesNo.show(MessageDialogBuilder.kt:124)
        at com.intellij.openapi.ui.MessageDialogBuilder$YesNo.guessWindowAndAsk(MessageDialogBuilder.kt:112)
        at com.intellij.openapi.application.impl.ApplicationImpl.confirmExitIfNeeded(ApplicationImpl.java:1050)
        at com.intellij.openapi.application.impl.ApplicationImpl.destructApplication(ApplicationImpl.java:805)
        at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:788)
        ... 56 more
2026-06-06 14:33:46,027 [  26023] SEVERE - #c.i.o.a.i.ApplicationImpl - PyCharm 2026.1.2  Build #PY-261.24374.152
2026-06-06 14:33:46,027 [  26023] SEVERE - #c.i.o.a.i.ApplicationImpl - JDK: 25.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2026-06-06 14:33:46,027 [  26023] SEVERE - #c.i.o.a.i.ApplicationImpl - OS: Linux
2026-06-06 14:33:46,027 [  26023] SEVERE - #c.i.o.a.i.ApplicationImpl - Last Action:
Exception in thread "WLToolkit-Shutdown-Thread" java.lang.AssertionError
        at com.intellij.ui.GuiUtils.removePotentiallyLeakingReferences(GuiUtils.java:294)
        at com.intellij.openapi.wm.impl.status.InfoAndProgressPanel$InfoAndProgressPanelImpl.removeNotify(InfoAndProgressPanel.kt:687)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4871)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4871)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4871)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4871)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4871)
        at java.desktop/javax.swing.JRootPane.removeNotify(JRootPane.java:721)
        at com.intellij.openapi.wm.impl.IdeRootPane.removeNotify(IdeRootPane.kt:95)
        at java.desktop/java.awt.Container.removeNotify(Container.java:2822)
        at java.desktop/java.awt.Window.removeNotify(Window.java:770)
        at java.desktop/java.awt.Frame.removeNotify(Frame.java:1049)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$registerShutdownHook$1(WLToolkit.java:201)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
        at java.desktop/sun.awt.wl.WLToolkit.lambda$registerShutdownHook$0(WLToolkit.java:198)
        at java.base/java.lang.Thread.run(Thread.java:1474)
        at java.base/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:148)
2026-06-06 14:33:46,201 [  26197]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104697] failed
2026-06-06 14:33:46,212 [  26208]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104753] failed
2026-06-06 14:33:46,221 [  26217]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104417] failed
2026-06-06 14:33:46,224 [  26220]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104550] failed
2026-06-06 14:33:46,227 [  26223]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #107469] failed
2026-06-06 14:33:46,280 [  26276]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #103072] failed
2026-06-06 14:33:46,287 [  26283]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104638] failed
2026-06-06 14:33:46,293 [  26289]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104403] failed
2026-06-06 14:33:46,296 [  26292]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #109747] failed
2026-06-06 14:33:46,299 [  26295]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #109748] failed
2026-06-06 14:33:46,302 [  26298]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #110444] failed
2026-06-06 14:33:46,305 [  26301]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104665] failed
2026-06-06 14:33:46,308 [  26304]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #113185] failed
2026-06-06 14:33:46,311 [  26307]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #109938] failed
2026-06-06 14:33:46,314 [  26310]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104758] failed
2026-06-06 14:33:46,317 [  26313]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104447] failed
2026-06-06 14:33:46,320 [  26316]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104519] failed
2026-06-06 14:33:46,323 [  26319]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #96864] failed
2026-06-06 14:33:46,326 [  26322]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104505] failed
2026-06-06 14:33:46,329 [  26325]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #96789] failed
2026-06-06 14:33:46,332 [  26328]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104688] failed
2026-06-06 14:33:46,335 [  26331]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104457] failed
2026-06-06 14:33:46,338 [  26334]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #109749] failed
2026-06-06 14:33:46,340 [  26336]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104649] failed
2026-06-06 14:33:46,344 [  26340]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104531] failed
2026-06-06 14:33:46,347 [  26343]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104545] failed
2026-06-06 14:33:46,349 [  26345]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104572] failed
2026-06-06 14:33:46,353 [  26349]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #97057] failed
2026-06-06 14:33:46,356 [  26352]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #96815] failed
2026-06-06 14:33:46,359 [  26355]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104681] failed
2026-06-06 14:33:46,363 [  26359]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104619] failed
2026-06-06 14:33:46,366 [  26362]   WARN - #c.i.u.i.FileBasedIndexImpl - Suppressed a frequent exception logged for the 2nd time: Processing of UpdateData[Stubs: #104764] failed
0

This attachment is Gemini's response. I tried the first way, but it doesn't work.

 

0

Thanks for the report and the screenshot.

This is a known issue with PyCharm's native Wayland mode under WSL, tracked as JBR-10006. The dark "shadow" comes from Wayland shadow rendering in that environment.

To remove it now:

  1. Open Help | Edit Custom VM Options
  2. Add this line: -Dsun.awt.wl.Shadow=false
  3. Restart PyCharm

The fix is included in PyCharm 2026.1.3 and 2026.2, so updating once 2026.1.3 is available will resolve it permanently. That update also improves Wayland stability under WSL, which covers the crash you saw when moving the window between monitors.

You can follow JBR-10006 for updates. See how to watch a YouTrack issue to get notified when the fix ships.

0

请先登录再写评论。