Crash while adding an event

When adding a trigger to a slider event, if I select “EDITED” as the trigger, Squareline Studio crashes.
Clearly, “EDITED” is not a valid attribute for this controller object, but the scenario should be handled gracefully instead of crashing the application.

What do you want to achieve?

Bug-free creation of events

What have you tried so far?

Noting the trigger that causes the crash

Screenshot or video

Start full rebuild: Connected to the server
<color=#5599FF>SERVER: Client connected from 127.0.0.1:63785
<color=#5599FF>SERVER: Load screen_global:ui_Screen1
<color=#5599FF>SERVER: EXCEPTION BB SEND (eval): type object ‘LV_EVENT’ has no attribute ‘EDITED’
<color=#5599FF>SERVER: Traceback (most recent call last):
<color=#5599FF>SERVER: (internal line 479), in Slider6_eventhandler
<color=#5599FF>SERVER: AttributeError: type object ‘LV_EVENT’ has no attribute ‘EDITED’
<color=#FF5555>ERROR: Error: LVGL crashed
Please check the console
Command not send: PKT_IN_TYPE_SCRIPT
Try to start lvgl server on port: 20085
<color=#5599FF>SERVER: Listening on 127.0.0.1:20085
<color=#5599FF>SERVER: Free memory: 536034304
<color=#5599FF>SERVER: Temp dir: C:/Users/geoff/AppData/Local/Temp/SquareLine Kft_/SquareLine_Studio
Start full rebuild: Connected to the server
<color=#5599FF>SERVER: Client connected from 127.0.0.1:63786
<color=#5599FF>SERVER: Load screen_global:ui_Screen1
Play mode active
<color=#5599FF>SERVER: Traceback (most recent call last):
<color=#5599FF>SERVER: (internal line 313), in Slider6_eventhandler
<color=#5599FF>SERVER: AttributeError: type object ‘LV_EVENT’ has no attribute ‘EDITED’
Start full rebuild: Undo
<color=#FF5555>ERROR: Error: LVGL crashed
Please check the console

Others

  • **SquareLine Studio version: 1.5.2
  • **Operating system: Windows 11 Pro
  • **Target hardware: 7" ESP32 HMI lvgl display

Hi, which LVGL version are you using? This could be a version compatibility issue where the event types available in the UI don’t match what’s actually supported in your LVGL version.