Skip to main content

Site Navigation

Your Account

Choose Language

"Out of memory." ...when loading g-code files (.nc)

I am unable to load g-code files.

Block Image

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

  • Exception Text **************

System.OutOfMemoryException: Out of memory.

at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)

at BoXZY.RasterImageManager.LoadImage(String fn)

at BoXZY.BoXZYTab.OpenButton_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.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.6.127.1 built by: NETFXREL3STAGE

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

----------------------------------------

RepetierHost

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/BoXZY%20Interface.exe

----------------------------------------

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE

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

----------------------------------------

RepetierHostExtender

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/RepetierHostExtender.DLL

----------------------------------------

OpenTK

Assembly Version: 1.1.0.0

Win32 Version: 1.1.804.3121

CodeBase: file:///C:/Program%20Files/boxzy/OpenTK.DLL

----------------------------------------

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE

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

----------------------------------------

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

Accessibility

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

ColorSlider

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/ColorSlider.DLL

----------------------------------------

BoXZY

Assembly Version: 1.2016.1.4

Win32 Version: 1.2016.1.4

CodeBase: file:///C:/Program%20Files/boxzy/plugins/BoXZY/BoXZY.dll

----------------------------------------

CuraEngine

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/plugins/CuraEngine/CuraEngine.dll

----------------------------------------

RepetierServerConnector

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/plugins/RepetierServerConnector/RepetierServerConnector.dll

----------------------------------------

RRFirmwares

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/boxzy/plugins/RRFirmwares/RRFirmwares.dll

----------------------------------------

System.ServiceProcess

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

Newtonsoft.Json

Assembly Version: 6.0.0.0

Win32 Version: 6.0.8.18111

CodeBase: file:///C:/Program%20Files/boxzy/Newtonsoft.Json.DLL

----------------------------------------

OpenTK.GLControl

Assembly Version: 1.1.0.0

Win32 Version: 1.1.804.3121

CodeBase: file:///C:/Program%20Files/boxzy/OpenTK.GLControl.DLL

----------------------------------------

IconOverlayClient

Assembly Version: 1.0.5.0

Win32 Version: 1.0.5.0

CodeBase: file:///C:/Program%20Files/Box/Box%20Sync/IconOverlayClient.DLL

----------------------------------------

SharpShell

Assembly Version: 2.0.0.0

Win32 Version: 2.0.0.0

CodeBase: file:///C:/Program%20Files/Box/Box%20Sync/SharpShell.DLL

----------------------------------------

log4net

Assembly Version: 1.2.13.0

Win32 Version: 1.2.13.0

CodeBase: file:///C:/Program%20Files/Box/Box%20Sync/log4net.DLL

----------------------------------------

System.ServiceModel

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.Runtime.Serialization

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

SMDiagnostics

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.ServiceModel.Internals

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.IdentityModel

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0 built by: NETFXREL2

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

----------------------------------------

System.ComponentModel.Composition

Assembly Version: 4.0.0.0

Win32 Version: 4.6.79.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.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:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

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.

Answer this question I have this problem too

Is this a good question?

Score 0

Comments:

What type of computer are you running and what version of windows? Could you post the g-code file you are attempting to load also? Is it every g-code file? Have you been successful slicing 3d prints or using the laser interface?

by

James, as an experiment have you tried to load any other files into the interface? See if you can download an object from another source and slice it, there may be a problem with your GCode file itself.

Have you tried to load your file into the BoXZY interface and let BoXZY interface run the slicer on it?

How much memory does your machine have?

Which OS are you running?

There are a ton of variables here, and more information is needed to figure it out.

Have you tried giving the model to someone else to look at?

by

Just Helping: I have been successful using the laser interface, importing png files.

My computer has Windows 10, 16GB memory, I7 processor, 2GB NVidia 630M video.

The gcode file is rather large but here is a snippet:

G00Z.1

X.1875

G01 Z-.005

G2I-.1875

(TEXT = James C. Mason)

(FONT = Harlow Solid Italic, I)

(HEIGHT = 0.15)

(ON ARC = True)

(ARC CCW = False)

(X0, Y0, R0.1875, A0)

(ZR0.1, ZA0.1, ZD-0.005, F4.0)

G00Z0.1

X0.2044Y-0.0322

G01Z-0.005F4.0

X0.2044Y-0.0427

X0.2039Y-0.047

X0.2026Y-0.05

X0.2005Y-0.0519

X0.1975Y-0.0525

X0.1952Y-0.0523

X0.1933Y-0.0516

X0.1916Y-0.0505

X0.1901Y-0.049

X0.189Y-0.0471

X0.1882Y-0.0449

X0.1877Y-0.0423

X0.1875Y-0.0394

X0.1875Y-0.0256

X0.1745Y-0.0204

X0.1645Y-0.016

X0.1562Y-0.0116

X0.1493Y-0.0071

X0.1441Y-0.0025

X0.1402Y0.0024

X0.1375Y0.008

X0.1358Y0.0141

X0.1353Y0.0207

X0.1358Y0.027

X0.1375Y0.0328

X0.1402Y0.038

X0.144Y0.0426

X0.1487Y0.0465

X0.1538Y0.0492

X0.1596Y0.0509

X0.1658Y0.0514

X0.1706Y0.0511

X0.1753Y0.0501

X0.1797Y0.0485

X0.1839Y0.0463

X0.1879Y0.0434

by

Did you have a chance to read my response below? Is it possible that is the issue?

EDIT: Where did this Gcode come from? It is not the correct format for BoXZY, although I'd be surprised if that was related to the issue you're having. BoXZY will not be able to execute this code because it lacks spaces between headers and coordinates and also lacks headers (G1, G0, etc.) on every line. Have you tried using the 3d printer slicer in the interface to see if it will slice correctly and add that gcode to the editor?

by

Add a comment

2 Answers

Most Helpful Answer

Ahh, Yes, there is no SD card installed on BoXZY's board from the factory. This could explain the issues. If you are trying to save the file on the board it will give you errors. You only need to click slice and it will automatically load the gcode into the editor. You can then click print. No need to save. SD printing options are only there for future expansion.

Was this answer helpful?

Score 1
Add a comment

While trying my first 3D print, I too received the "Out of memory" error.

I am running Win10pro with 4GB.

Here are the steps I took to get the error:

I downloaded an STL file from here:

http://forums.reprap.org/file.php?88,fil...

Then with the Boxyz interface (opened as Admin), I file-> LOAD'ed the stl file.

Then on the Slicer tab, I ran the slic3r on it. I then clicked "Save for SD print" which saved the gcode file.

Then on the Boxyz tab, I OPENed the .gco file. This presented the out of memory error.

Block Image

Here is the gcode:

M107

M104 S188

G28

G1 Z5 F5000

M109 S188

G21

G90

M82

G92 E0

G1 Z0.4 F3600

G1 E-4.5 F2400

G92 E0

G1 X78.747 Y78.672 F3600

G1 E4.5 F2400

G1 X80.432 Y77.56 E4.73972 F1030.881

G1 X82.366 Y77.183 E4.97377

G1 X82.634 Y77.183 E5.00557

G1 X84.613 Y77.579 E5.24529

G1 X86.287 Y78.706 E5.48501 F1030.881

G1 X87.399 Y80.391 E5.72473

G1 X87.776 Y82.325 E5.95878

G1 X87.776 Y82.575 E5.98847

G1 X87.38 Y84.554 E6.22819

G1 X85.921 Y86.53 E6.51994

G1 X85.8 Y86.63 E6.53852

G1 X84.025 Y87.59 E6.77824

G1 X82.486 Y87.817 E6.96294

G1 X80.507 Y87.421 E7.20266

G1 X79.2 Y86.63 E7.38418

G1 X79.079 Y86.53 E7.40276

G1 X77.81 Y84.96 E7.64248

G1 X77.224 Y82.575 E7.93423

G1 X77.224 Y82.325 E7.96392

G1 X77.62 Y80.346 E8.20364

G1 X78.714 Y78.721 E8.43623

G1 X79.353 Y79.122 F3600

G1 X79.449 Y78.993 E8.45527 F1030.881

G1 X81.086 Y78.086 E8.67755

G1 X82.366 Y77.897 E8.83124

G1 X82.634 Y77.897 E8.86304

G1 X84.463 Y78.292 E9.08532

G1 X85.966 Y79.408 E9.30759 F1030.881

G1 X86.873 Y81.045 E9.52986

G1 X87.062 Y82.325 E9.68355

G1 X87.062 Y82.575 E9.71325

G1 X86.667 Y84.404 E9.93552

G1 X85.464 Y85.981 E10.171

G1 X85.344 Y86.081 E10.18959

G1 X83.684 Y86.946 E10.41186

G1 X82.486 Y87.103 E10.55534

G1 X80.657 Y86.708 E10.77761

G1 X79.656 Y86.081 E10.9179

G1 X79.536 Y85.981 E10.93648

G1 X78.382 Y84.507 E11.15875

G1 X77.938 Y82.575 E11.39424

G1 X77.938 Y82.325 E11.42393

G1 X78.333 Y80.496 E11.64621

G1 X79.318 Y79.17 E11.84231

G1 X79.93 Y79.605 F3600

G1 X80.147 Y79.347 E11.88234 F1030.881

G1 X82.366 Y78.611 E12.16007

G1 X82.634 Y78.611 E12.19187

G1 X84.3 Y79.005 E12.39521

G1 X85.612 Y80.105 E12.59855 F1030.881

G1 X86.348 Y82.325 E12.87628

G1 X86.348 Y82.575 E12.90597

G1 X85.953 Y84.241 E13.10931

G1 X85.008 Y85.432 E13.28988

G1 X84.887 Y85.532 E13.30846

G1 X82.514 Y86.389 E13.60823

G1 X80.113 Y85.532 E13.91102

G1 X79.992 Y85.432 E13.92961

G1 X78.963 Y84.063 E14.13294

G1 X78.652 Y82.575 E14.31352

G1 X78.652 Y82.325 E14.34321

G1 X79.047 Y80.659 E14.54655

G1 X79.891 Y79.651 E14.70273

M104 S183

G1 Z0.6 F3600

G1 Z0.8 F3600

G1 E10.20273 F2400

G92 E0

G1 X83.046 Y82.5 F3600

G1 E4.5 F2400

G1 X81.954 Y82.5 E4.55709 F600

M106 S102

G1 Z1 F3600

G1 X83.725 Y82.5 F3600

G1 X81.275 Y82.5 E4.68511 F600

G1 Z1.2 F3600

G1 E0.18511 F2400

G92 E0

G1 X83.627 Y82.5 F3600

G1 E4.5 F2400

G1 X81.373 Y82.5 E4.61774 F600

G1 Z1.4 F3600

G1 E0.11774 F2400

G92 E0

G1 X83.528 Y82.5 F3600

G1 E4.5 F2400

G1 X81.472 Y82.5 E4.60746 F600

G1 Z1.6 F3600

G1 X83.43 Y82.5 F3600

G1 X81.57 Y82.5 E4.70463 F600

G1 Z1.8 F3600

G1 X83.528 Y82.5 F3600

G1 X81.472 Y82.5 E4.81209 F600

G1 Z2 F3600

G1 E0.31209 F2400

G92 E0

G1 X83.627 Y82.5 F3600

G1 E4.5 F2400

G1 X81.373 Y82.5 E4.61774 F600

G1 Z2.2 F3600

G1 E0.11774 F2400

G92 E0

G1 X83.725 Y82.5 F3600

G1 E4.5 F2400

G1 X81.275 Y82.5 E4.62802 F600

G1 Z2.4 F3600

G1 X83.046 Y82.5 F3600

G1 X81.954 Y82.5 E4.68511 F600

G1 Z2.6 F3600

G1 Z2.8 F3600

G1 Z3 F3600

G1 E0.18511 F2400

G92 E0

M107

M104 S0

G28 X0

M84

M104 T0 S0

M140 S0

M84

Was this answer helpful?

Score 0
Add a comment

Add your answer

James Mason will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 0

All Time: 115