sporadic ConcurrentModificationException #39
Labels
No labels
Do
Ideas
blocked / paused
bug
code improvement
critical
documentation
duplicate
feature
in progress
low
need
normal
research
spec change
ui
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lisp/lyk#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On startup, a ConcurrentModificationException happens sporadically. It is caused by
tildeExpand()called by the startup Lisp code, which in turn calls a subprocess. Like sometimes seen in other contexts, the subprocess IO handling is flaky and causes this Exception. This happens more often under Linux than macOS.changed the description
marked this issue as related to #2
Interestingly, the issue is (more or less?) avoided by a
Thread.sleep(5)inbi_run_program()before considering the subprocess finished and the reader/writer threads done and reaping the results. So, I think I understand the problem now.While a 5 ms delay is not very much in the context of running an external program (and thus bearable enough), it isn't the right way to handle this. That would be letting the threads come to a real close and thus be definitely safe of any
ConcurrentModificationException. How this is done is the thing to find out.