Screens does not render in V 1.5.1 for 9.2.2

What do you want to achieve?

I want to get the SquareLine Studio 1.5.1 working properly.

What have you tried so far?

Switched to 9.1.0 - everything works there



Also works for 9.2.2 on Windows 10.

Screenshot or video



The Errors tab is clear

Others

  • SquareLine Studio version:
    1.5.1
  • Operating system:
    Linux ROSA FRESH 13
  • Target hardware:
    Any

Hi, it would help us troubleshoot this issue if you could send us the log file. You can find this at: Troubleshooting | SquareLine Studio

If you prefer not to post the log file directly in the forum, please feel free to email it to us at: forum@squareline.io

Based on your report, it sounds like there might be a widget configuration conflict occurring in SquareLine Studio 1.5.1 when used with LVGL 9.2.2, while it works correctly with 9.1.0.

Once we receive your log file, we’ll be able to identify exactly what’s causing the screens not to render and provide you with a specific solution.

Sent Player.log in zip file to forum@squareline.io.

Hi, based on the log file, I can see that SquareLine Studio version 1.5.1 is having trouble starting the LVGL (Light and Versatile Graphics Library) server. The key issue appears to be a permission problem.

The error that keeps repeating is:

Exception when trying Start server: Method: Start, Exception: An error occurred trying to start process '/home/alex/SquareLine_1_5_1/SquareLine_Studio_Data/../lvgl/lvgl_v9_2_2/server/micropython' with working directory '/home/alex/SquareLine_1_5_1/SquareLine_Studio_Data/../lvgl/lvgl_v9_2_2/server/'. Отказано в доступе

The Russian text “Отказано в доступе” translates to “Access denied”, which indicates this is a file permission issue. The program is trying to execute the micropython interpreter in the LVGL server directory, but it doesn’t have the necessary permissions.

To fix this problem, you should:

  1. Make the micropython executable file executable by running:

    chmod +x /home/alex/SquareLine_1_5_1/SquareLine_Studio_Data/../lvgl/lvgl_v9_2_2/server/micropython
    
  2. If that doesn’t work, you might need to apply permissions to the entire directory:

    chmod -R 755 /home/alex/SquareLine_1_5_1/lvgl
    
  3. Alternatively, you could try running SquareLine Studio with elevated privileges:

    sudo /path/to/SquareLine_Studio
    

    Though running graphical applications with sudo is generally not recommended as a permanent solution.

The project itself seems to have loaded correctly (it detected your fonts and assets), but the LVGL server that handles the rendering and preview can’t start due to these permission issues.

Really? I’ll know now (sarcasm).

Well, of course! You forgot to set the execution flags on the lvgl_v9_2_2/server/micropythonfile when building the distribution, and the program is to blame?! :man_facepalming:
Add to setup.sh it an impossible task to add a couple of lines to check and set the flags? Well, yes, a disclaimer, apparently…
I’ve lost so many days waiting for you to solve this problem!!! And the fix takes 15 seconds. It’s faster than turning on the computer! Bravo, technical support!

Hi, thank you for bringing this issue to our attention. You’re absolutely right - this is a confirmed bug in version 1.5.1 where the execution flags weren’t properly set on the lvgl_v9_2_2/server/micropython file during distribution builds.
We apologize for the frustration and time lost while dealing with this problem. Your feedback is valuable, and we’ve already implemented a fix that will be included in the next release. The solution was indeed straightforward as you mentioned - just adding proper permission checks and flag setting in the setup process.