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 when closing on Linux #3964

Closed
wavexx opened this issue Mar 31, 2020 · 8 comments
Closed

Crash when closing on Linux #3964

wavexx opened this issue Mar 31, 2020 · 8 comments

Comments

@wavexx
Copy link
Contributor

wavexx commented Mar 31, 2020

Version

Current master (095062e)

Operating system type + version

Linux (Debian unstable)

Behavior

  • Open PE
  • Add a box
  • Slice
  • Attempt to quit
  • Crash with assertion failure:

../src/unix/glx11.cpp(584): assert ""xid"" failed in SetCurrent(): window must be shown

This occurs due to a call to reset_volumes() inside the GLCanvas3D destructor, which is now attempting to activate the context without a valid window.

#0  0x00007ffff65eb434 in wxGLContext::SetCurrent(wxGLCanvas const&) const ()
    at /usr/local/lib/libwx_gtk2u_gl-3.1.so.4
#1  0x000055555637bcaa in Slic3r::GUI::GLCanvas3D::_set_current() (this=0x555558501a20)
    at /home/ydelia/projects/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:5097
#2  0x0000555556369732 in Slic3r::GUI::GLCanvas3D::reset_volumes() (this=0x555558501a20)
    at /home/ydelia/projects/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:1714
#3  0x0000555556368c47 in Slic3r::GUI::GLCanvas3D::~GLCanvas3D()
    (this=0x555558501a20, __in_chrg=<optimized out>)
    at /home/ydelia/projects/PrusaSlicer/src/slic3r/GUI/GLCanvas3D.cpp:1605
#4  0x000055555648262f in Slic3r::GUI::View3D::~View3D()
    (this=0x5555584f40f0, __in_chrg=<optimized out>)
    at /home/ydelia/projects/PrusaSlicer/src/slic3r/GUI/GUI_Preview.cpp:50
#5  0x0000555556482698 in Slic3r::GUI::View3D::~View3D()
    (this=0x5555584f40f0, __in_chrg=<optimized out>)
...

@enricoturri1966

@enricoturri1966
Copy link
Collaborator

@wavexx

Could you please check if setting:

// Moves GLCanvas3DManager from being a static member of _3DScene to be a normal member of GUI_App
#define ENABLE_NON_STATIC_CANVAS_MANAGER (0 && ENABLE_2_3_0_ALPHA1)

removes the crash ?

@wavexx
Copy link
Contributor Author

wavexx commented Mar 31, 2020 via email

@enricoturri1966
Copy link
Collaborator

@wavexx

Sorry for that, my fault.
e886475 should fix the build when ENABLE_NON_STATIC_CANVAS_MANAGER is disabled.

@wavexx
Copy link
Contributor Author

wavexx commented Mar 31, 2020 via email

@enricoturri1966
Copy link
Collaborator

@wavexx
Could you please check if 1f3046f helps in removing the crash when ENABLE_NON_STATIC_CANVAS_MANAGER is enabled ?

@wavexx
Copy link
Contributor Author

wavexx commented Apr 1, 2020 via email

@enricoturri1966
Copy link
Collaborator

@wavexx
Could you please create two new separated issues for your findings so that they get processed and close this one if you consider it solved ?

@wavexx
Copy link
Contributor Author

wavexx commented Apr 1, 2020

Issue #3971 for the assertion failure.
Rebuilding on the current head made the second go away \o/
Closing this!

@wavexx wavexx closed this as completed Apr 1, 2020
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

No branches or pull requests

2 participants