# Issue reading GCode from Lightburn

**URL:** <https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219>\
**Category:** Uncategorized\
**Created:** [November 7, 2023, 5:01pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219 "2023-11-07T17:01:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tsprings1017](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@Tsprings1017](https://forum.onefinitycnc.com/u/Tsprings1017)\
**Post date:** [November 7, 2023, 5:01pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/1 "2023-11-07T17:01:39Z")

</div>

I have set up Lightburn using the Onefinity provided post processor for X50 Journeyman. When I save the code to USB and load in the machine, I keep getting the same message:

{“code”:400,“message”:“Unable to read file - doesn’t appear to be GCode.”}  
The simulation works however I am not able to see any code, just the message.  
[Wedding Laser Song\_line+Fill.ngc](https://forum.onefinitycnc.com/uploads/short-url/z04OqsfzfkEmD9MEEIJtNMB2Qzy.ngc) (5.0 MB)

I have attempted to save with .ngc extension to no avail. Has anyone reach a solution for this.  
Onefinity Controller Firmware is v1.1.2-alpha.01  
Using the Lightburn/1F PP - GRBL-M3

I have no issues using the Vcarve PP on my 1F/Jtech 14w setup but would like to switch to lightburn for the improved optimization for longer burns.

---

<div class="post-metadata">

**Author:** ![OnefinityCNC](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/onefinitycnc/32/7_2.png) [@OnefinityCNC](https://forum.onefinitycnc.com/u/OnefinityCNC)\
**Post date:** [November 7, 2023, 5:05pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/2 "2023-11-07T17:05:22Z")

</div>

your very outdate and alpha firmware would be the first thing to check.  
We issued a ‘recall’ a while ago for anyone running 1.0, 1.1, 1.1.2, to completely reflash their OS. Also, alpha firmware should never be run on production machines, especially very outdated alpha.

1.3 is stable and can reflashed here:

> [@How to reflash the operating system on the Onefinity BB controller (Full SD card image)](https://forum.onefinitycnc.com/t/how-to-reflash-the-operating-system-on-the-onefinity-bb-controller-full-sd-card-image/5659):
>
> There are times when you may have a file go corrupt or (advanced) users start poking under the hood and may need to reflash the entire vanilla image to the sd card. This process is essentially reinstalling the Onefinity operating system from scratch. This process is only for advanced users OR if you were directed to this via support. If you are looking to update the firmware from a controller that is working properly, do not use this method, look for the update file in the ‘firmware updates’ s…

---

<div class="post-metadata">

**Author:** ![Tsprings1017](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@Tsprings1017](https://forum.onefinitycnc.com/u/Tsprings1017)\
**Post date:** [November 7, 2023, 8:32pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/3 "2023-11-07T20:32:58Z")

</div>

Thanks for the information on updating the Firmware! I have flashed and now on the recommended 1.3.0

Unfortunately, I am still seeing the same error message. I created another file in LightBurn to see if I still have the same error and each time as soon as the simulation starts I can already see the message.

---

<div class="post-metadata">

**Author:** ![OnefinityCNC](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/onefinitycnc/32/7_2.png) [@OnefinityCNC](https://forum.onefinitycnc.com/u/OnefinityCNC)\
**Post date:** [November 7, 2023, 9:32pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/4 "2023-11-07T21:32:59Z")

</div>

Try naming the file to something simple (without the weird characters + \_ ), like ‘file.nc’ or ‘file.gcode’ and see if it runs.

---

<div class="post-metadata">

**Author:** ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://forum.onefinitycnc.com/u/ChrisM)\
**Post date:** [November 7, 2023, 9:59pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/5 "2023-11-07T21:59:48Z")

</div>

I looked at the ngc file you attached and noticed right away it uses “;” to denote a comment line. The [LinuxCNC Page](https://linuxcnc.org/docs/html/gcode/overview.html#gcode:comments) seems to show that this usage should be ok - but I have never seen it done before.  
Normally comments - even if it is the whole line - are put between “(” and “)”.  
This may not be the issue but just suggesting. I would try renaming the file as suggested above first.  
After supper I will take it to my machine and try to debug.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [November 7, 2023, 10:13pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/6 "2023-11-07T22:13:47Z")

</div>

Hey Chris,

I use “;” to delimit comments [all the time](https://forum.onefinitycnc.com/t/tool-changes-and-z-height/7715/29).

---

<div class="post-metadata">

**Author:** ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://forum.onefinitycnc.com/u/ChrisM)\
**Post date:** [November 7, 2023, 10:18pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/7 "2023-11-07T22:18:38Z")

</div>

> I use “;” to delimit comments [all the time](https://forum.onefinitycnc.com/t/tool-changes-and-z-height/7715/29)

Thanks Aiph5u  
The fact that I have never seen it just means I don’t get out much.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [November 7, 2023, 10:20pm UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/8 "2023-11-07T22:20:22Z")

</div>

Hey Ross,

> [@Tsprings1017](#):
>
> {“code”:400,“message”:“Unable to read file - doesn’t appear to be GCode.”}  
> The simulation works however I am not able to see any code, just the message.  
> [Wedding Laser Song\_line+Fill.ngc](https://forum.onefinitycnc.com/uploads/short-url/z04OqsfzfkEmD9MEEIJtNMB2Qzy.ngc) (5.0 MB)

although when [input sanitization](https://metager.org/meta/meta.ger3?eingabe=input%20sanitization&focus=web&m=en_US) is properly done during programming, you may use any character in a filename (including newline), often it is not. Therefore usually programmers avoid “+” in filenames, since it is a special character in many environments.

By the way, firmware 1.0.\* and 1.1.\* were so bad that they were revoked.

---

<div class="post-metadata">

**Author:** ![Baz87](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/baz87/32/23002_2.png) [@Baz87](https://forum.onefinitycnc.com/u/Baz87)\
**Post date:** [January 12, 2024, 12:14am UTC](https://forum.onefinitycnc.com/t/issue-reading-gcode-from-lightburn/23219/9 "2024-01-12T00:14:16Z")

</div>

I just had this issue, and it turns out it was because there was a “+” in the file name.
