Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination component not connected to component tree hierarchy #147

Closed
jlecount-qadium opened this issue Jun 3, 2017 · 2 comments
Closed
Labels

Comments

@jlecount-qadium
Copy link

jlecount-qadium commented Jun 3, 2017

Unsure how to reproduce this. If I can find out more, I will report back. Here is the stack trace:

java.lang.Error: Destination component not connected to component tree hierarchy
java.lang.RuntimeException: java.lang.Error: Destination component not connected to component tree hierarchy
	at com.intellij.openapi.application.impl.LaterInvocator.invokeAndWait(LaterInvocator.java:188)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:680)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:685)
	at com.johnlindquist.acejump.KeyboardHandler.activate(KeyboardHandler.kt:64)
	at com.johnlindquist.acejump.KeyboardHandler.redoQuery(KeyboardHandler.kt:194)
	at com.johnlindquist.acejump.KeyboardHandler$resetListener$1$stopWatch$1.invoke(KeyboardHandler.kt:93)
	at com.johnlindquist.acejump.KeyboardHandler$resetListener$1$stopWatch$1.invoke(KeyboardHandler.kt:78)
	at com.johnlindquist.acejump.KeyboardHandler$resetListener$1$visibleAreaChanged$$inlined$runAsync$1.run(promise.kt:146)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Error: Destination component not connected to component tree hierarchy
	at javax.swing.SwingUtilities.convertPoint(SwingUtilities.java:184)
	at com.johnlindquist.acejump.ui.Canvas.bindToEditor(Canvas.kt:20)
	at com.johnlindquist.acejump.KeyboardHandler.configureEditor(KeyboardHandler.kt:144)
	at com.johnlindquist.acejump.KeyboardHandler.access$configureEditor(KeyboardHandler.kt:35)
	at com.johnlindquist.acejump.KeyboardHandler$startListening$1.invoke(KeyboardHandler.kt:173)
	at com.johnlindquist.acejump.KeyboardHandler.startListening(KeyboardHandler.kt:178)
	at com.johnlindquist.acejump.KeyboardHandler.access$startListening(KeyboardHandler.kt:35)
	at com.johnlindquist.acejump.KeyboardHandler$activate$1.run(KeyboardHandler.kt:65)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:303)
	at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:165)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:410)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.k(IdeEventQueue.java:827)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:655)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@breandan
Copy link
Collaborator

Thanks for reporting. This error may be caused by a late notification from the scroll listener, after the editor has been detached or backgrounded. It is attempting to paint to a component that is no longer displayed, and is unable to do so. A similar issue can occur when the scroll bar is moving and the user prematurely closes the editor tab. Good to know - I'll see if we can fix this.

@breandan breandan added the bug label Jul 4, 2017
@breandan breandan changed the title java.lang.Error: Destination component not connected to component tree hierarchy Destination component not connected to component tree hierarchy Oct 30, 2019
@breandan
Copy link
Collaborator

breandan commented Apr 4, 2021

Thanks to #353, this should be fixed in 3.7.0, but feel free to reopen if you re-encounter it.

@breandan breandan closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants