Invalid windowstate
could make the app invisible
#52
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
We use
electron-store
to store data such as the coordinates of the Arduino IDE window position on the user's screen. For example:The window is positioned at the stored coordinates when it is opened in subsequent IDE sessions. This is done blindly without any validation of whether the coordinates are within the actual dimensions of the display.
🐛 If the stored window coordinates are at a position outside the current display's dimensions, the IDE window will not be visible to the user.
To reproduce
workspaces
key and all the data it contained.ⓘ This is done for the sake of making the demonstration easier to perform, but the fault will also occur if the data in the
workspaces
contains invalid coordinate data.isMaximized
tofalse
windowstate.x
to9999
windowstate.y
to9999
🐛 The IDE window is not visible.
Expected behavior
Arduino IDE window is always placed at a location within the active display dimensions on startup.
Arduino IDE version
Original report
Arduino Pro IDE 0.1.4
Last verified with
e17472e
Operating system
Windows 10
Additional context
It is not known how the invalid configuration is produced in real world usage. It might occur if the user changes their display configuration in a way that makes a previously valid window coordinate no longer valid. That might either be caused by a reduction of the display resolution:
Originally reported at arduino/arduino-pro-ide#444 (comment)
Workaround
Delete the file at the following location (where
<username>
is the username of your operating system account):Issue checklist
The text was updated successfully, but these errors were encountered: