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

Scaling option doesn't work in Orca Slicer CLI #6454

Closed
2 of 3 tasks
uSyzex opened this issue Aug 13, 2024 · 7 comments · Fixed by #6969
Closed
2 of 3 tasks

Scaling option doesn't work in Orca Slicer CLI #6454

uSyzex opened this issue Aug 13, 2024 · 7 comments · Fixed by #6969
Labels
bug Something isn't working

Comments

@uSyzex
Copy link
Contributor

uSyzex commented Aug 13, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.1.1

Operating System (OS)

Windows

OS Version

Windows 10

Additional system information

i7 6700k, 32GB RAM, 3070Ti

Printer

Bambu X1C

How to reproduce

  1. ./orca-slicer.exe --scale 2 --slice 1 --allow-newer-file test_model.stl --debug 5
    OR
  2. ./orca-slicer.exe --scale 2 --info --allow-newer-file test_model.stl --debug 5

It doesn't work either with STLs or 3mf

Actual results

Error in the trace (debug 5) and nothing happens when no debug level is enabled.

Expected results

Scale the model and execute the action, info or slice.

Project file & Debug log uploads

[2024-08-13 17:32:06.686301] [0x0000d264] [trace]   Initializing StaticPrintConfigs
[2024-08-13 17:32:06.701300] [0x0000d264] [warning] cli mode, Current OrcaSlicer Version 01.09.03.50
[2024-08-13 17:32:06.701300] [0x0000d264] [info]    Will start to read model file now, file count :1

[2024-08-13 17:32:06.702301] [0x0000d264] [info]    allow_multicolor_oneplate 1, allow_rotations 1 skip_modified_gcodes 0 avoid_extrusion_cali_region 0 loaded_filament_ids size 0, clone_objects size 0, skip_useless_pick 0, allow_newer_file 1
[2024-08-13 17:32:06.702301] [0x0000d264] [info]    plate_to_slice=1, normative_check=1, use_first_fila_as_default=0
[2024-08-13 17:32:06.702301] [0x0000d264] [info]    read model file:test_model.stl

[2024-08-13 17:32:06.758041] [0x0000d264] [debug]   TriangleMesh::repair() started
[2024-08-13 17:32:06.760042] [0x0000d264] [debug]   TriangleMesh::repair() finished
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    object test_model.stl, id :5, from stl or other 3mf

[2024-08-13 17:32:06.764040] [0x0000d264] [warning] 1632: not support to slice plate 1, reset to 0
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    Slic3r::CLI::run:before load settings, file count=0

[2024-08-13 17:32:06.764040] [0x0000d264] [info]    current printer , new printer , current process , new process
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    current printer inherits , new printer inherits , current process inherits , new process inherits
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    old 3mf, no compatible printers, set to compatible
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    old printer , inherited from , old process , inherited from  ,compatible 1
[2024-08-13 17:32:06.764040] [0x0000d264] [warning] no filament colors found in projects
[2024-08-13 17:32:06.764040] [0x0000d264] [info]    total 1 models, 0 objects

[2024-08-13 17:32:06.765041] [0x0000d264] [debug]   Slic3r::GUI::PartPlate::set_index: plate_id update from 1517 to 0
[2024-08-13 17:32:06.765041] [0x0000d264] [debug]   Slic3r::GUI::PartPlate::set_index: plate_id update from 0 to 1
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    translate_old 0, shrink_to_new_bed 0, old bed size {200, 200, 100}
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlateList::reset_size:before size: plate_width 0, plate_depth 0, plate_height 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlateList::reset_size:after size: plate_width 200, plate_depth 200, plate_height 100
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::set_pos_and_size: plate_id 0, before, origin {0,0,0}, plate_width 0, plate_depth 0, plate_height 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::set_pos_and_size: with_instance_move 0, after, origin {0,0,0}, plate_width 200, plate_depth 200, plate_height 100
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::set_pos_and_size: plate_id 1, before, origin {0,0,0}, plate_width 0, plate_depth 0, plate_height 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::set_pos_and_size: with_instance_move 0, after, origin {240,0,0}, plate_width 200, plate_depth 200, plate_height 100
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2024-08-13 17:32:06.765041] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2024-08-13 17:32:06.765041] [0x0000d264] [error]   Slic3r::GUI::PartPlate::calc_exclude_triangles:Unable to create exclude triangles

[2024-08-13 17:32:06.765041] [0x0000d264] [info]    will start transforms, commands count 1

[2024-08-13 17:32:06.765041] [0x0000d264] [info]    process transform scale

[2024-08-13 17:32:08.101907] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2024-08-13 17:32:08.101907] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2024-08-13 17:32:08.102909] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2024-08-13 17:32:08.102909] [0x0000d264] [info]    Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0

Checklist of files to include

  • Log file
  • Project file

Anything else?

I have tried multiple way to format the scale option, none of them worked so I think it's more of a Slicer problem than just a CLI args not being formatted correctly.

I have opened two issues on Bambu-Studio repo regarding CLI issues:

@uSyzex uSyzex added the bug Something isn't working label Aug 13, 2024
@NiXTheDev
Copy link

Almost the same error, but only that it doesn't output anything at all, even on --debug 5

@uSyzex
Copy link
Contributor Author

uSyzex commented Aug 13, 2024

Almost the same error, but only that it doesn't output anything at all, even on --debug 5

Can you please provide your log, it could help fixing it.

@uSyzex
Copy link
Contributor Author

uSyzex commented Aug 19, 2024

Bug found in Bambu Studio. bambulab/BambuStudio#4628 (comment)

@NiXTheDev
Copy link

Almost the same error, but only that it doesn't output anything at all, even on --debug 5

Can you please provide your log, it could help fixing it.

There is no log to send, it doesn't output nothing

@uSyzex
Copy link
Contributor Author

uSyzex commented Aug 26, 2024

A fix has been implemented in BambuStudio, anyway to push it to Orca ?
bambulab/BambuStudio@2d4655e

@uSyzex
Copy link
Contributor Author

uSyzex commented Aug 30, 2024

bambulab/BambuStudio#4628 (comment)

fix pushed to 1.9.5 of BambuStudio.

@uSyzex
Copy link
Contributor Author

uSyzex commented Sep 29, 2024

It's been a month it has been pushed to BS, is there any ETA ?
Regards

Azio-Pantheon pushed a commit to Pantheon-Design/PantheonSlicer-3 that referenced this issue Oct 18, 2024
This PR aims to solve an exception when using OrcaSlicer in CLI which
caused the --scale option to not work.
All credits to @lanewei120 from BambuStudio for pushing it on BS repo.

Related commit on BS:

bambulab/BambuStudio@2d4655e#diff-2fa194122e892282ec589e51d5f7da65da83ec0488ced4b63930345d1273a353R3797
Related issue on BS:
bambulab/BambuStudio#4628
Related issue on Orca:
SoftFever/OrcaSlicer#6454
fixes #6454

```
./orca-slicer.exe --scale 2 --slice 1 --allow-newer-file test_model.stl --debug 5
```
The command above works again and scale the model then slice the scaled
model. Before, the scale would not complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants