Skip to content

Toolhead crash-detection confused about object names #14238

@pylorak

Description

@pylorak

Description of the bug

Toolhead crash detection is confused about objects names if objects are reordered and renamed before reopening project.

PS says the toolhead will crash into object 8 while printing object 2 (see second picture). This is obviously wrong as these are very far apart objects, not to mention object 8 is not even printed yet while printing object 2. If the project is saved, closed and reopened, the reported names become correct.

Project file & How to reproduce

Because the issue goes away if the project is saved and reopened, after-reorder.3mf is provided only for reference but cannot be used to reproduce the issue. You have to start from before_reorder.3mf.

To successfully reproduce the issue, the following steps are necessary:

  1. Open before_reorder.3mf. At this point print order is like in first picture.
  2. (Optionally slice the project and no issues are reported.)
  3. Without actually moving any objects on the bed, reorder them by moving their names in the list of objects on the right.
  4. Edit the object names in the list to reflect their print order. After this step the print order should look like the second picture.
  5. Slice the project. A toolhead crash is reported between the wrong objects.

Project files: bugreport.zip

Before reorder:
Image

After reorder:
Image

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

PrusaSlicer 2.9.1-rc1-win64

Operating system

Windwos 11

Printer model

Voron Trident 300mm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions