MatterHackers / MatterControl

3D printing software for Windows, Mac and Linux
http://www.mattercontrol.com/
BSD 2-Clause "Simplified" License
457 stars 184 forks source link

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. #97

Closed partsoven closed 9 years ago

partsoven commented 9 years ago

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

\ Exception Text ** System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.String.ReplaceInternal(String oldValue, String newValue) at System.String.Replace(String oldValue, String newValue) at MatterHackers.MatterControl.PrinterCommunication.PrinterConnectionAndCommunication.StartPrint(String gcodeFileContents) at MatterHackers.MatterControl.ExportPrintItemWindow.PartSlicedStartPrintingToSd(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at MatterHackers.Agg.RootedObjectEventHandler.CallEvents(Object sender, EventArgs e) at MatterHackers.MatterControl.PrintQueue.PrintItemWrapper.set_DoneSlicing(Boolean value) at MatterHackers.MatterControl.SlicerConfiguration.SlicingQueue.<>cDisplayClass4.b2(Object state) at MatterHackers.Agg.UI.UiThread.DoRunAllPending() at MatterHackers.Agg.UI.WindowsFormsAbstract.CallAppWidgetOnIdle(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

\ Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

MatterControl Assembly Version: 1.1.3.0 Win32 Version: 1.1.3

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterControl.exe

MatterHackers.Agg.UI Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.Agg.UI.DLL

AGG Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/AGG.DLL

MatterHackers.VectorMath Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.VectorMath.DLL

PlatfromAbstract Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/PlatfromAbstract.DLL

agg_platform_win32 Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/agg_platform_win32.DLL

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

OpenTK.GLControl Assembly Version: 1.0.0.0 Win32 Version: 1.0.278.44921

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/OpenTK.GLControl.DLL

OpenTK Assembly Version: 1.0.0.0 Win32 Version: 1.0.278.44921

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/OpenTK.DLL

C5 Assembly Version: 1.0.2.0 Win32 Version: 1.0.2.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/C5.DLL

clipper_library Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/clipper_library.DLL

CloudServices Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/CloudServices.DLL

MatterHackers.MatterControl.Pulgins Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.MatterControl.Pulgins.DLL

Community.CsharpSqlite Assembly Version: 3.7.7.1 Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/Community.CsharpSqlite.DLL

ICSharpCode.SharpZipLib Assembly Version: 0.86.0.518 Win32 Version: 0.86.0.518

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/ICSharpCode.SharpZipLib.DLL

MatterControlAuth Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterControlAuth.DLL

MatterHackers.Agg.ImageProcessing Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.Agg.ImageProcessing.DLL

MatterHackers.Csg Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.Csg.DLL

MatterHackers.Localizations Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.Localizations.DLL

MatterHackers.MarchingSquares Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.MarchingSquares.DLL

MatterHackers.OpenGL.UI Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.OpenGL.UI.DLL

MatterHackers.PolygonMesh Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.PolygonMesh.DLL

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

MatterHackers.RenderOpenGl Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.RenderOpenGl.DLL

Tesselate Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/Tesselate.DLL

MatterHackers.SerialPortCommunication Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterHackers.SerialPortCommunication.DLL

Newtonsoft.Json Assembly Version: 4.5.0.0 Win32 Version: 4.5.10.15407

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/Newtonsoft.Json.DLL

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

nunit.framework Assembly Version: 2.5.3.9345 Win32 Version: 2.5.3.9345

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/nunit.framework.DLL

PdfSharp Assembly Version: 1.32.2608.0 Win32 Version: 1.32.2608.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/PdfSharp.DLL

PictureCreator Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/PictureCreator.DLL

PrintNotifications Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/PrintNotifications.DLL

RayTracer Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/RayTracer.DLL

TextCreator Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/TextCreator.DLL

WindowsFileDialogs Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/WindowsFileDialogs.DLL

GCodeVisualizer Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/GCodeVisualizer.EXE

InfInstaller Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/InfInstaller.EXE

Launcher Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/Launcher.EXE

STLViewer Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/STLViewer.EXE

MatterSlice Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/MatterControl/MatterSlice.EXE

System.ComponentModel.DataAnnotations Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

\ JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

image

larsbrubaker commented 9 years ago

Thanks for the bug report. Can you send the settings and file you had this error on to support@matterhackers.com?

partsoven commented 9 years ago

Chris Kopack Parts Oven LLC 1400 Railroad St. Suite 105 Paso Robles, CA 93446 http://www.partsoven.com 805.400.1420

On 11/17/2014 12:04 PM, Lars Brubaker wrote:

Thanks for the bug report. Can you send the settings http://wiki.mattercontrol.com/Sending_Debugging_Information and file you had this error on to support@matterhackers.com mailto:support@matterhackers.com?

— Reply to this email directly or view it on GitHub https://github.com/MatterHackers/MatterControl/issues/97#issuecomment-63366419.

avoid_crossing_perimeters = 1 bed_shape = rectangular bed_size = 298,275 bed_temperature = 85 bottom_clip_amount = 0 bottom_solid_layers = 2 bridge_acceleration = 1000 bridge_fan_speed = 0 bridge_flow_ratio = 1.1 bridge_speed = 40 brim_width = 0 build_height = 0 cancel_gcode = center_part_on_bed = 1 complete_objects = 0 cool_extruder_lift = 0 cooling = 1 create_raft = 0 raft_extra_distance_around_part = 5 raft_air_gap = .2 default_acceleration = 900 disable_fan_first_layers = 1 end_gcode = M400 ; wait for buffer to clear\nM104 S0 ; turn off nozzle temperature\nM140 S0 ; turn off bed temperature\nG1 Y200 ;\nG28 X0 ; home X axis\nM84 ; disable motors external_perimeter_speed = 30 external_perimeters_first = 0 extra_perimeters = extruder_clearance_height = 20 extruder_clearance_radius = 20 extruder_offset = 0x0 extrusion_axis = E extrusion_multiplier = 1 extrusion_width = .37 fan_always_on = 0 fan_below_layer_time = 60 filament_diameter = 2.89 fill_angle = 35 fill_density = 0.35 fill_pattern = line first_layer_acceleration = 0 first_layer_bed_temperature = 85 first_layer_extrusion_width = .37 first_layer_height = 120% first_layer_speed = 85% first_layer_temperature = 230 g0 = 0 gap_fill_speed = 45 gcode_arcs = 0 gcode_comments = 0 gcode_flavor = reprap gcode_output_type = REPRAP has_fan = 1 has_heated_bed = 1 has_sd_card_reader = 1 infill_acceleration = 1400 infill_every_layers = 2 infill_extruder = 1 infill_extrusion_width = .6 infill_first = 0 infill_only_where_needed = 0 infill_overlap_perimeter = .06 infill_speed = 70 infill_type = TRIANGLES layer_gcode = layer_height = 0.14 min_extrusion_before_retract = .1 max_fan_speed = 0 min_fan_speed = 0 min_print_speed = 15 min_skirt_length = 0 notes = nozzle_diameter = 0.35 only_retract_when_crossing_perimeters = ooze_prevention = 0 output_filename_format = [input_filename_base].gcode overhangs = 1 pause_gcode = perimeter_acceleration = 900 perimeter_extruder = 1 perimeter_extrusion_width = .34 perimeter_speed = 40 perimeters = 4 post_process = print_center = 149,138 raft_layers = 0 randomize_start = repair_outlines_extensive_stitching = 0 repair_outlines_keep_open = 0 repair_overlaps_reverse_orientation = 0 repair_overlaps_union_all_together = 0 resolution = 0 resume_gcode = retract_before_travel = 2 retract_layer_change = 1 retract_length = 1.75 retract_length_tool_change = 10 retract_lift = 0 retract_restart_extra = 0 retract_restart_extra_toolchange = 0 retract_speed = 20 skirt_distance = 6 skirt_height = 1 skirts = 2 slowdown_below_layer_time = 20 small_perimeter_speed = 30 solid_fill_pattern = rectilinear solid_infill_below_area = 30 solid_infill_every_layers = 0 solid_infill_extrusion_width = 0 solid_infill_speed = 60 spiral_vase = 0 standby_temperature_delta = -5 start_gcode = G28 ; home all axes\nM104 S220 ; lower temp after/durring first layer improve overhangs start_perimeters_at_concave_points = 0 start_perimeters_at_non_overhang = 0 support_material = 0 support_material_angle = 0 support_material_infill_angle = 45 support_material_create_internal_support = 0 support_material_enforce_layers = 0 support_material_extruder = 1 support_material_extrusion_width = 0 support_material_interface_extruder = 1 support_material_interface_layers = 0 support_material_interface_spacing = 0 support_material_pattern = rectilinear support_material_spacing = 2.5 support_material_speed = 60 support_material_threshold = 45 support_material_xy_distance = 0.7 support_material_z_distance = 0.15 support_material_z_gap_layers = 1 support_type = LINES temperature = 230 thin_walls = 1 threads = 2 toolchange_gcode = top_infill_extrusion_width = .35 top_solid_infill_speed = 80% top_solid_layers = 4 travel_speed = 80 use_firmware_retraction = 0 use_relative_e_distances = 0 vibration_limit = 0 wipe = 0 wipe_shield_distance = 0 z_can_be_negative = 0 z_offset = 0