Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash calling get_all_items w/table columns #2027

Open
Atlamillias opened this issue Feb 4, 2023 · 1 comment
Open

Crash calling get_all_items w/table columns #2027

Atlamillias opened this issue Feb 4, 2023 · 1 comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@Atlamillias
Copy link
Contributor

Atlamillias commented Feb 4, 2023

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()
@Atlamillias Atlamillias added state: pending not addressed yet type: bug bug labels Feb 4, 2023
@Atlamillias Atlamillias changed the title Segfault calling get_all_items w/table columns Crash calling get_all_items w/table columns Apr 7, 2023
@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels May 30, 2023
@hoffstadt
Copy link
Owner

Fixed in next release.

SamuMazzi pushed a commit to SamuMazzi/DearPyGui that referenced this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug
Projects
None yet
Development

No branches or pull requests

2 participants