1.2.0 exp crashes with uncaught exception (out-of-range-vector) #2271

Closed
croussi opened this Issue Sep 14, 2014 · 10 comments

Projects

None yet

3 participants

@croussi
croussi commented Sep 14, 2014

I have a simple (Lego) brick that causes a crash during gcode generation (it slices without issue on earlier versions of slic3r). The error report says, in part:

Process: slic3r [38336]
Path: /Users/USER/Desktop/Slic3r.app/Contents/MacOS/slic3r
Identifier: slic3r
Version: Slic3r 1.2.0.84 (1.2.0.84)
Code Type: X86 (Native)
Parent Process: launchd [296]
Responsible: slic3r [38336]
User ID: 3727

Date/Time: 2014-09-14 11:21:14.481 -0400
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11

Crashed Thread: 13

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called
terminating with uncaught exception of type std::out_of_range: vector::_M_range_check

Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.Foundation 0x926f34cc NSIntersectionRect + 143
1 com.apple.AppKit 0x9aad3a29 -[NSView _convertRectFromSuperview:test:] + 317
2 com.apple.AppKit 0x9ac27da9 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4129
3 com.apple.AppKit 0x9ac280b6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4910
4 com.apple.AppKit 0x9ac280b6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4910
5 com.apple.AppKit 0x9ac280b6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4910
6 com.apple.AppKit 0x9ac280b6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4910
7 com.apple.AppKit 0x9ac268f0 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 290
8 com.apple.AppKit 0x9ac23c57 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3645
9 com.apple.AppKit 0x9ac0172c -[NSView displayIfNeeded] + 1414
10 com.apple.AppKit 0x9ac1f74c -[NSWindow displayIfNeeded] + 324
11 libwx_osx_cocoau_core-2.9.3.0.0.dylib 0x055384d4 wxNonOwnedWindowCocoaImpl::Update() + 36
12 libwx_osx_cocoau_core-2.9.3.0.0.dylib 0x05496251 wxNonOwnedWindow::Update() + 23

13 libwx_osx_cocoau_core-2.9.3.0.0.dylib 0x0549b320 wxWindow::Update() + 32

The config file is:

generated by Slic3r 1.2.0 on Sun Sep 14 11:26:54 2014

avoid_crossing_perimeters = 1
bed_shape = 0x0,200x0,200x200,0x200
bed_temperature = 70
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
brim_width = 0
complete_objects = 0
cooling = 1
default_acceleration = 0
disable_fan_first_layers = 1
dont_support_bridges = 1
duplicate_distance = 6
end_gcode = M104 S0 ; turn off temperature\nG28 X0 ; home X axis\nG28 Y0 ; home Y axis\nM84 ; disable motors\nM190 S0 ; wait for bed temperature to be reached
external_perimeter_extrusion_width = 0
external_perimeter_speed = 70%
external_perimeters_first = 0
extra_perimeters = 1
extruder_clearance_height = 20
extruder_clearance_radius = 20
extruder_offset = 0x0
extrusion_axis = E
extrusion_multiplier = 1
extrusion_width = 0
fan_always_on = 0
fan_below_layer_time = 60
filament_diameter = 3
fill_angle = 45
fill_density = 20%
fill_pattern = honeycomb
first_layer_acceleration = 0
first_layer_bed_temperature = 90
first_layer_extrusion_width = 200%
first_layer_height = 0.4
first_layer_speed = 30%
first_layer_temperature = 250
g0 = 0
gap_fill_speed = 20
gcode_arcs = 0
gcode_comments = 0
gcode_flavor = reprap
infill_acceleration = 0
infill_every_layers = 10
infill_extruder = 1
infill_extrusion_width = 0
infill_first = 0
infill_only_where_needed = 0
infill_speed = 100
interface_shells = 0
layer_gcode =
layer_height = 0.2
max_fan_speed = 100
min_fan_speed = 35
min_print_speed = 10
min_skirt_length = 0
notes =
nozzle_diameter = 0.4
only_retract_when_crossing_perimeters = 1
ooze_prevention = 0
output_filename_format = [input_filename_base].gcode
overhangs = 1
perimeter_acceleration = 0
perimeter_extruder = 1
perimeter_extrusion_width = 0
perimeter_speed = 75
perimeters = 3
post_process =
raft_layers = 0
resolution = 0
retract_before_travel = 2
retract_layer_change = 1
retract_length = 1
retract_length_toolchange = 10
retract_lift = 0
retract_restart_extra = 0
retract_restart_extra_toolchange = 0
retract_speed = 30
seam_position = aligned
skirt_distance = 6
skirt_height = 1
skirts = 1
slowdown_below_layer_time = 30
small_perimeter_speed = 30
solid_fill_pattern = rectilinear
solid_infill_below_area = 70
solid_infill_every_layers = 0
solid_infill_extrusion_width = 0
solid_infill_speed = 60
spiral_vase = 0
standby_temperature_delta = -5
start_gcode = ; 8" i3 & i3v 3mm ABS for .40 Hexagon 4-5-14\nG1 Z5 F50 ; lift nozzle\nG28 ; home all axes
support_material = 0
support_material_angle = 0
support_material_enforce_layers = 0
support_material_extruder = 1
support_material_extrusion_width = 0
support_material_interface_extruder = 1
support_material_interface_layers = 3
support_material_interface_spacing = 0
support_material_interface_speed = 100%
support_material_pattern = pillars
support_material_spacing = 2.5
support_material_speed = 60
support_material_threshold = 0
temperature = 250
thin_walls = 1
threads = 2
toolchange_gcode =
top_infill_extrusion_width = 0
top_solid_infill_speed = 50
top_solid_layers = 3
travel_speed = 100
use_firmware_retraction = 0
use_relative_e_distances = 0
vibration_limit = 0
wipe = 0
xy_size_compensation = 0
z_offset = 0

