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

[BUG] Segmentation fault when trying to use "Attempt full repair" #243

Closed
2 tasks done
rilysh opened this issue Apr 25, 2023 · 7 comments
Closed
2 tasks done

[BUG] Segmentation fault when trying to use "Attempt full repair" #243

rilysh opened this issue Apr 25, 2023 · 7 comments
Labels
Bug Something isn't working Needs verification Needs to be verified whether fixed or not
Milestone

Comments

@rilysh
Copy link

rilysh commented Apr 25, 2023

Validations

  • I have checked for similar bug reports and could not find any.
  • I have tested and confirmed that this is an issue in an official branded build.

Describe the bug

After creating a new model and adding things like node, mask, composite, etc. when I click on "Attempt full repair" Inochi Creator crashes with segfault. I'm using v0.7.4.1.

Opening Inochi in GDB doesn't seem like it gave any relevant information, however, it crashes when calling the describeUndo function.

Thread 1 "inochi-creator" received signal SIGSEGV, Segmentation fault.
0x00005555554f8785 in creator.actions.node.NodeMoveAction.describeUndo() ()

Reproduction

  1. Open Inochi Creator and create a new project.
  2. Add things like Node, Mask, or any other one to that puppet.
  3. Go to the "tools" section and click on "Attempt full repair".

System Architecture

x86_64

Operating System

Linux

Version

v0.7.4.1

Logs

No response

Additional Context

No response

@rilysh rilysh added Bug Something isn't working Triage PR/Issue needs to be triaged. labels Apr 25, 2023
@LunaTheFoxgirl LunaTheFoxgirl added this to the 0.8 milestone Apr 25, 2023
@LunaTheFoxgirl LunaTheFoxgirl removed the Triage PR/Issue needs to be triaged. label Apr 25, 2023
@LunaTheFoxgirl
Copy link
Member

Seems like I can't reproduce the issue in nightly builds, could you test one of the builds here and see if the issue persists in that?
https://github.com/Inochi2D/inochi-creator/releases/tag/nightly

@LunaTheFoxgirl LunaTheFoxgirl added the Needs verification Needs to be verified whether fixed or not label Apr 25, 2023
@LunaTheFoxgirl LunaTheFoxgirl moved this from Todo to In Progress in Inochi2D Tasklist Apr 25, 2023
@rilysh
Copy link
Author

rilysh commented Apr 25, 2023

Hi, I tried the nightly build but for some reason, I got a segfault and this time it seems like an issue with GPU(?)

GLInfo:
	4.2 (Core Profile) Mesa 20.3.5
	Intel Open Source Technology Center
	Mesa DRI Intel(R) HD Graphics 2500 (IVB GT1)
	4.20
	gls=gl33
[1]    2389 segmentation fault  ./inochi-creator

I don't have a discrete GPU....totally rely on iGPU. Here's GDB

Thread 1 "inochi-creator" received signal SIGSEGV, Segmentation fault.
0x0000555555760467 in ImGui::FindBlockingModal(ImGuiWindow*) ()

@LunaTheFoxgirl
Copy link
Member

This is an unrelated issue to GPU stuff, it's imgui related.

@rilysh
Copy link
Author

rilysh commented Apr 25, 2023

Yeah, I noticed, but it showed iGPU version info and then segfault, so mentioned to make the whole "phrase" quite complete.
Also the backtrace (if needed)

#0  0x0000555555760467 in ImGui::FindBlockingModal(ImGuiWindow*) ()
#1  0x000055555576253d in ImGui::Begin(char const*, bool*, int) ()
#2  0x000055555573347b in igBegin ()
#3  0x00005555555c9f63 in creator.widgets.incBegin(const(char)*, bool*, bindbc.imgui.bind.imgui.ImGuiWindowFlags) (name=0x7ffff62660c0 "Viewport###Viewport", 
    pOpen=0x7ffff62561dc, flags=56) at source/creator/widgets/package.d:37
#4  0x000055555564053d in creator.panels.Panel.onBeginUpdate() (
    this=0x7ffff6256180) at source/creator/panels/package.d:40
#5  0x00005555556404cb in creator.panels.viewport.ViewportPanel.onBeginUpdate()
    (this=0x7ffff6256180) at source/creator/panels/viewport.d:45
#6  0x000055555565670d in creator.panels.Panel.update() (this=0x7ffff6256180)
    at source/creator/panels/package.d:120
#7  0x0000555555656830 in creator.panels.incUpdatePanels() ()
    at source/creator/panels/package.d:158
#8  0x000055555573242c in app.incUpdate() () at source/app.d:135
#9  0x0000555555732383 in D main (args=...) at source/app.d:97

@LunaTheFoxgirl
Copy link
Member

Ah, related to this ImGui issue, I think ocornut/imgui#5401

@LunaTheFoxgirl
Copy link
Member

LunaTheFoxgirl commented Apr 25, 2023

Might be fixed by 0472500, I've triggered a forced nightly build https://github.com/Inochi2D/inochi-creator/actions/runs/4797030562 once this is done could you check if that solves the issue?

@rilysh
Copy link
Author

rilysh commented Apr 25, 2023

Looks like after that patch everything is stable right now. I also tried "Attempt full repair" which also worked fine in nightly build. Thank you!

@github-project-automation github-project-automation bot moved this from In Progress to Done in Inochi2D Tasklist Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs verification Needs to be verified whether fixed or not
Projects
Status: Done
Development

No branches or pull requests

2 participants