[Cuis-dev] Bug fix: Image freezes when inspecting objects with huge #printOn: results
Nicolás Papagna Maldonado
nicolas.papagna at gmail.com
Sun Oct 29 14:28:03 PDT 2023
Hi folks,
The attached changeset fixes a bug that caused the image to freeze when
inspecting objects with huge #printOn: results.
To reproduce the error:
1. Open a workspace
2. Evaluate CompiledMethod allInstances inject: Dictionary new into: [
:dict :method | dict at: method put: method sourceCode. dict ]An
inspector will be opened on the dictionary created above
3. Click on self
4. Notice the image hangs while waiting for the #printOn: message send.
To fix this bug, I limited the time to print the selected item to 300
milliseconds and showed an appropriate error message when that happened.
LMK your thoughts.
Cheers,
Nico PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231029/046449c0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6054-CuisCore-NicolasPapagnaMaldonado-2023Oct29-18h00m-NPM.001.cs.st
Type: application/octet-stream
Size: 956 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231029/046449c0/attachment-0001.obj>
More information about the Cuis-dev
mailing list