Skip to content

Guru Meditation Error on passing the user_data to 'add_event_cb', #433

@sam0910

Description

@sam0910

Describe the bug
btn.add_event_cb(event_cb, lv.EVENT.ALL, None) is okay, but
when passing user_data, error occurs.

If you are having a problem compiling paste the build output below. (NO SCREENSHOTS)

LVGL MicroPython 
IDF version : v5.4
Machine     : Generic ESP32 module with SPIRAM with ESP32

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

If your problem is running the binding please past the code you are using below.*
I need to see ALL of the setup code exactly as it is being ran.

import lvgl as lv
import display

def event_cb(e):
    code = e.get_code()
    label = e.get_user_data()


scr = lv.screen_active()
btn = lv.button(scr)
btn.set_size(100, 50)
btn.center()

info_label = lv.label(scr)
info_label.set_text("None")

btn.add_event_cb(event_cb, lv.EVENT.ALL, info_label)
# btn.add_event_cb(event_cb, lv.EVENT.ALL, None) is okay

import task_handler
task_handler.TaskHandler()

**Exact make and model number of the MCU that you are compiling for or the firmware is running on. **

  • Make: Lilygo
  • Model: ESP32

For ESP32 MCU's The PSRAM and FLASH SPI type, quad SPI or octal SPI.

  • PSRAM: quad
  • FLASH: quad

I need to know the OS and OS version of the machine that compiled the binary. If using a VM then I need to know the OS and OS version the VM is running. (WSL == VM)

  • OS: macos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions