Starting program: /tmp/demo_listbox 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui listbox 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=16 valid=TRUE builtin=FALSE ascent=15 descent=4 units_per_EM=2048
[wlgui] window created: "wlgui listbox demo" 640x480
[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: 640x480 stride=2560
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
(gdb) bt
#0  0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#1  0x00007ffff7f55a6e in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#2  0x00007ffff7f5628e in wl_proxy_destroy () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#3  0x000055555564ec35 in ?? ()
#4  0x0000000000000000 in ?? ()






Starting program: /tmp/demo_listbox 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui listbox 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=16 valid=TRUE builtin=FALSE ascent=15 descent=4 units_per_EM=2048
[wlgui] window created: "wlgui listbox demo" 640x480
[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: 640x480 stride=2560
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
(gdb) bt full
#0  0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#1  0x00007ffff7f55a6e in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#2  0x00007ffff7f5628e in wl_proxy_destroy () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#3  0x0000555555652ba5 in DESTROY (this=0x7ffff7f9c880, vmt=0x0) at wayland_client_core.pas:476
No locals.
#4  0x0000555555654b58 in DESTROY (this=0x7ffff7f9c880, vmt=0x1) at wayland_protocol.pas:1216
No locals.
#5  0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#6  0x0000555555600e17 in SYSUTILS_$$_FREEANDNIL$formal ()
No symbol table info available.
#7  0x000055555565b678 in DESTROY (this=0x7ffff7fac3a0, vmt=0x1) at wlgui_cursor.pas:300
No locals.
#8  0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#9  0x0000555555600e17 in SYSUTILS_$$_FREEANDNIL$formal ()
No symbol table info available.
#10 0x0000555555636898 in DESTROY (this=0x7ffff7f75040, vmt=0x1) at wlgui_events.pas:628
No locals.
#11 0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#12 0x000055555562dfa8 in DESTROY (this=0x7ffff7f8d1c0, vmt=0x1) at wlgui_context.pas:57
No locals.
#13 0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#14 0x0000555555600e17 in SYSUTILS_$$_FREEANDNIL$formal ()
No symbol table info available.
#15 0x000055555562e91a in DESTROY (this=0x7ffff7f9c280, vmt=0x1) at wlgui_app.pas:139
        I = 0
#16 0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#17 0x00005555555b039a in main () at demo_listbox.pas:220
No locals.

















Starting program: /tmp/demo_listbox 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui listbox 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=16 valid=TRUE builtin=FALSE ascent=15 descent=4 units_per_EM=2048
[wlgui] window created: "wlgui listbox demo" 640x480
[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: 640x480 stride=2560
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
(gdb) bt full
#0  0x00007ffff7f5bf98 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#1  0x00007ffff7f55a6e in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#2  0x00007ffff7f57c92 in wl_proxy_marshal_array_flags () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#3  0x00007ffff7f58272 in wl_proxy_marshal_flags () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
No symbol table info available.
#4  0x00007ffff7a6a91d in wl_cursor_theme_destroy () from /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0
No symbol table info available.
#5  0x000055555565b1f5 in DESTROY (this=0x7ffff7f9c840, vmt=0x1) at wlgui_cursor.pas:222
No locals.
#6  0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#7  0x0000555555600e17 in SYSUTILS_$$_FREEANDNIL$formal ()
No symbol table info available.
#8  0x00005555556368b2 in DESTROY (this=0x7ffff7f75040, vmt=0x1) at wlgui_events.pas:642
No locals.
#9  0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#10 0x000055555562dfa8 in DESTROY (this=0x7ffff7f8d1c0, vmt=0x1) at wlgui_context.pas:57
No locals.
#11 0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#12 0x0000555555600e17 in SYSUTILS_$$_FREEANDNIL$formal ()
No symbol table info available.
#13 0x000055555562e91a in DESTROY (this=0x7ffff7f9c280, vmt=0x1) at wlgui_app.pas:139
        I = 0
#14 0x00005555555c1cfb in SYSTEM$_$TOBJECT_$__$$_FREE ()
No symbol table info available.
#15 0x00005555555b039a in main () at demo_listbox.pas:220
No locals.








Starting program: /tmp/demo_listbox 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui listbox 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=16 valid=TRUE builtin=FALSE ascent=15 descent=4 units_per_EM=2048
[wlgui] window created: "wlgui listbox demo" 640x480
[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: 640x480 stride=2560
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded
An unhandled exception occurred at $00005555555E57FD:
EConvertError: Invalid argument index in format "Selected #%d: "%s""
  $00005555555E57FD
  $00005555555E6693
  $00005555555E6BA0
  $00005555555AF568  UPDATESTATUS,  line 30 of demo_listbox.pas
  $00005555555AF63E  ONLISTCHANGE,  line 38 of demo_listbox.pas
  $0000555555638CC4  SETITEMINDEX,  line 144 of wlgui_listbox.pas
  $0000555555639275  DOMOUSEUP,  line 272 of wlgui_listbox.pas
  $000055555563772F  DISPATCHMOUSEUP,  line 262 of wlgui_widget.pas
  $0000555555637705  DISPATCHMOUSEUP,  line 258 of wlgui_widget.pas
  $00005555555AFC00  ONMOUSEUP,  line 103 of demo_listbox.pas
  $0000555555630E49  WLRECVMOUSEUP,  line 617 of wlgui_window.pas
  $0000555555635CB1  WL_POINTER_BUTTON,  line 423 of wlgui_events.pas
  $0000555555656F49  WL_POINTER_BUTTON_INTF,  line 1812 of wayland_protocol.pas
  $00007FFFF7C7B056

[Inferior 1 (process 47536) exited with code 0331]
(gdb) bt full
❌ No stack.