hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.89k stars 671 forks source link

Crash calling `get_all_items` w/table columns #2027

Open Atlamillias opened 1 year ago

Atlamillias commented 1 year ago

DearPyGui v1.8.0 Python 3.11.1 on Windows 10, 11

If a table column item is created via add_table_column, following up with get_all_items() ends the program. This happens even if the table column item has been deleted before the call.

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

wndw_id  = dpg.generate_uuid()
table_id = dpg.generate_uuid()
print(f"window id: {wndw_id}, table_id: {table_id}")

with dpg.window(tag=wndw_id):
    table = dpg.add_table(tag=table_id)

print(dpg.get_all_items())  # [wndw_id, table_id]

dpg.add_table_column(parent=table)

print("Goodbye cruel world.")
print(dpg.get_all_items())

# We're already dead, but why not try?
dpg.show_viewport()
while dpg.is_dearpygui_running():
    dpg.render_dearpygui_frame()
hoffstadt commented 1 year ago

Fixed in next release.