Skip to content

Cura constantly crashing with slice automatically #19904

@joezappie

Description

@joezappie

Cura Version

5.8.1

Operating System

Windows 11

Printer

S1 Pro with Sonic pad

Reproduction steps

I've been having regular cura crashes for the past several months. Every update I hope that some bug was fixed that stops it but unfortunately it hasn't.

I believe this has to do with "Slice Automatically" being enabled and making a change that causes Cura to reslice many times in a short period. I believe it also has to do with being in preview mode.

I can guarantee Cura to crash by:

  1. Enable Slice Automatically
  2. Switch to preview mode
  3. Add a filament change post processing script
  4. Type 2-3 numbers into the "layers box"

It seems that input boxes trigger on input, not on change, so typing fast into these boxes causes Cura to reslice several times in a short time, probably overlapping.

Cura just closes. I don't get any crash report. Looking in the cura.log in %appdata% I don't see much in terms of why it closed.

This happens with any model, as simple as a basic cube so I have not included a project file. I also have slowly removed every extension I use except moonraker, to see if an extension was causing the crash. It only happens when slice automatically is enabled. I never get a crash when manually slicing.

Demonstration

Heres a youtube video showing how easy it is for me to get Cura to crash. After typing 104 into the input field, I don't click on anything else. It seems the slice finishes, but everything hangs, I get the spinning cursor icon, then cura closes.
https://www.youtube.com/watch?v=EUsGKntIf3g

Proposed solution

Debounce slicing. I think slice automatically should delay ~500 ms. If another slice request is made within that time, it defers it again. This would reduce the number of times Cura reslices, whether that's from typing in an input box, or an extension causing a reslice after it just happened. Maybe Cura already does this, but to me it doesn't seem like that's happening.

Actual results

Cura crashes when making changes

Expected results

Cura shouldnt crash when making changes

Add your .zip and screenshots here ⬇️

I deleted my cura.log, reopened Cura, did the above steps and here's the log file after it crashed:
https://pastebin.com/vF8EDwWs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: On BacklogThe issue / feature has been reproduced and is deemed important enough to be fixed.Type: BugThe code does not produce the intended behavior.Type: ImprovementImprovement to existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions