Jump to content
Ultimaker Community of 3D Printing Experts
Sign in to follow this  
kaiseal1

Slicing error

Recommended Posts

Hi,

I always get the following error when slicing (different objects)

"Something went wrong during slicing"

Log:

File \\st-kai01\users\Alex.Kaiser\Ultimaker\Motorsense.stl is being chain exported.

Carve procedure took 6 seconds.

Preface procedure took 4 seconds.

Inset procedure took 46 seconds.

Fill procedure took 3 minutes 23 seconds.

Speed procedure took 5 seconds.

Raft procedure took 14 seconds.

Traceback (most recent call last):

File "app_main.py", line 51, in run_toplevel

File "C:\Program Files (x86)\Cura_12.07\Cura\cura.py", line 77, in

main()

File "C:\Program Files (x86)\Cura_12.07\Cura\cura.py", line 71, in main

sliceRun.runSlice(args)

File "C:\Program Files (x86)\Cura_12.07\Cura\util\sliceRun.py", line 81, in runSlice

skeinforge_craft.writeOutput(fileName)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

return pluginModule.writeOutput(fileName, shouldAnalyze)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

text = craftModule.getCraftedText(fileName, text)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 85, in getCraftedText

return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 95, in getCraftedTextFromText

return SkirtSkein().getCraftedGcode(gcodeText, repository)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 224, in getCraftedGcode

self.parseLine(line)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 294, in parseLine

self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine)

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

return getDoubleAfterFirstLetter( splitLine[indexOfF] )

File "C:\Program Files (x86)\Cura_12.07\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

return float(word[1 :])

ValueError: invalid literal for float()

Error only occurs on Win7 x64 - not on my Win7 x86

Can anyone help me?

best regards

Alex

Share this post


Link to post
Share on other sites

Sorry for my late reply.

The problem still exists. I copied the fully functional cura_rc4 directory from my Win7 x86 notebook to my Win7 x64 PC. When I'm slicing the same part I get the "ValueError: invalid literal for float()" error

?

best regards

Alex

Share this post


Link to post
Share on other sites

Cool.

As the bug happens in "skirt.py", in the function "parseLine". Could you add a debug print statement there? A simple "print line" on line 285 should do it. You need proper indentation (2 tabs in front) or else it won't work and give even more errors.

This will produce a shitload of output, but the final print line before the error might give some light on this problem.

Share this post


Link to post
Share on other sites

Hi Daid,

here the debug log. I have seen the same error also in raft.py

G1 X97.5269 Y102.7257 Z35.0 F6000.0

G1 X97.8403 Y102.9781 Z35.0 F6000.0

G1 X94.0237 Y106.7946 Z35.0 F6000.0

G1 X94.3268 Y107.0572 Z35.0 F6000.0

G1 X98.1793 Y103.2047 Z35.0 F6000.0

G1 X98.5651 Y103.3846 Z35.0 F6000.0

G1 X94.6516 Y107.2981 Z35.0 F6000.0

G1 X94.9772 Y107.5382 Z35.0 F6000.0

G1 X98.9718 Y103.5436 Z35.0 F6000.0

G1 X99.4436 Y103.6374 Z35.0 F6000.0

G1 X95.3309 Y107.7502 Z35.0 F6000.0

G1 X95.6846 Y107.9622 Z35.0 F6000.0

G1 X99.9708 Y103.676 Z35.0 F6000.0

G1 X100.5796 Y103.6328 Z35.0 F6000.0

G1 X96.0648 Y108.1476 Z35.0 F6000.0

G1 X96.4488 Y108.3293 Z35.0 F6000.0

G1 X101.3643 Y103.4138 Z35.0 F6000.0

M103

()

()

()

()

()

M103

M113 S0.0

Skirt procedure took 24 seconds.

Comb procedure took 3 seconds.

Traceback (most recent call last):

File "app_main.py", line 51, in run_toplevel

File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 77, in

main()

File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 71, in main

sliceRun.runSlice(args)

File "C:\Program Files (x86)\Cura_RC4\Cura\util\sliceRun.py", line 81, in runSlice

skeinforge_craft.writeOutput(fileName)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

return pluginModule.writeOutput(fileName, shouldAnalyze)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

text = craftModule.getCraftedText(fileName, text)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 116, in getCraftedText

return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 126, in getCraftedTextFromText

return CoolSkein().getCraftedGcode(gcodeText, repository)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 275, in getCraftedGcode

self.parseLine(line)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 379, in parseLine

layerTime = self.getLayerTime()

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\cool.py", line 291, in getLayerTime

feedRateMinute = gcodec.getFeedRateMinute(feedRateMinute, splitLine)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

return getDoubleAfterFirstLetter( splitLine[indexOfF] )

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

return float(word[1 :])

ValueError: invalid literal for float()

Best regards

Alex

Share this post


Link to post
Share on other sites

That sounds more like a problem with pypy then the actual python code. Could you try renaming the pypy directory, this should make Cura switch back to python for slicing.

Share this post


Link to post
Share on other sites

I have done a lot of test-slices now.

What I can say:

*) Python is OK

*) The "invalid literal for float()" exceptions occure in different modules.

*) As you can see below there is always a "special" charakter included in the string-value

alex

File C:\TEMP\Motorsense2.stl is being chain exported.

Carve procedure took 5 seconds.

Preface procedure took 3 seconds.

Inset procedure took 57 seconds.

Fill procedure took 3 minutes 17 seconds.

Speed procedure took 6 seconds.

Raft procedure took 16 seconds.

Traceback (most recent call last):

File "app_main.py", line 51, in run_toplevel

File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 77, in

main()

File "C:\Program Files (x86)\Cura_RC4\Cura\cura.py", line 71, in main

sliceRun.runSlice(args)

File "C:\Program Files (x86)\Cura_RC4\Cura\util\sliceRun.py", line 81, in runSlice

skeinforge_craft.writeOutput(fileName)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 135, in writeOutput

return pluginModule.writeOutput(fileName, shouldAnalyze)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\export.py", line 275, in writeOutput

gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[: -1], gcodeText)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_utilities\skeinforge_craft.py", line 44, in getChainTextFromProcedures

text = craftModule.getCraftedText(fileName, text)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 85, in getCraftedText

return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 95, in getCraftedTextFromText

return SkirtSkein().getCraftedGcode(gcodeText, repository)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 224, in getCraftedGcode

self.parseLine(line)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\skeinforge_application\skeinforge_plugins\craft_plugins\skirt.py", line 294, in parseLine

self.feedRateMinute = gcodec.getFeedRateMinute(self.feedRateMinute, splitLine)

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 103, in getFeedRateMinute

return getDoubleAfterFirstLetter( splitLine[indexOfF] )

File "C:\Program Files (x86)\Cura_RC4\Cura\cura_sf\fabmetheus_utilities\gcodec.py", line 75, in getDoubleAfterFirstLetter

return float(word[1 :])

ValueError: invalid literal for float(): '420°.0'

Share this post


Link to post
Share on other sites

Odd, could be some strange Win7 64bit PyPy error, or a problem with the memory of your PC (do you have other programs that crash strangely?)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!