Intellij main window off-screen
已回答
Hello, I got a very annoying problem with my Intellij ultimate: one of my project is refusing to open on my screen, see the image below:

as you can see the tips popup is there but not the main window (displayed as blank in the task bar).
Technical infos:
openapi.wm.impl.WindowInfoImpl - IntelliJ IDEA 2019.3.4 Build #IU-193.6911.18
openapi.wm.impl.WindowInfoImpl - JDK: 11.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
openapi.wm.impl.WindowInfoImpl - OS: Windows 10
My setup is a triple screen (but each of them is not the exact same size and I move them regurlarly).
What I tried:
- Editing workspace.xml => no luck
- Erasing .idea folder => still no effect
- Trying to blindly access the menu => no effect
Here are the logs:
2020-03-24 10:33:02,146 [ 25224] ERROR - openapi.wm.impl.WindowInfoImpl - Frame bounds are invalid: java.awt.Rectangle[x=-6467,y=0,width=5303,height=1030]
java.lang.Throwable: Frame bounds are invalid: java.awt.Rectangle[x=-6467,y=0,width=5303,height=1030]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.openapi.wm.impl.FrameInfoHelperKt.updateFrameInfo(FrameInfoHelper.kt:94)
at com.intellij.openapi.wm.impl.FrameInfoHelperKt.access$updateFrameInfo(FrameInfoHelper.kt:1)
at com.intellij.openapi.wm.impl.FrameInfoHelper.updateAndGetModificationCount(FrameInfoHelper.kt:54)
at com.intellij.openapi.wm.impl.FrameInfoHelper.updateAndGetModificationCount(FrameInfoHelper.kt:50)
at com.intellij.openapi.wm.impl.ProjectFrameBounds.getModificationCount(ProjectFrameBounds.kt:37)
at com.intellij.configurationStore.ComponentWithModificationTrackerInfo.getCurrentModificationCount(ComponentInfo.kt:80)
at com.intellij.configurationStore.ComponentStoreImpl.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreImpl.kt:186)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreWithExtraComponents.kt:89)
at com.intellij.configurationStore.ComponentStoreImpl$commitComponentsOnEdt$$inlined$withEdtContext$intellij_platform_configurationStore_impl$1.invokeSuspend(ComponentStoreImpl.kt:655)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedKt.resumeCancellable(Dispatched.kt:447)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:25)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:161)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.configurationStore.ComponentStoreImpl.commitComponentsOnEdt$intellij_platform_configurationStore_impl(ComponentStoreImpl.kt:657)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents.saveSettingsSavingComponentsAndCommitComponents$intellij_platform_configurationStore_impl(ComponentStoreWithExtraComponents.kt:80)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents$saveSettingsSavingComponentsAndCommitComponents$1.invokeSuspend(ComponentStoreWithExtraComponents.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:238)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.kt:116)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:80)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:54)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:36)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at com.intellij.configurationStore.StoreUtil$Companion.saveSettings(storeUtil.kt:45)
at com.intellij.configurationStore.StoreUtil$Companion.saveSettings$default(storeUtil.kt:41)
at com.intellij.configurationStore.StoreUtil$Companion.saveDocumentsAndProjectSettings(storeUtil.kt:58)
at com.intellij.configurationStore.StoreUtil.saveDocumentsAndProjectSettings(storeUtil.kt)
at org.jetbrains.idea.svn.actions.CleanupWorker.execute(CleanupWorker.java:46)
at org.jetbrains.idea.svn.SvnVcs.lambda$cleanup17copies$2(SvnVcs.java:211)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:309)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Thank you
Note: In fact now any new project I'm trying to open is off-the-screen...
请先登录再写评论。
Hello,
Could you please check the issue with IDEA 2020 EAP: https://www.jetbrains.com/idea/nextversion/#section=windows ?
Same story:
Logs:
any solution to bypass this as I'm currently blocked to open any new projects ?? (apart from removing everything intellij-related from my computer and reinstalling from scratch)
Hi! I filed a new issue to investigate this problem: https://youtrack.jetbrains.com/issue/IDEA-236029
Could you provide a sample project where the problem persists? And also a "workspace" folder from under "config" directory: https://intellij-support.jetbrains.com/hc/en-us/articles/206544519
You can attach them directly to the issue mentioned above. Thank you.
Hello! I was having the same Issue and I found a way to bypass it:
Hello @Arseniy Nisnevich
Sorry but I don't have an example project to reproduce it. I had to fully reinstall Intellij as I was blocked and currently the issue is not comming back.
Steps from @Juandiego Torres didn't work for me.
English is not my native language, so please forgive me if I can't express it clearly
中文说明如下:
I had the same problem and found an easy way to solve it - but it requires multiple screens: I changed the configuration to 'Duplicate these displays' and that collected all windows, also the windows that were off the screen. After switching back to 'extend' I was able to continue working as usual.
Hope it helps!
All the above did not work or was too complicated for me.
I did this, Fix 4: I moved the mouse up, to move the screen up until it was visible again.
You find the coordinates of your screen in window.state.xml.
Fix 4 – Move Option 2
Hi. Sorry for the inconvenience. The version 2020.3 will include some fixes that may solve the problem. Additionally, I hope we'll be able to work on this more closely in a couple of weeks.
I think I found a different workaround: shift + right click on the idea's icon on the taskbar and then click "Maximize" in the context menu. This has brought the window back to my laptop's screen.
I had the same issue with IntelliJ CE 2020.3 Beta today. Build #IC-203.5784.10 on Windows. Trying to arrange windows by right-clicking the taskbar and choosing cascade windows or by maximizing IntelliJ didn't help. The window showed up again after I started another projected and then switched to the original one using File -> Open Recent.
Please upvote https://youtrack.jetbrains.com/issue/IDEA-236029 and https://youtrack.jetbrains.com/issue/IDEA-251589.
@Dgkuznetsov94 You have just saved my days. Thanks man. In my case only one specific project was not opening. Meanwhile, I was attaching it in another possible-open-project. I really thought the problem was my project. Then, after see the logs (idea.log) I saw the issue about frame.
@Dgkuznetsov94 Thanks a lot homie. The fact it took me 30 minutes of googling to find this is why I hate software development.
Achim Goetz 's solution worked for me, although I didn't use "Move", but instead, I used "Maximize" option.
I tried opening IntelliJ IDEA 2020.3 this week and had this same problem happen. I didn't want to delete my workspace so I tried @...'s solution followed by @...'s solution and @...'s additional solution of "Maximize"!
Thank you!
Arrange your windows side by side:
Windows Key + arrow right moves your current window to the right, but also lets you select another one for the left side.
Then select the IntelliJ window and you're back in business.
Arranging the window side by side solved the problem. You need to have open at least one window (Notepad, Browser, whatever is visible) and put this window with WindowsKey + arrow right to the side, then you will see the other windows as an option to put it beside it. Chose the "invisible" Intellij Window, after that it is "unblocked" and usually remains unblocked.
I noticed that this happens when I switch from my "Home-Office" environment (one big 32" Monitor) to our office (two smaller 24" Monitor). Somehow Intellij window manager memorizes my single monitor as a third monitor and tries to display it there. I think this information could be helpful to find the bug for the developers.
Similar issue with IntelliJ 2022.1.
C:\Users\USER\AppData\Local\JetBrains\IntelliJIdea2022.1\log\idea.log
I found an exception in idea.log, which might be relevant:
2022-11-01 11:49:08,450 [ 30401] SEVERE - #c.i.o.w.i.WindowInfoImpl - Frame bounds are invalid: java.awt.Rectangle[x=0,y=-1784,width=1920,height=1105]
java.lang.Throwable: Frame bounds are invalid: java.awt.Rectangle[x=0,y=-1784,width=1920,height=1105]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
at com.intellij.openapi.wm.impl.FrameInfoHelperKt.updateFrameInfo(FrameInfoHelper.kt:105)
at com.intellij.openapi.wm.impl.FrameInfoHelper.updateAndGetInfo(FrameInfoHelper.kt:64)
at com.intellij.openapi.wm.impl.ProjectFrameBounds.getActualFrameInfoInDeviceSpace(ProjectFrameBounds.kt:25)
at com.intellij.ide.RecentProjectsManagerBase.updateProjectInfo(RecentProjectsManagerBase.kt:625)
at com.intellij.ide.RecentProjectsManagerBase.access$updateProjectInfo(RecentProjectsManagerBase.kt:82)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appClosing(RecentProjectsManagerBase.kt:763)
at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:639)
at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:617)
at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:391)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:373)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:34)
at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:180)
at com.sun.proxy.$Proxy35.appClosing(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:642)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:622)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:611)
at com.intellij.openapi.application.ex.ApplicationEx.exit(ApplicationEx.java:75)
at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.quitApp(CloseProjectWindowHelper.kt:66)
at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.windowClosing(CloseProjectWindowHelper.kt:44)
at com.intellij.openapi.wm.impl.ProjectFrameHelper$2.windowClosing(ProjectFrameHelper.java:232)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.Window.processWindowEvent(Window.java:2099)
at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
at java.desktop/java.awt.Window.processEvent(Window.java:2058)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2793)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:119)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
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)
2022-11-01 11:49:08,454 [ 30405] SEVERE - #c.i.o.w.i.WindowInfoImpl - IntelliJ IDEA 2022.1 Build #IU-221.5080.210
2022-11-01 11:49:08,454 [ 30405] SEVERE - #c.i.o.w.i.WindowInfoImpl - JDK: 11.0.14.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-11-01 11:49:08,454 [ 30405] SEVERE - #c.i.o.w.i.WindowInfoImpl - OS: Windows 10
After you select "Move", tap some arrow keys on the keyboard and it will come straight into focus.