Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900340 - media-gfx/prusaslicer-2.5.0-r2: crashes when attempting to slice
Summary: media-gfx/prusaslicer-2.5.0-r2: crashes when attempting to slice
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on: 904820
Blocks:
  Show dependency tree
 
Reported: 2023-03-08 08:34 UTC by Caleb Jorden
Modified: 2023-04-25 12:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Test stl file that demonstrates issue (test.stl,1.45 KB, model/stl)
2023-03-08 08:34 UTC, Caleb Jorden
Details
emerge --info (emerge--info.txt,6.13 KB, text/plain)
2023-03-08 08:35 UTC, Caleb Jorden
Details
The patch that fixed the issue (from the PrusaSlicer repo - single commit extracted) (prusaslicer-2.5.0_new-compilers-fix.patch,4.92 KB, patch)
2023-03-08 08:36 UTC, Caleb Jorden
Details | Diff
ebuild that does not exhibit the issue (same as -r2, but with additional patch) (prusaslicer-2.5.0-r3.ebuild,2.01 KB, text/plain)
2023-03-08 08:36 UTC, Caleb Jorden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Jorden 2023-03-08 08:34:23 UTC
Created attachment 856774 [details]
Test stl file that demonstrates issue

PrusaSlicer crashes when attempting to slice an STL file into a gcode file.

Steps to reproduce:

- emerge prusaslicer (can be stable or ~amd64)
- open a terminal and run the following two commands
# Known to reproduce with a default config and my config, the next step may not be required
mv ~/.config/PrusaSlicer ~/.config/orig-PrusaSlicer
prusa-slicer
- In Prusa Slicer that comes up:

 - Select Finish on the wizard that pops up
 - Press "Ctrl-I" to import an STL
 - Choose the STL that is attached (any STL may work - this is a small bracket I designed that I was trying to slice and print)
 - Click on "Slice now" button.

Window should disappear.  In the terminal window, you will see something like this:

------------------
(prusa-slicer:4431): Gtk-CRITICAL **: 13:33:10.000: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
01:33:10 PM: Debug: window wxTreeCtrl(0x55c6948e4bb0, ) lost focus even though it didn't have it
01:33:10 PM: Debug: window wxTreeCtrl(0x55c6948e4bb0, ) lost focus even though it didn't have it
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/unique_ptr.h:445: typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp, _Dp>::operator*() const [with _Tp = Slic3r::SpiralVase; _Dp = std::default_delete<Slic3r::SpiralVase>; typename std::add_lvalue_reference<_Tp>::type = Slic3r::SpiralVase&]: Assertion 'get() != pointer()' failed.
Aborted
------------------

- I found that this issue is described on PrusaSlicer's github issue 9128 (I can't include links presently, as this is a new bugzilla account)

- I applied the patch from PrusaSlicer's github with the commit has of 4b686af12db49500205ca15038fb7d651ccc4295

Added to ebuild, compiled, and now slicing works (and the resulting gcode prints on my Ender).

(attaching additional files in updates)
Comment 1 Caleb Jorden 2023-03-08 08:35:18 UTC
Created attachment 856784 [details]
emerge --info
Comment 2 Caleb Jorden 2023-03-08 08:36:01 UTC
Created attachment 856786 [details, diff]
The patch that fixed the issue (from the PrusaSlicer repo - single commit extracted)
Comment 3 Caleb Jorden 2023-03-08 08:36:31 UTC
Created attachment 856788 [details]
ebuild that does not exhibit the issue (same as -r2, but with additional patch)
Comment 4 Caleb Jorden 2023-04-22 09:40:49 UTC
2.5.1 and 2.5.2 continue to exhibit the same issue for me.  The same patch continues to fix it.
Comment 5 Larry the Git Cow gentoo-dev 2023-04-22 11:03:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca86126321ec717b0bc04009904515dbc447e4e4

commit ca86126321ec717b0bc04009904515dbc447e4e4
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2023-04-22 10:59:42 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2023-04-22 11:03:23 +0000

    media-gfx/prusaslicer: fixed crash during slicing
    
    thanks to Caleb Jorden for the fix
    
    Bug: https://bugs.gentoo.org/900340
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../files/prusaslicer-2.5.2-fix-slicing.patch      | 76 ++++++++++++++++++++++
 ...er-2.5.2.ebuild => prusaslicer-2.5.2-r1.ebuild} |  1 +
 2 files changed, 77 insertions(+)
Comment 6 Caleb Jorden 2023-04-25 12:27:11 UTC
Confirmed fixed in PrusaSlicer-2.5.2-r1, as referenced by Miroslav Šulc.  Thanks!