bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
2.18k stars 291 forks source link

1.9.0 Beta - Slicing fails with Error Code 127 - command not found #3813

Closed ARSoderberg closed 3 months ago

ARSoderberg commented 7 months ago

Bambu Studio Version

1.9.0 Beta

Where is the application from?

Bambu Lab github releases

OS version

macOS Sonoma 14.4.1

Additional system information

CPU: Apple M1 Pro, Memory 16GB

Printer

Bambu Lab P1P upgraded to P1S

How to reproduce

  1. Load attached example .3mf file.
  2. Slice plate.

Actual results

The slicer processes at least 90% then errors out with the following message.
Post-processing script Notes - Smooth plate on file
/var/folders/ng/ydkffsbn2ql6ndpmrw_yt7lr0000gn/T/bambu_model/Tue_Apr_02/17_59_05#80254#55/Me tadata/.80254.0.gcode failed. 
Error code: 127
 
Output:
/bn/sh: Notes: command not found 
 


Screenshot 2024-04-02 at 5 59 13 PM

Expected results

The file is sliced and ready for printing.

Project file & Debug log uploads

error 127 test.3mf.zip debug_Tue_Apr_02_17_55_57_80202.log.0.zip

Checklist of files to include

lanewei120 commented 7 months ago

it seems an error post-processing scripts added image please clear this scripts and try again

ARSoderberg commented 7 months ago

lanewei120 No, that is not the cause. I have never added any post-processing scripts. I re-checked my submitted test .3mf file and there is no post project script. I have also checked other projects that get this error, and they too do not have any post-processing scripts (no orange circle arrow).

Screenshot 2024-04-07 at 5 03 19 PM
lanewei120 commented 7 months ago

@ARSoderberg ok so where is the printer profile "Cooper Medium Production 0.4 nozzle" from? could you show you detailed steps to reproduce it? including create this printer profile

from your 3mf, the post-processing scripts was wrongly set to invalid value

ARSoderberg commented 7 months ago

lanewei120 I stand corrected.

Ok, when comparing process file 'Cooper Medium Production 22@P1P.json' and a few other process profiles compared to those that come built-in, I find the following in the 'post_process' field in the one listed and some other of my .json files.

"post_process": [ "", "Notes - Smooth plate\n", "25 Top-Left Medium\n", "25 Standard Medium" ],

Note that the text of this field does not show in BambuStudio, that editable field is empty. and in my Beta 3 of BambuStudio 1.9.0.70 the red highlighted circle arrow (from your screenshot does not appear for me when using the processs profiles that have the issue.

Upon removing that field and it's data, follow up testing shows that the error 127 does not occur.

The bug in this case seems to be the empty first line in the post_process field above, it suppresses the display of the text that follows. Whe the "", is removed. The 3 lines of notes do render in the Post-Processing scripts field inside BambuStudio. I have no clue how this content of this field came about.

Thanks for helping me track down my pain in the neck.

So it seems that this Error 127 'bug' is not one, and this can be closed.

lanewei120 commented 7 months ago

@ARSoderberg thanks for doing this

we will also try to reproduce this on our side @DanBao-Bambu will have a try

BambulabRobot commented 3 months ago

This issue has been marked as inactive due to no response for 90 days.

lanewei120 commented 3 months ago

as we can not reproduce it , we can not find why this post-process scripts was changed close this issue currently and keep on watching if can reproduce again, we will dig into it