-
Notifications
You must be signed in to change notification settings - Fork 241
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
RARS freezes when printing and reading simultaneously (Keyboard and Display MMIO Simulator) #82
Comments
I have investigated and found that this is due to the tool locking the register and memory lock while also using the synchronized method. This allows the main simulator to hold the lock, the awt thread starts handling an keypress and enters the method and waits on the lock, the main simulator then tries to update via the method and gets stuck on the synchronized method. rars/src/rars/tools/KeyboardAndDisplaySimulator.java Lines 678 to 690 in 0bca658
This was probably became an issue as a result of 43652d8, but its possible it existed before that. |
The freezing should be fixed now. Check out the release for a build including the fix. Let me know if it is working correctly for you. Thanks for the report. Your example program was very helpful to quickly reproducing this. |
Awesome, it's working correctly for me now. You're welcome. Thanks for the quick fix! |
I'm glad the fix worked for you. |
@TheThirdOne Thanks again! |
I do plan on making a new release before the new semester. I have been working on supporting 64 bit RISC-V and want to get that included into the release for the next semester. |
Perfect! Thank you. |
I just published the release (https://github.com/TheThirdOne/rars/releases/tag/v1.5). |
Hello!
If a character is typed in the keyboard section of the Keyboard and Display MMIO Simulator while a character is printed to the display, RARS becomes unresponsive.
Below is a program that can demonstrate the issue. It loops moving the cursor to row zero, column zero, then printing '0' indefinitely.
To reproduce the issue, follow these steps:
RARS will freeze after one or two keypresses.
The text was updated successfully, but these errors were encountered: