GUI Guider-bug about keyboard?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GUI Guider-bug about keyboard?

ソリューションへジャンプ
2,934件の閲覧回数
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 件の賞賛
返信
1 解決策
2,898件の閲覧回数
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 件の賞賛
返信
1 返信
2,899件の閲覧回数
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 件の賞賛
返信