@lordofhyphens
Collaborator

I am pretty sure this is a duplicate of #2246, the exception raised is the same.

@croussi
croussi commented Sep 18, 2014

I missed that; thanks.
Chris

Christopher Roussi
Senior Scientist
Michigan Tech Research Institute
Ann Arbor, MI
w:734-913-6843
m:269-532-3006

On Sep 18, 2014, at 4:08 AM, Joseph Lenox notifications@github.com wrote:

I am pretty sure this is a duplicate of #2246, the exception raised is the same.


Reply to this email directly or view it on GitHub.

@lordofhyphens
Collaborator

In the meantime, turn off "avoid crossing perimeters" or use 1.1.7. So far as I can tell (testing with other models, it's that switch that's the culprit in 1.2.0 (and currently on HEAD, which is what I use).

@croussi
croussi commented Sep 18, 2014

That option was already off, when I checked. I have reverted to the stable
version for stl files that fail on 1.2.0. Thanks.

Sent from...well, you know.

On Sep 18, 2014, at 11:51 AM, Joseph Lenox notifications@github.com wrote:

In the meantime, turn off "avoid crossing perimeters" or use 1.1.7. So far
as I can tell (testing with other models, it's that switch that's the
culprit in 1.2.0 (and currently on HEAD, which is what I use).


Reply to this email directly or view it on GitHub
#2271 (comment).

@alexrj
Owner
alexrj commented Sep 21, 2014

@croussi, can you please post the full report instead of just an arbitrary part? The interesting details are missing.
Also, can the issue be reproduced with any STL file? If no, please post link to STL file as well as we need to reproduce the issue in order to fix it. Thank you for helping

@alexrj alexrj added this to the 1.2.1 milestone Sep 21, 2014
@croussi
croussi commented Sep 21, 2014

It does not do this on every STL, but I have had it fail on
several; it’s not clear what they have in common.

Here is the config file I load:
https://dl.dropboxusercontent.com/u/4495658/configSlic3r9.9i38-50mmPLA.ini

Here is the STL that fails:
https://dl.dropboxusercontent.com/u/4495658/2x4%20brick_rot.stl

I can reproduce this in the following way:

  1. start a fresh version of slic3r (v1.2.0 exp)
  2. load the referenced config file
  3. drag the STL file to the work area in slic3r
  4. export G-code

I have verified that the “avoid perimeter crossing” is off,
as someone suggested that this was an issue.

I just did this process 3 times, to make sure that it fails.
It does. Let me know if you need any other information.

Thanks.

CJR

Christopher Roussi
Senior Scientist
Michigan Tech Research Institute
Ann Arbor, MI
w:734-913-6843
m:269-532-3006

On Sep 21, 2014, at 8:50 AM, Alessandro Ranellucci notifications@github.com wrote:

@croussi, can you please post the full report instead of just an arbitrary part? The interesting details are missing.
Also, can the issue be reproduced with any STL file? If no, please post link to STL file as well as we need to reproduce the issue in order to fix it. Thank you for helping


Reply to this email directly or view it on GitHub.

@croussi
croussi commented Sep 21, 2014

The complete failure log is here:
https://dl.dropboxusercontent.com/u/4495658/fail_report.txt

Christopher Roussi
Senior Scientist
Michigan Tech Research Institute
Ann Arbor, MI
w:734-913-6843
m:269-532-3006

On Sep 21, 2014, at 8:50 AM, Alessandro Ranellucci notifications@github.com wrote:

@croussi, can you please post the full report instead of just an arbitrary part? The interesting details are missing.
Also, can the issue be reproduced with any STL file? If no, please post link to STL file as well as we need to reproduce the issue in order to fix it. Thank you for helping


Reply to this email directly or view it on GitHub.

@alexrj
Owner
alexrj commented Sep 23, 2014

Thank you very much, I am able to reproduce the crash using the files you supplied.

@alexrj
Owner
alexrj commented Sep 23, 2014

Actually, Avoid crossing perimeters is enabled in the config file you supplied and I confirm the crash happens because of a bug in that feature.

@alexrj
Owner
alexrj commented Sep 23, 2014

Thank you, fixed

@alexrj alexrj closed this Sep 23, 2014
@alexrj alexrj added the Fixed label Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment