Hello
I can’t open in SquareLine v1.5.4 a project that was created (and that works) in v1.5.3.
Screenshot or video
Others
- SquareLine Studio version: v1.5.4
Hello
I can’t open in SquareLine v1.5.4 a project that was created (and that works) in v1.5.3.
_ui_screen_delete function removed in SLS 1.5.4 causing screen_unloaded issuesDescription:
I encountered the same issue as others when using SLS version 1.5.4. Previously, I used a custom event for screen_unloaded that called the _ui_screen_delete function. However, since version 1.5.4, this function appears to have been completely removed.
According to the release notes:
Fixed incorrect code in SLS export helpers.c for _ui_screen_delete: updated to…
However, upon checking the codebase, it seems that the function was deleted entirely from helpers.c rather than updated.
Workaround:
Currently, my workaround is to create a screen_unloaded event that calls my own custom delete function instead.
Additional Notes:
When updating from SLS 1.5.3 to 1.5.4, the update process did not seem to apply correctly. My existing SLS project continued to open and build screens normally. However, after performing a clean reinstall of version 1.5.4, the issue became reproducible — exactly as reported by my colleague who installed 1.5.4 fresh.
Environment:
Expected Behavior:
_ui_screen_delete should still be available (or properly replaced) for screen cleanup operations.
Actual Behavior:
The function has been removed, leading to missing delete handling and potential screen lifecycle issues.
Hi, you are correct; the _ui_screen_delete function was intentionally removed in SLS 1.5.4. We implemented a new custom screen destroy function that is called instead of the standard LVGL one. This change was made to ensure all variables are properly nullified upon screen deletion, which prevents potential freezes caused by invalid variable values.
However, based on feedback from you and other users regarding the issues this removal has caused, we will be reintroducing the _ui_screen_delete function and implementing related fixes in the next version.
As a temporary workaround to get your project working immediately in version 1.5.4, please go to your previous SLS 1.5.3 installation directory. From there, navigate to the ...\[SLS 1.5.3 Install Path]\lvgl\[Your_LVGL_VERSION]\objects\functions\ folder and copy the deletescreen.elojb file. You will then need to paste this file into the exact same location within your new SLS 1.5.4 installation directory.
We apologize for the inconvenience this has caused and appreciate your detailed feedback.