Starting program: /tmp/demo_memo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui memo demo
[wlgui] EventManager created
[xkb] libxkbcommon loaded
[xkb] context created
[wlgui] Wayland initialized
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=20 valid=TRUE builtin=FALSE ascent=19 descent=5 units_per_EM=2048
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=14 valid=TRUE builtin=FALSE ascent=13 descent=3 units_per_EM=2048
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=12 valid=TRUE builtin=FALSE ascent=11 descent=3 units_per_EM=2048
[wlgui] window created: "wlgui memo demo" 700x500
[events] seat name: default
[events] seat capabilities=3
[cursor] libwayland-cursor loaded
[cursor] theme loaded: "" size=24
[cursor] cursor surface created
[events] pointer attached
[events] keyboard attached
[wlgui] 2 buffers created: 700x500 stride=2800

Program received signal SIGSEGV, Segmentation fault.
0x00005555555b9cce in fpc_ansistr_assign ()
(gdb) bt full
#0  0x00005555555b9cce in fpc_ansistr_assign ()
No symbol table info available.
#1  0x00005555555af5d0 in ONMEMOCHANGE (SENDER=0x7ffff7f75100) at demo_memo.pas:29
No locals.
#2  0x000055555563c46b in NOTIFYCHANGE (this=0x7ffff7f75100) at wlgui_memo.pas:193
No locals.
#3  0x000055555563c327 in SETTEXT (this=0x7ffff7f75100, S=0x7ffff7f9cb20) at wlgui_memo.pas:159
No locals.
#4  0x000055555563c299 in SETTEXT (this=0x7ffff7f75100, 
    S=0x55555565e1a0 'Добро пожаловать в многострочный редактор!\n\nНаберите текст здесь. Работают:\n  - Стрелки: вверх/вниз/влево/вправ'...)
    at wlgui_memo.pas:146
No locals.
#5  0x00005555555afd92 in main () at demo_memo.pas:148
No locals.



Starting program: /tmp/demo_memo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui memo demo
[wlgui] EventManager created
[xkb] libxkbcommon loaded
[xkb] context created
[wlgui] Wayland initialized
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=20 valid=TRUE builtin=FALSE ascent=19 descent=5 units_per_EM=2048
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=14 valid=TRUE builtin=FALSE ascent=13 descent=3 units_per_EM=2048
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=12 valid=TRUE builtin=FALSE ascent=11 descent=3 units_per_EM=2048
[wlgui] window created: "wlgui memo demo" 700x500
[events] seat name: default
[events] seat capabilities=3
[cursor] libwayland-cursor loaded
[cursor] theme loaded: "" size=24
[cursor] cursor surface created
[events] pointer attached
[events] keyboard attached
[wlgui] 2 buffers created: 700x500 stride=2800
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded

Program received signal SIGSEGV, Segmentation fault.
0x000055555563d162 in SPLITLINE (this=0x7ffff7f75100) at wlgui_memo.pas:485
485       Before := L.SubString(0, FCursorCol);
(gdb) bt full
#0  0x000055555563d162 in SPLITLINE (this=0x7ffff7f75100) at wlgui_memo.pas:485
        L = 0x0
        BEFORE = 0x7ffff7f75100
        AFTER = 0x7ffff7f75100
#1  0x000055555563d8ca in DOKEYDOWN (this=0x7ffff7f75100, E=...) at wlgui_memo.pas:621
No locals.
#2  0x000055555563afee in DISPATCHKEYDOWN (this=0x7ffff7fac2e0, E=...) at wlgui_widget.pas:296
        result = false
        DISPATCHKEYDOWN = false
        RESULT = false
        F_FOCUSED = 0x7ffff7f75100
#3  0x00005555555afa47 in ONKEYDOWN (SENDER=0x7ffff7f7d140, E=...) at demo_memo.pas:106
No locals.
#4  0x0000555555633ce9 in WLRECVKEYDOWN (this=0x7ffff7f9c640, E=...) at wlgui_window.pas:642
No locals.
#5  0x0000555555639031 in WL_KEYBOARD_KEY (this=0x7ffff7f9c940, AWLKEYBOARD=0x7ffff7f9c900, ASERIAL=6036, ATIME=4090464363, AKEY=28, ASTATE=1)
    at wlgui_events.pas:550
        E = {KEYSYM = 65293, CODEPOINT = 13, SCANCODE = 28, MODIFIERS = {SHIFT = false, CTRL = false, ALT = false, SUPER = false, 
            CAPSLOCK = false, NUMLOCK = true}, PRESSED = true, TIME = 4090464363}
#6  0x0000555555658579 in WL_KEYBOARD_KEY_INTF (ADATA=0x7ffff7f9c918, AWL_KEYBOARD=0x5555557f3480, ASERIAL=6036, ATIME=4090464363, AKEY=28, 
    ASTATE=1) at wayland_protocol.pas:1893
        AINTF = 0x7ffff7f9c960
#7  0x00007ffff7c7b056 in ?? () from /usr/lib/x86_64-linux-gnu/libffi.so.8
No symbol table info available.
#8  0x00007ffff7c78f1c in ?? () from /usr/lib/x86_64-linux-gnu/libffi.so.8
No symbol table info available.
#9  0x00007ffff7c79fe5 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.8
No symbol table info available.
#10 0x00007ffff7f5a8d8 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#11 0x00007ffff7f560dc in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#12 0x00007ffff7f5745b in wl_display_dispatch_queue_pending () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#13 0x00007ffff7f5789d in wl_display_dispatch_queue_timeout () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#14 0x00007ffff7f5797f in wl_display_dispatch_queue () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
