newspeaklanguage / newspeak

Newspeak is a live object-capability language in the Smalltalk tradition
https://newspeaklanguage.org/
Other
132 stars 11 forks source link

IDE freezes expanding class #121

Open bpieber opened 1 year ago

bpieber commented 1 year ago

Happy New Year!

I think I found a bug. To reproduce:

  1. Open https://newspeaklanguage.org/samples/primordialsoup.html?snapshot=HopscotchWebIDE.vfuel
  2. Search for Workspace using the search bar. Two classes are found.
  3. Expand one of classes using >. The class expands.
  4. Try to expand the second class. The IDE freezes.

It does not matter which of the two classes I expand first.

I tried it on Chrome and Safari on macOS 12.6.2. Both behave the same.

Is there a way to halt execution and enter a debugger?

gbracha commented 1 year ago

Thanks for reporting this. I believe this is an outgrowth of the recent changes, which transfer IDE crashes to the debugger rather than exiting the VM. Unfortunately, in some cases that process enters an infinite loop instead, and things hang - which is even worse than before. This being a web application, there's no way to interrupt an infinite loop.

However, in most cases we do get the desired behavior, which is a huge win. I'll have to debug the remaining situations. I hope to reach a much more stable situation in the coming weeks.