-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
table: unable to display table with more than 64 columns #251
Comments
This is due to a limitation of imgui not of giu. From imgui_tables.cpp // Sanity checks
IM_ASSERT(columns_count > 0 && columns_count <= IMGUI_TABLE_MAX_COLUMNS && "Only 1..64 columns allowed!"); So imgui asserts and you get a SIGABRT: abort |
you're right. I see an issue in imgui repo: ocornut/imgui#3572 |
from https://github.com/ocornut/imgui imgui_demog.cpp: if (ImGui::BeginTable("table_scrolly", 3, flags, outer_size))
{
ImGui::TableSetupScrollFreeze(0, 1); // Make top row always visible
ImGui::TableSetupColumn("One", ImGuiTableColumnFlags_None);
ImGui::TableSetupColumn("Two", ImGuiTableColumnFlags_None);
ImGui::TableSetupColumn("Three", ImGuiTableColumnFlags_None);
ImGui::TableHeadersRow();
// Demonstrate using clipper for large vertical lists
ImGuiListClipper clipper;
clipper.Begin(1000);
while (clipper.Step())
{
for (int row = clipper.DisplayStart; row < clipper.DisplayEnd; row++)
{
ImGui::TableNextRow();
for (int column = 0; column < 3; column++)
{
ImGui::TableSetColumnIndex(column);
ImGui::Text("Hello %d,%d", column, row);
}
}
}
ImGui::EndTable(); |
|
as an alternative, we can update the internal so, to sum up:
@AllenDang should we focus on working around this issue or just wait until the upstream issue gets solved? |
@gucio321 IMO, let's wait upstream issue gets solved. I've been suffered much to apply custom patches, for now the power-saving patch. I have to do line-by-line diff and merge each time upgrading imgui. |
@AllenDang upstream issue is solved now |
@AllenDang upstream issue has been closed. I think it may be fixed after cimgui migration |
@gucio321 Yes, after migration this should be fixed. |
This works on matter, if it doesn't compile it a separated issue |
good to know! can you point me at a working commit? |
this issue was related to old imgui. master uses cimgui-go so relatively new imgui where 64 column tables works. THats why I said master works. (but may not compile, however it does for me) |
Thank you |
Hi there,
in refer to OpenDiablo2/HellSpawner#335 (comment) I'd like to show the situation, we can notice the behavior:
when I create a large table, e.g.:
full code
i'm getting the following panic:
The text was updated successfully, but these errors were encountered: