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

Hard crash on object deletion #11186

Closed
2 tasks done
craigcabrey opened this issue Aug 26, 2023 · 4 comments
Closed
2 tasks done

Hard crash on object deletion #11186

craigcabrey opened this issue Aug 26, 2023 · 4 comments

Comments

@craigcabrey
Copy link

craigcabrey commented Aug 26, 2023

Description of the bug

When removing an object from the plate, PrusaSlicer reliably crashes.

Project file & How to reproduce

  1. Open project file
  2. Right click model > delete (or use delete keyboard shortcut)
  3. Crash with following log message (last one before getting a shell back):
[2023-08-26 12:09:45.535571] [0x00007f0df45db640] [info]    Exporting G-code finished Resident memory: 520MB; Shared memory: 125MB; Private memory: 395MB; Peak memory usage: 520MB
[2023-08-26 12:09:48.198577] [0x00007f0e80af7d40] [info]    Undo / Redo snapshot taken: Delete Selected Objects, Undo / Redo stack memory: 0MB Resident memory: 520MB; Shared memory: 125MB; Private memory: 395MB; Peak memory usage: 520MB
/usr/include/c++/11.3.0/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = Slic3r::ModelObject*; _Alloc = std::allocator<Slic3r::ModelObject*>; std::vector<_Tp, _Alloc>::reference = Slic3r::ModelObject*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Example Crash.zip

Screenshot from 2023-08-26 12-13-36

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.6.0 Flatpak

Operating system

Fedora Silverblue 38

Printer model

Ender 3 S1 (Klipper)

@craigcabrey craigcabrey changed the title Segmentation fault on object deletion Hard crash on object deletion Aug 26, 2023
@PCGamesF1Tech
Copy link

PCGamesF1Tech commented Oct 19, 2023

I can confirm this bug under Linux Mint 21.2 Cinnamon before and LMDE6 recently, the slicer window just closes (2.6.1 flatpak).
Adding any other object before deleting (DEL key here) seems to help.

@chmurli
Copy link

chmurli commented Oct 27, 2023

Hello,
I had same crash (so annoying) for many days.
Finally I have found that this crash is because 'auto-center parts ' feature!

So just disable "auto-center parts" feature in preferences.
I guess application wants to center object(s) but the list is empty.
Hope it will be fixed soon the proper way ;).

@KeDL01
Copy link

KeDL01 commented Nov 13, 2023

Same issue on linux mint 21.2 Cinnamon with version 2.6.1. Can confirm disabling "auto center parts" fixes the bug.

@lukasmatena
Copy link
Collaborator

Fixed in 2.7.0-rc1. Closing.

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

5 participants