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
Access is allowed from event dispatch thread only. #251
Comments
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
"ApplicationImpl pooled thread 301" prio=0 tid=0x0 nid=0x0 runnable
"RMI TCP Connection(1403)-127.0.0.1" prio=0 tid=0x0 nid=0x0 runnable "RMI TCP Accept-0" prio=0 tid=0x0 nid=0x0 runnable "java.exe" prio=0 tid=0x0 nid=0x0 runnable "Netty Builtin Server 2" prio=0 tid=0x0 nid=0x0 runnable "BaseDataReader: error stream of fsnotifier64.exe" prio=0 tid=0x0 nid=0x0 runnable "BaseDataReader: output stream of fsnotifier64.exe" prio=0 tid=0x0 nid=0x0 runnable "fsnotifier64.exe" prio=0 tid=0x0 nid=0x0 runnable "Netty Builtin Server 1" prio=0 tid=0x0 nid=0x0 runnable "AWT-Windows" prio=0 tid=0x0 nid=0x0 runnable "Attach Listener" prio=0 tid=0x0 nid=0x0 runnable "Signal Dispatcher" prio=0 tid=0x0 nid=0x0 runnable "main" prio=0 tid=0x0 nid=0x0 runnable "JobScheduler FJ pool 5/7" prio=0 tid=0x0 nid=0x0 waiting on condition "JobScheduler FJ pool 6/7" prio=0 tid=0x0 nid=0x0 waiting on condition "JobScheduler FJ pool 3/7" prio=0 tid=0x0 nid=0x0 waiting on condition "JobScheduler FJ pool 2/7" prio=0 tid=0x0 nid=0x0 waiting on condition "JobScheduler FJ pool 1/7" prio=0 tid=0x0 nid=0x0 waiting on condition "JobScheduler FJ pool 0/7" prio=0 tid=0x0 nid=0x0 waiting on condition "ApplicationImpl pooled thread 302" prio=0 tid=0x0 nid=0x0 waiting on condition "RMI RenewClean-[127.0.0.1:12987]" prio=0 tid=0x0 nid=0x0 waiting on condition "RMI Scheduler(0)" prio=0 tid=0x0 nid=0x0 waiting on condition "GC Daemon" prio=0 tid=0x0 nid=0x0 waiting on condition "RMI Reaper" prio=0 tid=0x0 nid=0x0 waiting on condition "BaseDataReader: error stream of java.exe" prio=0 tid=0x0 nid=0x0 waiting on condition "BaseDataReader: output stream of java.exe" prio=0 tid=0x0 nid=0x0 waiting on condition "Batik CleanerThread" prio=0 tid=0x0 nid=0x0 waiting on condition "MarlinRenderer Disposer" prio=0 tid=0x0 nid=0x0 waiting on condition "TimerQueue" prio=0 tid=0x0 nid=0x0 waiting on condition "AWT-Shutdown" prio=0 tid=0x0 nid=0x0 waiting on condition "Periodic tasks thread" prio=0 tid=0x0 nid=0x0 waiting on condition "ObjectCleanerThread" prio=0 tid=0x0 nid=0x0 waiting on condition "Java2D Disposer" prio=0 tid=0x0 nid=0x0 waiting on condition "Finalizer" prio=0 tid=0x0 nid=0x0 waiting on condition "Reference Handler" prio=0 tid=0x0 nid=0x0 waiting on condition |
the plugin will raise this error sometime.. |
Got this error too. It happens consistently on large enough files, can't find any specific reproduction steps. First noticed after last release. |
Exceptions like this happens when i trying to use AceJump after that. |
This exception also happens at the same conditions. |
I haven't done Swing development in some time, but I think one of these functions can be used to run the AceJump code on the event dispatch thread (EDT): EventQueue.invokeAndWait(runnable)
EventQueue.invokeLater(runnable) Here are some links about the EDT & why it is necessary: |
@eviljoe Yes, this is essentially the reason for the issue. We are using these functions, except for certain circumstances. Will push a fix shortly, thanks for the links. |
What about the fix? Makes it unusable for me currently, would have to restart PhpStorm every n Minutes. |
bugsystem info
bug info
Details: Current thread: Thread[ApplicationImpl pooled thread 40,4,Idea Thread Group] 1732645557
; dispatch thread: false; isDispatchThread(): false
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 1142458111
java.lang.Throwable: Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:162)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1087)
at com.intellij.openapi.editor.impl.view.EditorView.assertIsReadAccess(EditorView.java:600)
at com.intellij.openapi.editor.impl.view.EditorView.offsetToLogicalPosition(EditorView.java:155)
at com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1441)
at org.acejump.search.AceUtilKt.canIndicesBeSimultaneouslyVisible(AceUtil.kt:124)
at org.acejump.label.Tagger.canBeShortened(Tagger.kt:194)
at org.acejump.label.Tagger.compact(Tagger.kt:176)
at org.acejump.label.Tagger.markAndMapTags(Tagger.kt:157)
at org.acejump.label.Tagger.markOrScrollToNextOccurrence(Tagger.kt:148)
at org.acejump.label.Tagger.markOrJump(Tagger.kt:68)
at org.acejump.search.Finder.tag(Finder.kt:132)
at org.acejump.search.Finder.search(Finder.kt:102)
at org.acejump.search.Finder.search$default(Finder.kt:96)
at org.acejump.search.Finder$skimThenSearch$1.invoke(Finder.kt:84)
at org.acejump.search.Finder$skimThenSearch$1.invoke(Finder.kt:28)
at org.acejump.control.Trigger.invoke(Trigger.kt:29)
at org.acejump.control.Trigger.invoke(Trigger.kt:12)
at org.acejump.control.Trigger$invoke$$inlined$runAsync$1.run(promise.kt:189)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Following exceptions happened soon after this one, most probably they are induced.
2019-04-03T10:29:48.438
Access is allowed from event dispatch thread only.
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue@7e7bb6ac
Current thread: Thread[ApplicationImpl pooled thread 40,4,Idea Thread Group] 1732645557
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 1142458111
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1128)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1117)
at com.intellij.openapi.editor.impl.ScrollingModelImpl.assertIsDispatchThread(ScrollingModelImpl.java:164)
at com.intellij.openapi.editor.impl.ScrollingModelImpl.getVisibleArea(ScrollingModelImpl.java:108)
at org.acejump.search.AceUtilKt.getScreenHeight(AceUtil.kt:190)
at org.acejump.search.AceUtilKt.canIndicesBeSimultaneouslyVisible(AceUtil.kt:127)
at org.acejump.label.Tagger.canBeShortened(Tagger.kt:194)
at org.acejump.label.Tagger.compact(Tagger.kt:176)
at org.acejump.label.Tagger.markAndMapTags(Tagger.kt:157)
at org.acejump.label.Tagger.markOrScrollToNextOccurrence(Tagger.kt:148)
at org.acejump.label.Tagger.markOrJump(Tagger.kt:68)
at org.acejump.search.Finder.tag(Finder.kt:132)
at org.acejump.search.Finder.search(Finder.kt:102)
at org.acejump.search.Finder.search$default(Finder.kt:96)
at org.acejump.search.Finder$skimThenSearch$1.invoke(Finder.kt:84)
at org.acejump.search.Finder$skimThenSearch$1.invoke(Finder.kt:28)
at org.acejump.control.Trigger.invoke(Trigger.kt:29)
at org.acejump.control.Trigger.invoke(Trigger.kt:12)
at org.acejump.control.Trigger$invoke$$inlined$runAsync$1.run(promise.kt:189)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) |
Also "Read access ....." (in newest plugin release-version)
|
Hi, maybe it will help: IntelliJ IDEA 2019.1.2 (Ultimate Edition) AceJump v3.5.5
|
Sure love this plugin but I can't use it due to this error. If I had the technical chops, I'd try to fix it myself. Till then I'll have to wait for an update. |
AceJump: 3.5.6 Slightly different stacktrace (if I've correctly checked the previous comments):
|
This issue should have been fixed in cc: @ianwixon @leechor @h0tk3y @jossnaz @Skorpionos @jornetsimon (from duplicate threads) |
Access is allowed from event dispatch thread only.
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue@4cbdc0b4
Current thread: Thread[ApplicationImpl pooled thread 304,4,Idea Thread Group] 1516384825
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 2134933417
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1123)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1112)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:151)
at com.intellij.openapi.editor.impl.RangeHighlighterImpl.registerInTree(RangeHighlighterImpl.java:363)
at com.intellij.openapi.editor.impl.RangeHighlighterImpl.(RangeHighlighterImpl.java:73)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:115)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:166)
at org.acejump.search.Finder.createTextHighlight(Finder.kt:127)
at org.acejump.search.Finder.paintTextHighlights(Finder.kt:115)
at org.acejump.search.Finder.paintTextHighlights$default(Finder.kt:111)
at org.acejump.search.JumpMode$Companion.setMode(JumpMode.kt:26)
at org.acejump.search.JumpMode$Companion.reset(JumpMode.kt:47)
at org.acejump.search.Jumper.reset(Jumper.kt:102)
at org.acejump.control.Handler$clear$1.invoke(Handler.kt:68)
at org.acejump.control.Handler$clear$1.invoke(Handler.kt:36)
at org.acejump.search.AceUtilKt.applyTo(AceUtil.kt:25)
at org.acejump.control.Handler.clear(Handler.kt:68)
at org.acejump.control.Handler.reset(Handler.kt:160)
at org.acejump.control.Handler.repaintTagMarkers(Handler.kt:130)
at org.acejump.search.Finder.tag(Finder.kt:138)
at org.acejump.search.Finder.access$tag(Finder.kt:29)
at org.acejump.search.Finder$search$$inlined$runAsync$1.run(promise.kt:290)
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)
The text was updated successfully, but these errors were encountered: