<div dir="ltr">Hi, everyone<div><br></div><div>I wanted to report a bug (which I found in unfortunately circumstances, during an exam). This can make the image freeze, and in some cases, you end up loosing your unsaved changes.</div><div><i><br></i></div><div><i>Reproducing the bug</i></div><div><br></div><div>To reproduce the bug, you can:</div><div>1. Create a class BugTests that sub-classifies TestCase</div><div>2. Make a test with the code:</div><div>    self fail.</div><div>3. Run the test, which should open the debugger since the test fails.</div><div>4. Click "Restart"</div><div>5. Click "Through"</div><div><br></div><div>The system should hang.</div><div><br></div><div><i>Research made</i></div><div><i><br></i></div><div>After making some research, I found out that the problem comes from Process>>stepToHome: context method.</div><div><br></div><div>This method basically makes the suspendedContext to step many times in a loop, until the suspendedContext and aContext "home contexts" are the same. The problem comes when suspendingContexts execution signals an Exception, in which case, suspendedContext and aContext home are never equal. Luckily, there is "a really nice if" which, long story made short, checks if an UnhandledError has been signaled, in which case, the method returns the context in which was signaled.</div><div><br></div><div>Now, there is another issue. TestCase>>fail signals a TestFailure exception, which sub-classifies Exception, but as opposed to Error, the defaultAction is not to signal an UnhnadledError, but to to open the debugger.</div><div><br></div><div>It is for this reason, that the stepToHome loop never finishes.</div><div><br></div><div><i>Quick Solution</i></div><div><i><br></i></div><div>A quick solution I found was to change TestFailure>>defaultAction to be the same that Error>>defaultAction. However, with this solution, the problem will rise again every time a Exception implements its defaultAction method doing something else.</div><div><br></div><div>I've attached the change to TestFailure.</div><div><br></div><div>I hope you find this contribution useful.</div><div><br></div><div>Cheers, Santiago</div><div><br></div><div><br></div><div><br></div><div><br></div></div>