[X] I have checked for similar bug reports and could not find any.
[X] I have tested and confirmed that this is an issue in an official branded build.
Describe the bug
I just finished installing and opening up Inochi2D for the first time, attempted to import a KRA, and immediately crashed.
Reproduction
I opened Inochi2D
I clicked 'Import'
I clicked 'Import KRA'
the crash report popped up telling me to come here and give the crashdump info
System Architecture
x86_64
Operating System
Windows
Version
0.8.4
Logs
Click to expand!
```
// === Args State ===
=== Exception ===
core.exception.ArrayIndexError@C:\hostedtoolcache\windows\dc\ldc2-1.36.0\x64\ldc2-1.36.0-windows-multilib\bin\..\import\std\range\primitives.d(2505): index [0] is out of bounds for array of length 0
----------------
0x00007FF6938A8323 in ImGuiInputTextState_GetSelectionStart
0x00007FF6938A8054 in ImGuiInputTextState_GetSelectionStart
0x00007FF6938A7B6D in ImGuiInputTextState_GetSelectionStart
0x00007FF69389B911 in ImGuiInputTextState_GetSelectionStart
0x00007FF693889065 in ImGuiInputTextState_GetSelectionStart
0x00007FF69388AA22 in ImGuiInputTextState_GetSelectionStart
0x00007FF69388ACF5 in ImGuiInputTextState_GetSelectionStart
0x00007FF693832CB2 in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe)
0x00007FF69383229A in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe)
0x00007FF693831F5E in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe)
0x00007FF69375D620 in igImAbs_Float
0x00007FF6936E3713
0x00007FF6936E20EF
0x00007FF6936EFA1F
0x00007FF6937BD8FE in ImGuiDockNode_IsSplitNode
0x00007FF6937BD6E1 in ImGuiDockNode_IsSplitNode
0x00007FF69388FE45 in ImGuiInputTextState_GetSelectionStart
0x00007FF69388FAFB in ImGuiInputTextState_GetSelectionStart
0x00007FF69388FDA6 in ImGuiInputTextState_GetSelectionStart
0x00007FF69394C100 in ImGui_ImplOpenGL3_Shutdown
0x00007FF9D33B257D in BaseThreadInitThunk
0x00007FF9D546AA48 in RtlUserThreadStart
```
@kiggicat I can't reproduce the issue in version 0.8.5 on Mac. Can you try it in 0.8.5? This bug might be related to issue #366, but it may have been fixed in version 0.8.5.
Validations
Describe the bug
I just finished installing and opening up Inochi2D for the first time, attempted to import a KRA, and immediately crashed.
Reproduction
System Architecture
x86_64
Operating System
Windows
Version
0.8.4
Logs
Click to expand!
``` // === Args State === === Exception === core.exception.ArrayIndexError@C:\hostedtoolcache\windows\dc\ldc2-1.36.0\x64\ldc2-1.36.0-windows-multilib\bin\..\import\std\range\primitives.d(2505): index [0] is out of bounds for array of length 0 ---------------- 0x00007FF6938A8323 in ImGuiInputTextState_GetSelectionStart 0x00007FF6938A8054 in ImGuiInputTextState_GetSelectionStart 0x00007FF6938A7B6D in ImGuiInputTextState_GetSelectionStart 0x00007FF69389B911 in ImGuiInputTextState_GetSelectionStart 0x00007FF693889065 in ImGuiInputTextState_GetSelectionStart 0x00007FF69388AA22 in ImGuiInputTextState_GetSelectionStart 0x00007FF69388ACF5 in ImGuiInputTextState_GetSelectionStart 0x00007FF693832CB2 in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe) 0x00007FF69383229A in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe) 0x00007FF693831F5E in pure nothrow @nogc @safe mir.numeric.mir_find_root_result!(real).mir_find_root_result mir.numeric.findRootImpl(real, real, real, real, real, real, uint, uint, scope real delegate(real) pure nothrow @nogc @safe, scope bool delegate(real, real) pure nothrow @nogc @safe) 0x00007FF69375D620 in igImAbs_Float 0x00007FF6936E3713 0x00007FF6936E20EF 0x00007FF6936EFA1F 0x00007FF6937BD8FE in ImGuiDockNode_IsSplitNode 0x00007FF6937BD6E1 in ImGuiDockNode_IsSplitNode 0x00007FF69388FE45 in ImGuiInputTextState_GetSelectionStart 0x00007FF69388FAFB in ImGuiInputTextState_GetSelectionStart 0x00007FF69388FDA6 in ImGuiInputTextState_GetSelectionStart 0x00007FF69394C100 in ImGui_ImplOpenGL3_Shutdown 0x00007FF9D33B257D in BaseThreadInitThunk 0x00007FF9D546AA48 in RtlUserThreadStart ```Additional Context
No response