Skip to content

Entrance Graph#6801

Open
Pepe20129 wants to merge 12 commits into
HarbourMasters:developfrom
Pepe20129:entrance_graph
Open

Entrance Graph#6801
Pepe20129 wants to merge 12 commits into
HarbourMasters:developfrom
Pepe20129:entrance_graph

Conversation

@Pepe20129

@Pepe20129 Pepe20129 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

A graph showing all randomizer regions (with colors based on their areas) with full entrance rando support, visible logic & options.

Build Artifacts

@serprex

serprex commented Jun 23, 2026

Copy link
Copy Markdown
Member
soh.elf: /home/erpre/s/ShipWright/build/_deps/imgui-src/imgui_widgets.cpp:791: bool ImGui::InvisibleButton(const char *, const ImVec2 &, ImGuiButtonFlags): Assertion `size_arg.x != 0.0f && size_arg.y != 0.0f' failed.

Thread 1 "soh.elf" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff729a363 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#2  0x00007ffff723e7d0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff7225681 in __GI_abort () at abort.c:77
#4  0x00007ffff7226700 in __libc_message_impl (vma_name=vma_name@entry=0x7ffff73b4883 "glibc: assert", fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:138
#5  0x00007ffff7236532 in __libc_message_wrapper (vmaname=0x7ffff73b4883 "glibc: assert", fmt=<optimized out>) at ../include/stdio.h:203
#6  __assert_fail (assertion=0x555558d06299 "size_arg.x != 0.0f && size_arg.y != 0.0f", file=0x555558d06202 "/home/erpre/s/ShipWright/build/_deps/imgui-src/imgui_widgets.cpp", line=<optimized out>, function=<optimized out>) at assert.c:37
#7  0x0000555558a2028d in ImGui::InvisibleButton (str_id=0x555558c8e6f3 "graph_canvas", size_arg=..., flags=1) at /home/erpre/s/ShipWright/build/_deps/imgui-src/imgui_widgets.cpp:791
#8  0x0000555557ef78ee in Graph::Draw (this=0x55555d32d9c0, canvasSize=..., canvasPos=...) at /home/erpre/s/ShipWright/soh/soh/Graph/Graph.cpp:295
#9  0x0000555557dca5db in EntranceTrackerGraphWindow::DrawElement (this=0x55555d32d950) at /home/erpre/s/ShipWright/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker_graph.cpp:87
#10 0x0000555557dca378 in EntranceTrackerGraphWindow::Draw (this=0x55555d32d950) at /home/erpre/s/ShipWright/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker_graph.cpp:17
#11 0x0000555558830795 in Ship::Gui::DrawMenu (this=0x55555a6e0ce0) at /home/erpre/s/ShipWright/libultraship/src/ship/window/gui/Gui.cpp:241
#12 0x0000555558830c73 in Ship::Gui::StartDraw (this=0x55555a6e0ce0) at /home/erpre/s/ShipWright/libultraship/src/ship/window/gui/Gui.cpp:295
#13 0x0000555558700b04 in Fast::Fast3dWindow::DrawAndRunGraphicsCommands (this=0x55555a6e0c40, commands=0x555559c90858 <gGfxPools+592920>, mtxReplacements=std::unordered_map with 0 elements) at /home/erpre/s/ShipWright/libultraship/src/fast/Fast3dWindow.cpp:208
#14 0x0000555557f8bbcd in RunCommands (Commands=0x555559c90858 <gGfxPools+592920>, mtx_replacements=std::vector of length 1, capacity 1 = {...}) at /home/erpre/s/ShipWright/soh/soh/OTRGlobals.cpp:1797
#15 0x0000555557f8bf48 in Graph_ProcessGfxCommands (commands=0x555559c90858 <gGfxPools+592920>) at /home/erpre/s/ShipWright/soh/soh/OTRGlobals.cpp:1852
#16 0x000055555824794d in RunFrame () at /home/erpre/s/ShipWright/soh/src/code/graph.c:496
#17 0x000055555824776c in Graph_ThreadEntry (arg0=0x0) at /home/erpre/s/ShipWright/soh/src/code/graph.c:520
#18 0x000055555824993e in Main (arg=0x0) at /home/erpre/s/ShipWright/soh/src/code/main.c:142
#19 0x0000555558249546 in main (argc=1, argv=0x7fffffffe6c8) at /home/erpre/s/ShipWright/soh/src/code/main.c:69

got a crash testing it out on basic rando, also got crash trying to open graph on file select

building in debug mode

@Pepe20129

Copy link
Copy Markdown
Contributor Author

@serprex I'm not sure why the size was 0 but now there's a check before drawing the graph, hopefully that fixes it.

@serprex

serprex commented Jun 29, 2026

Copy link
Copy Markdown
Member

works now. settings should have an alpha slider for window's transparency. graph should focus on entrance used when taking entrance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants