# Luban 4.10.2 Fails to Generate Preview/Gcode

**URL:** <https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139>\
**Category:** Snapmaker Luban\
**Tags:** Gcode, Laser\
**Created:** [March 1, 2024, 2:51am UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139 "2024-03-01T02:51:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![scetron](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@scetron](https://forum.snapmaker.com/u/scetron)\
**Post date:** [March 1, 2024, 2:51am UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/1 "2024-03-01T02:51:27Z")

</div>

I am trying to generate gcode for my project, but after clicking export, I get an error that says ‘Failed to generate preview’. The preview window is blank as expected.

From the logs I see this:  
2024-03-01T02:47:23.041Z - warn service:TaskManager Task generateToolPath failed. err msg:  
2024-03-01T02:47:23.043Z - warn service:TaskManager {}

Any tips? Known issues?

Update: Downgraded to 4.10.1 and get the same results…

I did a similar project with 4.10.1, with some of the same layers, so I am not sure why this would not be working.

---

<div class="post-metadata">

**Author:** ![snapUser](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@snapUser](https://forum.snapmaker.com/u/snapUser)\
**Post date:** [March 1, 2024, 3:40am UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/2 "2024-03-01T03:40:42Z")

</div>

Delete the app and reinstall.

---

<div class="post-metadata">

**Author:** ![scetron](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@scetron](https://forum.snapmaker.com/u/scetron)\
**Post date:** [March 7, 2024, 3:29am UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/3 "2024-03-07T03:29:01Z")

</div>

I believe I did that when downgrading (uninstall 4.10.2, install 4.10.1).

What worked was adding the layers back one by one and testing the generate g-code each time. After adding back all the layers, it was able to generate the preview and the g-code for all the layers.

---

<div class="post-metadata">

**Author:** ![spucky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/spucky/32/25910_2.png) [@spucky](https://forum.snapmaker.com/u/spucky)\
**Post date:** [March 7, 2024, 7:11am UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/4 "2024-03-07T07:11:27Z")

</div>

Which Operating System are you using?  
If Linux it depends on the used distribution. I received the same errors on Red Hat (and any derivate like Alma, Rocky, Oracle), but it works on Debian 12 or Fedora 39.

I have also tested it on Windows 11 where it was running right away without any modifications

---

<div class="post-metadata">

**Author:** ![scetron](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@scetron](https://forum.snapmaker.com/u/scetron)\
**Post date:** [March 9, 2024, 6:24pm UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/5 "2024-03-09T18:24:28Z")

</div>

I’m on Windows 11 23H2. Up until now, I’ve had very little or no issues, and even with a similar etch (this one just change a small piece/one of the layers). Luckily it is solved, I am not sure what was stuck, but I imagine there was some issue between the layers that wasn’t surfacing as an error. After reinstalling/downgrading, re-adding layer by layer did the trick.

---

<div class="post-metadata">

**Author:** ![nicusantudor](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@nicusantudor](https://forum.snapmaker.com/u/nicusantudor)\
**Post date:** [July 27, 2024, 1:52pm UTC](https://forum.snapmaker.com/t/luban-4-10-2-fails-to-generate-preview-gcode/35139/6 "2024-07-27T13:52:54Z")

</div>

I have an old laptop running win 10 on intel core i5-3317U that gives me similar error (failed to generate G Code). I’m using latest Luban 4.13  
I have another PC running win 11 on Ryzen 5-3400g same Luban 4.13 and I have no problem.  
Maybe it’s a hardware software issue… I couldn’t find any topics related to this problem.  
You could try a different PC and see if it works.  
Uninstalling and reinstalling did nothing for me ☹
