[squeak-dev] PSA | Possible EE during Trunk updates, quickfix here

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Mar 11 21:16:59 UTC 2022

Hi all, Hi Marcel,

I am investigating different issues after installing the latest Trunk updates today, and I can reproduce this in multiple images. The error pattern is like this:

After saving the clean image and reopening it, the image fails to start up again, not showing any EEs or debuggers, but just freezing - in some cases, not even the host window showed up, and the VM allocates more and more RAM. Recovery via Cmd + dot (interrupt) impossible. It *could* play a role that I have deleted the "locale" folder on my machine because it made the docking bar menu slower?

Here is my fix to this bug: *Before* closing the image, go to Locale class>>#startUp: and comment out the "self currentPlatform: nil." line. Now you can safely save and close your image again and it will reopen correctly.

If you have already closed the image, here is another workaround: Open the image twice in parallel so that the second image will show up the warning "cannot write to change file". Instead of closing this dialog, debug its invocation via the dialog window menu and install the patch described above first before proceeding the startup phase.

@everyone I would recommend you make sure that you are not affected by the issue to avoid possible data loss before you save your image again (if you keep thousands of important notes in your image like me ...). You could do this by saving a new version of your important image and trying to open this version in a second VM instance. If this works, you are not affected. If you experience troubles, make the described patch before saving your image to the regular path again.



Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Donnerstag, 10. März 2022 17:25:32
An: squeak-dev
Betreff: [squeak-dev] PSA | Possible EE during Trunk updates, quickfix here

Hi all --

I finished committing the clean-ups around Locale and LanguageEnvironment.

Unfortunately, I overlooked an edge case concerning the load order within System-mt.1318, where "LocaleID class >> #default" was not yet installed but needed by another method in that package version. As a consequence, an EmergencyEvaluator (EE) is possible if you are using a GetTextTranslator bc. we are translating even some fixed strings that are used during MCMcmUpdater logging ... -.-"

Two possible workarounds:

A) Do not use a GetText translation, that is, close your image, rename the "locale" folder, and then restart the image to then do the update.

B) Compile this method before the update: "LocaleID class compile: 'default ^ self isoLanguage: ''en'' ' "

Our CI at https://github.com/squeak-smalltalk/squeak-app/actions is not affected. Sorry for the inconvenience.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220311/f5900f76/attachment.html>

More information about the Squeak-dev mailing list