Lightburn UDP Automation Issue

Hello! For the past year I have been using an automated feeding system with my Xtool D1 and lightburn. For the past month or so I have started having issues when lightburn loads a file before starting a print. For a file with both cutting and filling sections, only the cutting sections load and the fill area does not. This usually starts happening after 20-30 file loads/cuts.

Files are loaded and the laser is started for each print through the lightburn UDP commands.

I have tried rolling back versions and it has not helped.

Here is the crash log from the last failure. This log was created after about ~5 failed jobs where only the lines were cut and the fill areas did not load.

Crash Log Stack Trace for LightBurn v1.4.01:

<couldn’t map PC to fn name>
BitmapShape::SetupFrom
BitmapShape::LoadFrom
Project::ReadShapeFrom
Project::ReadGroupChildrenFrom
Project::ReadShapeFrom
Project::ReadFromXML
Project::ReadFrom
MainWindow::OpenProject
MainWindow::readCommandData
MainWindow::timerEvent
<couldn’t map PC to fn name>
<couldn’t map PC to fn name>
MainWindow::event
<couldn’t map PC to fn name>
<couldn’t map PC to fn name>

Undo Stack:

Redo Stack:

Support Data:
AAA7xXicvVtbb9s6Ev4rgbEPu0DTSrJ8y9M6dnPp2o0RO2nSs0VAS7StE1k0KCmJT9H/vjO8SJTsNGx9sAHaiENyZjicGX685Htjnkdx2Dj53ghJRhsnjdkqP/Icr3nsdI+d5tG/jxz/xOk23jWeKE8jlkAT973/3nEbP9414iigSUqxe7B6HEaLRePEedd4pNtbEkPLbrfZGfSPP7rDXss79r2+2+8fnw7a7unwuPWxPWh3jjtnZ77baxS8HkKyTQWXNCNZDp+dd42MLOHjj2+GFi6I33C6SFF4P/wzT7PL9XLC0rvGybH7rkK6r5Gm0V+03gxpul0cLZOLxomnPm+FOv0kWDEOZFd/36rvLCJxRNIoWTZOMp5ToOUZG6xo8HjG+M0GLZuaVVPyRKc0YEkIZNcD5qeMxRc03pT6GxSl1ul2Q9J0uk0zuh6CSIY2WZA4Ba4DsqacXDMwGe05JRmM+jil8YzFUJ0EMFNNoLKYcdnjNqLPWrMBSzLO4jF7opdJwOmaJpkY4SDPRlEK3398b0RJSF+EPdbkZcKeKYcmjlH0wG5YjBJVC4U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oyTJCsKD8bewsFd/7/ZgbhsF1pMIJz1ynaN/Yv2/oIqllU74ngZAPyBnAUULQFVAqRJEqQKQwcCIGhWKfJZSGj9+/A8HBWnR

Thank you for reporting this.
LightBurn shouldn’t crash.

I will get this report to the Dev team and return with further questions when we have them.

1 Like

Can you email an example of one of your projects to support and include a link to this thread? The crash appears to be in the setup code for a bitmap, which leads me to believe you’re running out of memory or have a leak, but it could also be that the images being used are huge.

You’re also using 1.4.01, and there were several patch releases after that version to correct bugs, so if you can go to 1.4.05 I’d recommend that first.

2 Likes

I’m also keen to see what sort of automation you’ve rigged up! Pics!

2 Likes

Sent! The issue also occurs with different files, not just this one. The issue also persists across two separate lasers and computers that we are using.

We were actually using version 1.5.04, and downgraded to 1.4.01 to see if the problem would go away. Additionally, I have noticed that file load times have gone up considerable. I will try to uninstall and reinstall lightburn today to see if that fixes the issue.

I don’t have any pictures, but the system uses a linear actuator to push pieces of wood to the laser. A few switches are used to detect if the wood is in the right position and one switch is placed at the location the laser home to detect when the laser is done with the current job. All this is controlled by an arduino, which also sends a serial message to the PC where a python program loads and starts the laser using the lightburn UDP commands.

Relatively simple system, required a tiny bit of programming knowledge and lots of 3d printed parts.

3 Likes

Would you say that most of your files are built similarly? I ask because this file contains two images that are 8825 x 4217 pixels, stored as 32 bit because they include transparency, meaning that each image is 142mb of memory just for the original (before rotation / rasterizing / dithering / cut generation).

The output size of each image is about 87 x 42 mm, so you are supplying in excess of 100 pixels per millimeter of image, but outputting to the laser at 10 pixels per millimeter. If you reduced the size of the images by a factor of 10 you’d likely see no visible difference in the output, but would dramatically reduce the memory footprint as well as loading and processing times.

2 Likes

Thanks for the reply. Yes, most of the images we use are very high resolution. I will try to lower the resolutions and see if it has an effect. We are also shutting the machines down for the day to do maintenance, so I will try a complete uninstall and reinstall of lightburn to see if that fixes things.