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

G-Code contains moves out of range #13478

Closed
1 of 2 tasks
blastrock opened this issue Oct 12, 2024 · 10 comments
Closed
1 of 2 tasks

G-Code contains moves out of range #13478

blastrock opened this issue Oct 12, 2024 · 10 comments

Comments

@blastrock
Copy link

blastrock commented Oct 12, 2024

Description of the bug

By slicing the attached file, prusa slicer generates two moves out of range

;AFTER_LAYER_CHANGE
;20.2
G1 Z20.6
G1 X103.611 Y7.288 F12000
G1 X104.389 Y-94.984 ; <---- negative
G1 X104.389 Y7.354
G1 X205.106 Y15.784
G1 Z20.2 F720
G1 E.5 F2100
;TYPE:Perimeter

The second one is at height 27mm.

I have two issues with this:

  • It should not generate such invalid moves
  • It should print an error if such moves are generated, I usually see a "A toolpath outside the print area was detected" when that happens, but not this time.

Project file & How to reproduce

container.zip

  1. Open the project
  2. Slice it
  3. Open the gcode
  4. See lines 99520 and 136458 for a negative Y value

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.8.1-linux

Operating system

Debian sid

Printer model

Sovol SV06

@u89djt
Copy link

u89djt commented Oct 12, 2024

(fellow user looking around)
Noting in passing that the problem goes away when avoid crossing perimeters is deactivated, here are your negative moves:
image
The classic perimeter generator produces similar output.
If you right click and fix by windows repair algorithm, your negative y moves go away, and it looks like a feasible print.
But that doesn't apparently fix all the problems.
If I rotate the object 90 degrees, we see some strange stuff in the middle:
image
Each time I slice any given rotation of the object during a single session in the slicer, the outcome is slightly different.
I haven't found anything weird in the mesh yet. Seems like a bug.

@u89djt
Copy link

u89djt commented Oct 12, 2024

Here's a chopped down object that still has nonsensical moves:
choppedcontainer.zip
image

@u89djt
Copy link

u89djt commented Oct 12, 2024

Here's a simplified box that glitches and a fusion file with history for someone else to noodle with.
offsetnotch.zip
image

@blastrock
Copy link
Author

Thanks a lot for taking the time to do this!

If you right click and fix by windows repair algorithm

Could you elaborate? I can't find this feature

@u89djt
Copy link

u89djt commented Oct 12, 2024

You're very welcome! Looking at a problem that hasn't hit me yet is relaxing :).
OK, I've just noticed that you're not in Windows, so you probably haven't got the windows repair method!
If you just rotate the object as it is now clockwise through 90 degrees, there are some silly travel moves, but it looks a feasible print.
If you can't find a pose of the object that works, do you still have an option to send a mesh to a third party repair method in a linux build? It might be Netfabb. I think we can't know that it would have the same effect.

@blastrock
Copy link
Author

Oh I see, thank you! For the moment I removed the two out-of-range moves from the gcode and restarted the print, but I'll keep that in mind if I hit this kind of bug again.

@creativelies
Copy link

I have encountered this problem as well; slicing some files (which are years old and have been printed hundreds of times, are manifold etc.) with 2.8.1 with "Avoid Crossing Perimeters" selected results in negative moves between layer changes, where disabling that feature removes them. This does not happen in 2.8.0. I'm running Prusaslicer on MacOS.

Screenshot 2024-10-20 at 10 04 08 AM

That shown negative move is missing when slicing in 2.8.0 with identical settings except for the "Avoid crossing perimeters".

@yayo119
Copy link

yayo119 commented Nov 5, 2024

I encountered the same problem
#13558
macos 2.8.1

@Jan-Soustruznik
Copy link
Collaborator

Hello, @blastrock , thank you for your report. Created issue in internal tracker: SPE-2498. I will be fixed in some of next release. thank you

@lukasmatena
Copy link
Collaborator

Fixed in 2.9.0-alpha1. Closing.

lukasmatena pushed a commit that referenced this issue Dec 13, 2024
…):

- Turn off external motion planner when the instance is the same for layer
change.
- Properly set the instance shift for travel_to_first_position. Affects
  simple rectangular layer change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants