Commit 844a9d6
committed
EyeTracker: wrap call to getASTStructureElement() in runReadAction()
This should fix the sporadic RuntimeExceptionWithAttachments exception
in CodeGRITS plugin that happens on some projects when running eye
tracker.
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments:
Read access is allowed from inside read-action only (see Application.runReadAction());
If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction ;
see https://jb.gg/ij-platform-threading for details
[...]
at trackers.EyeTracker.getASTStructureElement(EyeTracker.java:450)
at trackers.EyeTracker.lambda$processRawData$1(EyeTracker.java:306)
This fix is based on the https://stackoverflow.com/q/76809649 and
the discussion in issue #17 .1 parent 5a28ae1 commit 844a9d6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
0 commit comments