-
Notifications
You must be signed in to change notification settings - Fork 220
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
Deadlock in UI #42
Comments
Thanks for the report. I can reproduce this, but it may take some time to debug it. It looks like this might be caused by updating UI elements from the RISCV thread through the observer interface. It should be fixable by making the observers schedule a UI update rather than doing it. |
As predicted this came from updating UI on the RISCV thread and was solved by using EventQueue.invokeLater Likely other buttons have similar issues so I will need to go through and make sure they also are fixed.
This should be fixed now. Would you please confirm? I'll still need to check other areas to see prevent any other similar problems so I'll leave this open until I check on them. |
So there indeed was a similar problem with the run button. If you set up your program with every line breakpointed and then hit run a bunch it will end up throwing a null-pointer exception. I fixed that in 6afb286, so I'll close this once you confirm the problem is fixed for you. |
Sorry for my late response. All my programs run while stepping fine, so it seems to be fixed. Thanks! |
Great. Thanks for helping squash this bug. |
I have the problem, that when I'm debugging programs with single stepping, often the UI freezes. I use oracle Java 8 on Windows 10 with 64 bit.
The problem seems to be, that when a jump occures and the text segment window needs to be updated, it fairly often happens. An example program is:
Sorry, maybe it could be smaller, it is important, that the text segment window need to scroll.
To trigger the problem you need to single step through the program. It runs fine with normal execution.
I have no full java develpoment environment available, but I connected jvisualvm, an got the following output of a thread dump:
Hopefully, you can fix this. If you need further information, let me know.
The text was updated successfully, but these errors were encountered: