GUI Guider-bug about keyboard?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GUI Guider-bug about keyboard?

Jump to solution
1,586 Views
kai-a
Contributor I

There is an issue may with the keyboard.

 

- Environment
    * OS: Windows 11 or macOS big sur
    * GUI-Guider: 1.3.1-GA
    * LVGL: v8
 
just add two screens. One of screen add a button with an event to jump to another screen, the other screen add a button with an event to jump back and a textarea. Run simulator and jump between these screens several times, and the program will crash.
 
The demo project and crash report by macOS are as follows.
0 Kudos
Reply
1 Solution
1,550 Views
zhenhualuo
NXP Employee
NXP Employee

Hi kai-a,

This issue is fixed in v1.4.0 which will be released soon, as a quick fix, please do the following change and try again. 

lv_textarea_set_text(ui->screen_1_ta_1,"Hello World");
if (g_kb == NULL)
{
g_kb = lv_keyboard_create(ui->screen_1);
lv_obj_add_event_cb(g_kb, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(g_kb, LV_OBJ_FLAG_HIDDEN);
}
lv_keyboard_set_textarea(g_kb, ui->screen_1_ta_1);

To

lv_textarea_set_text(ui->screen_1_ta_1,"Hello World");
g_kb = lv_keyboard_create(ui->screen_1);
lv_obj_add_event_cb(g_kb, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(g_kb, LV_OBJ_FLAG_HIDDEN);
lv_keyboard_set_textarea(g_kb, ui->screen_1_ta_1);

View solution in original post

0 Kudos
Reply
1 Reply
1,551 Views
zhenhualuo
NXP Employee
NXP Employee

Hi kai-a,

This issue is fixed in v1.4.0 which will be released soon, as a quick fix, please do the following change and try again. 

lv_textarea_set_text(ui->screen_1_ta_1,"Hello World");
if (g_kb == NULL)
{
g_kb = lv_keyboard_create(ui->screen_1);
lv_obj_add_event_cb(g_kb, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(g_kb, LV_OBJ_FLAG_HIDDEN);
}
lv_keyboard_set_textarea(g_kb, ui->screen_1_ta_1);

To

lv_textarea_set_text(ui->screen_1_ta_1,"Hello World");
g_kb = lv_keyboard_create(ui->screen_1);
lv_obj_add_event_cb(g_kb, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(g_kb, LV_OBJ_FLAG_HIDDEN);
lv_keyboard_set_textarea(g_kb, ui->screen_1_ta_1);

0 Kudos
Reply