Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try to fix crash upon quick slice. #2801

commit 1dc63071ed8ff58fae63e5f38fe8633150d107db 1 parent d998d97
@alexrj authored
Showing with 12 additions and 5 deletions.
  1. +11 −5 lib/Slic3r/GUI/MainFrame.pm
  2. +1 −0  lib/Slic3r/GUI/Plater.pm
View
16 lib/Slic3r/GUI/MainFrame.pm
@@ -170,15 +170,21 @@ sub _init_menubar {
$fileMenu->AppendSeparator();
my $repeat;
$self->_append_menu_item($fileMenu, "Q&uick Slice…\tCtrl+U", 'Slice file', sub {
- $self->quick_slice;
- $repeat->Enable(defined $Slic3r::GUI::MainFrame::last_input_file);
+ wxTheApp->CallAfter(sub {
+ $self->quick_slice;
+ $repeat->Enable(defined $Slic3r::GUI::MainFrame::last_input_file);
+ });
});
$self->_append_menu_item($fileMenu, "Quick Slice and Save &As…\tCtrl+Alt+U", 'Slice file and save as', sub {
- $self->quick_slice(save_as => 1);
- $repeat->Enable(defined $Slic3r::GUI::MainFrame::last_input_file);
+ wxTheApp->CallAfter(sub {
+ $self->quick_slice(save_as => 1);
+ $repeat->Enable(defined $Slic3r::GUI::MainFrame::last_input_file);
+ });
});
$repeat = $self->_append_menu_item($fileMenu, "&Repeat Last Quick Slice\tCtrl+Shift+U", 'Repeat last quick slice', sub {
- $self->quick_slice(reslice => 1);
+ wxTheApp->CallAfter(sub {
+ $self->quick_slice(reslice => 1);
+ });
});
$repeat->Enable(0);
$fileMenu->AppendSeparator();
View
1  lib/Slic3r/GUI/Plater.pm
@@ -683,6 +683,7 @@ sub rotate {
my $self = shift;
my ($angle, $axis) = @_;
+ # angle is in degrees
$axis //= Z;
my ($obj_idx, $object) = $self->selected_object;

2 comments on commit 1dc6307

@wolfmanjm

tried it, still crashes..

*** Error in `perl': corrupted double-linked list: 0x0d1df340 ***
Aborted (core dumped)

It does actually seem to get further in the process though before the core dump.

@alexrj
Owner

:-(

Please sign in to comment.
Something went wrong with that request. Please try again.