Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to slice, but no error code #17966

Closed
upatamby opened this issue Jan 10, 2024 · 13 comments
Closed

Unable to slice, but no error code #17966

upatamby opened this issue Jan 10, 2024 · 13 comments
Labels
Slicing Error 💥 A crash is caused by a model or a user interaction. This needs a differnt troubleshooting approach Status: On Backlog The issue / feature has been reproduced and is deemed important enough to be fixed. Type: Bug The code does not produce the intended behavior.

Comments

@upatamby
Copy link

Cura Version

5.6.0

Operating System

Windows 10

Printer

Ultimaker 3E

Name abnormal settings

No

Describe model location

Center. Moving does not fix the problem

Describe your model

It's watertight

Add your .zip here ⬇️

After opening cura and loading a model Cura starts slicing forever. If I move the model then the slicing stops because with the message: "Unable to slice with the current settings. The following settings have error:", but it shows no error code.
But, if I change a random setting then the slicing works fine, even if I change the setting and immediately change it back to the previous value. After applying this work around Cura keeps working fine, even if I remove the mpodel and load it again.
So it only (and always) happens immediately after a new start of Cura (also if I open a second instance of Cura).

This was a problem already in Cura 5.5.0
slice error.zip

@upatamby upatamby added Slicing Error 💥 A crash is caused by a model or a user interaction. This needs a differnt troubleshooting approach Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jan 10, 2024
@HellAholic
Copy link
Contributor

We made some improvements to prevent slicing fails in Cura 5.7.0 available to download now. I was able to slice your model successfully in 5.7.0. Could you test if that's the case for you as well?
You can download it here: https://github.com/Ultimaker/Cura/releases/tag/5.7.0

@upatamby
Copy link
Author

upatamby commented Apr 3, 2024

Thanks for looking at this issue. It still is not solved in my environment.
If I open Cura and load a model the automatic slicing starts and runs forever. If I move the model I get this error message without errorcode or indication which setting has an error. To be able to slice I have to make a random change in a random setting. After that it keeps working fine until the next time I restart Cura. Is there perhaps any ghost-setting active in the background? (Just guessing). Were you able to reproduce the issue? It is not dependent on the model. I tried several older and new models.

@HellAholic
Copy link
Contributor

Hey @upatamby ,
The model you shared doesn't even take 5 seconds to slice, which is confusing.
image

  • Do you have any plugins installed? Remove all 3rd party plugins you've installed and try again.
  • Can you disable the auto slice and try to slice manually, does it work then?
  • If you don't have any specific profiles set, I recommend clearing your configuration folder and adding the printer again to see if that resolves the issue. [On Windows: %APPDATA%\cura\ -> Remove the 4.X or 5.X folders in there]

This does not seem to be a Cura issue but rather something on your device.
The slicing error is due to the automatic slicing trying to send data while either a setting is being changed or model is removed. So it's not a slice crash but an interruption in the process, but we don't have a separate message for that.

@upatamby
Copy link
Author

upatamby commented Apr 4, 2024

I uninstalled all add-ins. Same issue.
I disabled auto slice and tried to slice manually. This works fine. So I will leave auto slice off as a temporary work around.
I deleted all 4.x and 5.x folders and added my printer again. Still the same issue as soon as I enable auto slice.
Is there anything else I could try?

@HellAholic
Copy link
Contributor

We first need to find out why the auto slice is causing the issue for you, for now the best path forward would be using cura without auto-slice as you suggested.
To help us narrow down the cause of the issue, enable the auto slice so that it fails to slice, then go to the same configuration folder (cura\5.7) and find the cura.log file.
If you could find and upload your cura.log files that would be helpful as I cannot reproduce the issue on the machines I have access to (currently 4 different machines).
I'll reopen this issue and if you can provide the log file I'll add another ticket to investigate the issue with the log.

Thanks :)

@HellAholic HellAholic reopened this Apr 4, 2024
@upatamby
Copy link
Author

upatamby commented Apr 4, 2024

cura.zip

I did the following:

  • delete configuration.
  • start Cura and add printer again
  • enable auto slice
  • restart Cura
  • drag a model into Cura
  • slicing started at: 2024-04-04 15:47:52,265 (see log file)
  • wait a few minutes (nothing happens)
  • change a random property (support enabled)
  • slicing finished in a few seconds
  • restart cura
  • drag model into Cura
  • slicing started
  • In preferences I disabled auto slice and immediately enabled it again. Slicing ended with error.
  • I repeated this a few times
  • Finally I changed a property (disabled support) and slicing finished normally within a few seconds

