First of all, thank you for this great library!
ListView
When using the ListView widget with big amount of items, it renders the items randomly as shown below, index should go from 0 to 20000.
When scrolling and selecting random items, the app prints a lot of Gtk-CRITICAL errors, and suddenly crashes.


(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_top: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_bottom: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_start: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_end: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_top: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_bottom: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_start: assertion 'GTK_IS_WIDGET (widget)' failed
(process:107203): Gtk-CRITICAL **: 19:47:09.427: gtk_widget_set_margin_end: assertion 'GTK_IS_WIDGET (widget)' failed
Steps to reproduce:
- Build and run the included
owl_listview_test.nim example
- Scroll the list vigorously, and select random items.
- Observe printed errors and see that items changed their order.
- Continue stress testing, to see it eventually crash.
ListBox
When I try the same with ListBox, items are being properly shown, but it takes 100% CPU usage (from single core), and the whole app becomes unusable.
Included examples:
owl_list_widgets.zip
First of all, thank you for this great library!
ListView
When using the ListView widget with big amount of items, it renders the items randomly as shown below, index should go from 0 to 20000.
When scrolling and selecting random items, the app prints a lot of
Gtk-CRITICALerrors, and suddenly crashes.Steps to reproduce:
owl_listview_test.nimexampleListBox
When I try the same with ListBox, items are being properly shown, but it takes 100% CPU usage (from single core), and the whole app becomes unusable.
Included examples:
owl_list_widgets.zip