Cura: [4.7] Can not save custom start gcode if it contains an equal sign

Created on 25 Aug 2020  路  12Comments  路  Source: Ultimaker/Cura

Application version
4.7

Platform
Windows 10 2004 64bit

Printer
Ender 5

Reproduction steps

  1. Enter custom gcode with an equal sign into custom start gcode
  2. Close Cura
  3. Open Cura again
  4. Gcode is cut at the equal sign, ui falls apart (extruder settings missing, no materials, crash when loading stl)

Screenshot(s)
Inserting this gcode:
gcode1

Results in this:
gcode2

Actual results
Cura is unusable and crashes on loading a stl.

Expected results
Custom gcode containing equal sign should work. It is required by Octolapse in this case.

Additional information
To reproduce this, I tried saving without equal signs - everything works (but Octolapse of course). I also checked the configuration files, and saving seems ok (I attached the file below). I think the issue comes from loading and parsing those config settings, as the equal sign is part of the configuration schema.

After digging around the code and commits a bit - maybe the new FastConfigParser has an issue with this? (https://github.com/Ultimaker/Uranium/pull/625)

Creality+Ender-5_settings.inst.cfg.zip

Uranium FixeSolved Bug

Most helpful comment

We have a fix for this issue (see the PR). We hope to release it somewhere next week. Thanks for the reports!

I'm amazed that you figured out that the = sign was at fault.

All 12 comments

Issue is likely related to the new FastConfigParser

It would have been nice if this were discovered during the beta phase.

Sorry, I downloaded beta and found this two hours before the release - and then confirmed it in release as well =(

Yeah. Now that I see the g-code, it's pretty clear that the fast config parser caused this. I didn't know that stuff like this put in the start gcode.

Is it because the beta period was too short? I'm noticing that we're getting less bug reports from the beta, only to recieve them on the first "real" release (hence the high number of patch releases we had to do the past few releases).

Well, for me it was just a coincidence. I was preparing a 2-day print and tried tree supports, but they generated partly in the air (well, found out what infill for supports is for then) so I checked if a new version of Cura is around. I saw the beta, got it, found the bug, wanted to post it, saw that the release is there, got the release, checked again - and well, here we are ;)

I just got into 3D-printing a month ago, but I think I will keep a closer look on upcoming betas to get into testing earlier ;)

I just got into 3D-printing a month ago, but I think I will keep a closer look on upcoming betas to get into testing earlier ;)

No problem. I'm just trying to figure out if there is anything we need to change in order to catch issues like this. Thanks for thinking along :)

We have a fix for this issue (see the PR). We hope to release it somewhere next week. Thanks for the reports!

I'm amazed that you figured out that the = sign was at fault.

Beeing a software developer for 20 years now I messed up so many things I became quite good at analysing that stuff (even though I never did anything with Python yet).

I tested the fix and can confirm it works for me now. Thanks a lot!

It is not solved!
Just downloaded 4.7 and i do not have equal signs but it still loses all but the first 3 lines in extruder start code.
I have a triple extruder printer and added code to use purge bucket and to clean the nozzle on a wire brush on color change.
It is 34 lines long... After i close cura and come back only the first three lines are there... All else is gone.
This happens in all three extruder code boxes.

I would suggest opening a new issue then. This issue is about the equal sign in gcode, which has been resolved and will be available in an upcoming release. Please attach the gcode to this new issue / fill out the template.

How do i go about openning a new issue?
Can you tell me?

Never mind... Just found it... Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nemernemer picture Nemernemer  路  3Comments

Liger0 picture Liger0  路  3Comments

dstulken picture dstulken  路  3Comments

wi1k1n picture wi1k1n  路  3Comments

konvoj picture konvoj  路  3Comments