Thank you for all your effort. I hope you can find a solution.

@HellAholic
Copy link
Contributor

Special thanks for the detailed explanation and all the work you've put in making the report :)
I've added a ticket to discuss and investigate the logs.
For internal Cura team reference: CURA-11815

@HellAholic HellAholic added Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. and removed Status: Triage This ticket requires input from someone of the Cura team labels Apr 4, 2024
@Carlos121084
Copy link

Hello All,
I have the exact same issue since around 1 year.
It happens only with auto slice.
And like @upatamby , if I change a random parameter, and remove that change 1 second after, then auto slice works fine until I restart the software.
Without auto slice, the slice button works with no settings modifications
Hope this can help on solving this (and for sure, that's clearly not a big deal)
Thanks

@trancio
Copy link

trancio commented Sep 3, 2024

I have the same issue with 5.7.2, 5.8.0. and 5.8.1 (Linux AppImage on Ubuntu 24.04)

@Ghostkeeper
Copy link
Collaborator

Yes, I've seen this issue too since version 5.6.0, and still in 5.8.1. It occurs only with auto-slicing enabled.

When the first model is loaded, any model, the slicing will stay on the indefinite progress bar (before the first progress message is sent back by CuraEngine to the front-end).
Changing the build plate then will cause the slicing to restart, but this time and any following times it will give an error message:
image

Changing any setting (and optionally, changing it back) will cause the slicing to properly start and slice successfully for the rest of time until Cura is restarted.

A relevant fragment of the log:

2024-09-11 18:33:44,070 - DEBUG - [MainThread] UM.Operations.OperationStack.push [72]: TranslateOp.(node=<CuraSceneNode object: 'cube.stl'>,trans.=<0.000,0.688,0.000>), took 1ms
2024-09-11 18:33:44,080 - DEBUG - [MainThread] UM.Operations.OperationStack.push [72]: PlatformPhysicsOp.(trans.=<0.000,-9.632,0.000>), took 1ms
2024-09-11 18:33:44,134 - DEBUG - [EngineOutputThread] UM.Backend.Backend._backendLog [140]: [Backend] [2024-09-11 18:33:44.134] [info] Connected to 127.0.0.1:49674
2024-09-11 18:33:44,148 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.028250694274902344 seconds
2024-09-11 18:33:44,605 - INFO - [MainThread] CuraEngineBackend.CuraEngineBackend._createSnapshot [331]: Creating thumbnail image (just before slice)...
2024-09-11 18:33:44,606 - DEBUG - [MainThread] UM.Scene.Camera._preferencesChanged [252]: Changing perspective mode to orthographic.
2024-09-11 18:33:44,609 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/tmp/.mount_Cura-5dHztz2/share/cura/resources/shaders/overhang.shader]...
2024-09-11 18:33:44,612 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/tmp/.mount_Cura-5dHztz2/share/cura/resources/shaders/transparent_object.shader]...
2024-09-11 18:33:44,613 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/tmp/.mount_Cura-5dHztz2/share/cura/resources/shaders/striped.shader]...
2024-09-11 18:33:44,716 - INFO - [MainThread] CuraEngineBackend.CuraEngineBackend.slice [348]: Starting to slice...
2024-09-11 18:33:44,716 - DEBUG - [MainThread] CuraEngineBackend.CuraEngineBackend.slice [368]: Going to slice build plate [0]!
2024-09-11 18:33:45,966 - WARNING - [MainThread] CuraEngineBackend.CuraEngineBackend._onStartSliceCompleted [499]: Unable to slice with the current settings. The following settings have errors: 

@MeNAce22AU
Copy link

I have the same issue.

@HellAholic HellAholic added Status: On Backlog The issue / feature has been reproduced and is deemed important enough to be fixed. and removed Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. labels Sep 18, 2024
@Ghostkeeper
Copy link
Collaborator

This issue seems to be fixed in version 5.9. For me at least. @upatamby would you like to try again with the new release?

@upatamby
Copy link
Author

upatamby commented Dec 2, 2024

Hooray!!! The issue no longer occurs for me in version 5.9.0.
Thanks to everyone who contributed to the solution.

@upatamby upatamby closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Slicing Error 💥 A crash is caused by a model or a user interaction. This needs a differnt troubleshooting approach Status: On Backlog The issue / feature has been reproduced and is deemed important enough to be fixed. Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

6 participants