IDE hangs after changing "Language" preference #948
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The "Language" menu of the File > Preferences dialog now offers a selection of seven languages the Arduino IDE user interface can be localized to (#941).
🐛 In some cases, changing the "Language" preference causes the Arduino IDE to go into a hang state.
To reproduce
🐛 The IDE hangs forever in the state where the window title is "index.html" and the window contains only spinning dots:
🐛 Any unsaved changes to the sketch are lost.
Expected behavior
IDE continues to work normally after changing "Language" preference.
It is true that the user will need to restart the Arduino IDE after changing the preference anyway since the preference change will only take effect in the current window (as explained here), and even there not affect the Arduino CLI output. This is stated next to the preference ("(Reload required)"). However, the hang is not a good user experience.
Arduino IDE version
2.0.0-rc5-snapshot-6176e50
Operating system
Windows
Operating system version
10
Additional context
The fault does not occur on my Ubuntu 20.04 machine.
The fault seems to be intermittent. The hang occasionally does not occur and I have not been able to identify any specific conditions that either cause it to be consistently reproducible or consistently non-reproducible.
The fault occurs more often than not though.
Note that the issue was not introduced by #941.
I am not able to reproduce the fault when using the build from 69ac1f4 (tested by manually installing a language pack per these instructions).
The preference was broken at the next commit 112153f (#830), meaning it is not possible to test using the builds from there up to when #830 was fixed.
The fault does occur when using bc3cb0c, the commit where #830 was fixed. But this does not necessarily indicate that the bug was introduced at bc3cb0c.
The command line output printed at the time of the hang:
If I select anything from the IDE menus, this is printed:
Another issue with a similar hang state symptom, and introduced around the same time: #922
Issue checklist
The text was updated successfully, but these errors were encountered: