krakjoe / ui

Cross platform UI development in PHP
Other
519 stars 39 forks source link

UI\Control::destroy() segfault #19

Closed remicollet closed 7 years ago

remicollet commented 7 years ago

When trying to destroy a used control:

[libui] /dev/shm/BUILD/libui-f56411fde197481c00ad950e1a545452d47efa55/common/control.c:76:uiFreeControl() You have a bug: You cannot destroy a uiControl while it still has a parent. (control: 0x55e1a8db1e20)
Trace/breakpoint trap (core dumped)
krakjoe commented 7 years ago

The fault is caused by libui on purpose, it triggers a breakpoint in a debugger.

remicollet commented 7 years ago

Yes, I understand this. Not critical, as ui is CLI only, but perhaps could be better to avoid dying and raise an exception instead ?