--arrange 1 does not get part to fit onto bet even with automatic orientation set in CLI #27

Open
opened 2026-04-05 16:18:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @ndekker55 on 4/2/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.3.2

Operating System (OS)

Linux

OS Version

Ubuntu 24.04

Additional system information

Inside a docker container used to automatically slice requested files for printing. Most of the time it works well, it looks like the part goes outside the realms of the build area and fails the slice after auto orientation and arrangement. if orient is not used it slices fine. Part is 152mmx43.1mmx43.1mm. Build volume is prusa XL, using all standard profiles from Orcaslicer and standard filament. Organic supports are enabled as well.

Printer

Prusa XL

How to reproduce

Run this command with proper certain STL files.
xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/opt/squashfs-root/resources/profiles/Prusa/process/0.20mm Structural @Prusa XL 0.4.json" --load-filaments /tmp/debug/filament.json --arrange 1 --orient 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_supports.3mf /app/uploads/2026-04-02/TEST/{FILENAME}.STL

Fails

Run this command with certain STL files.
xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/{FILENAME}.STL

Runs great.

See results below.

Actual results

xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/opt/squashfs-root/resources/profiles/Prusa/process/0.20mm Structural @Prusa XL 0.4.json" --load-filaments /tmp/debug/filament.json --arrange 1 --orient 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL
overhang, bottom, bothull, contour, A_laf, A_prj, unprintability
orientation:-0.0000 -0.0000 1.0000, cost:3223.2, 7.3, 14.6, 10.8, 986.9, 0.0, 400.4
orientation:-0.0000 -1.0000 -0.0000, cost:1125.4, 418.0, 278.7, 81.8, 27.6, 0.0, 3.4
orientation:-0.0000 1.0000 0.0000, cost:1395.6, 4.3, 8.6, 8.3, 19.0, 0.0, 267.0
orientation: 0.9063 -0.0000 -0.4226, cost:3141.5, 0.0, 0.0, 0.0, 1065.3, 0.0, 8251.3
orientation: 0.7071 -0.0000 -0.7071, cost:3250.4, 0.0, 0.0, 0.0, 1088.4, 0.0, 8532.1
orientation:-0.7071 -0.0000 0.7071, cost:3247.8, 21.9, 14.6, 18.7, 1088.4, 0.0, 165.6
orientation:-0.4226 -0.0000 0.9063, cost:3030.9, 7.3, 14.6, 10.8, 1112.4, 0.0, 377.4
orientation:-0.9063 -0.0000 0.4226, cost:3242.9, 21.9, 14.6, 18.7, 1065.3, 0.0, 165.3
orientation: 0.4226 -0.0000 -0.9063, cost:3138.5, 7.3, 14.6, 10.8, 1097.9, 0.0, 390.5
orientation: 0.9962 -0.0000 -0.0872, cost:3245.5, 11.0, 7.3, 13.2, 984.8, 0.0, 307.0
orientation:-0.9962 -0.0000 0.0872, cost:3252.3, 21.9, 14.6, 18.7, 992.1, 0.0, 165.6
orientation:-0.9925 0.0880 -0.0845, cost:3282.4, 4.1, 366.0, 8.1, 1462.0, 0.0, 122.4
orientation:-0.9925 0.0880 0.0845, cost:3279.9, 4.1, 366.0, 8.1, 1462.0, 0.0, 122.4
orientation:-0.9640 0.0880 0.2510, cost:3277.5, 4.1, 366.0, 8.1, 1471.7, 0.0, 122.3
orientation:-0.9640 0.0880 -0.2510, cost:3277.5, 4.1, 366.0, 8.1, 1471.7, 0.0, 122.3
orientation:-0.9077 0.0880 -0.4103, cost:3277.5, 4.1, 366.0, 8.1, 1452.7, 0.0, 122.3
orientation:-0.9077 0.0880 0.4103, cost:3277.5, 4.1, 366.0, 8.1, 1452.7, 0.0, 122.3
orientation:-0.8253 0.0880 -0.5578, cost:3281.8, 4.1, 366.0, 8.1, 1441.0, 0.0, 122.4
orientation:-0.8253 0.0880 0.5578, cost:3280.0, 4.1, 366.0, 8.1, 1441.1, 0.0, 122.3
orientation:-0.7192 0.0879 0.6893, cost:3280.1, 4.1, 366.0, 8.1, 1429.5, 0.0, 122.3
orientation:-0.7192 0.0879 -0.6893, cost:3280.0, 4.1, 366.0, 8.1, 1429.4, 0.0, 122.3
orientation:-0.5923 0.0879 0.8009, cost:3280.2, 4.1, 366.0, 8.1, 1417.8, 0.0, 122.3
orientation:-0.5923 0.0879 -0.8009, cost:3280.1, 4.1, 366.0, 8.1, 1417.5, 0.0, 122.3
orientation:-0.4485 0.0879 0.8895, cost:3276.7, 4.1, 366.0, 8.1, 1406.1, 0.0, 122.2
orientation:-0.7071 -0.0000 0.7071, cost:3245.2, 21.9, 14.6, 18.7, 1088.4, 0.0, 165.5
orientation:-0.0000 -0.7071 0.7071, cost:3547.9, 1.3, 2.6, 4.6, 43.8, 0.0, 1649.4
orientation: 0.7071 -0.0000 0.7071, cost:3364.1, 0.0, 0.0, 0.0, 1088.5, 0.0, 8823.0
orientation:-0.0000 0.7071 0.7071, cost:3600.2, 5.8, 3.9, 9.6, 39.5, 0.0, 576.7
orientation:-1.0000 -0.0000 -0.0000, cost:3228.3, 0.0, 0.0, 0.0, 1009.2, 0.0, 8467.2
orientation:-0.7071 -0.7071 -0.0000, cost:3554.6, 0.0, 0.0, 0.0, 48.7, 0.0, 9200.6
orientation: 0.7071 -0.7071 -0.0000, cost:3651.2, 3.9, 2.6, 7.9, 46.5, 0.0, 807.2
orientation: 1.0000 -0.0000 -0.0000, cost:3223.0, 21.9, 14.6, 18.7, 1009.2, 0.0, 164.1
orientation: 0.7071 0.7071 -0.0000, cost:3706.7, 5.8, 3.9, 9.6, 44.8, 0.0, 593.8
orientation:-0.7071 0.7071 -0.0000, cost:3607.6, 5.8, 3.9, 9.6, 42.6, 0.0, 577.9
orientation:-0.7071 -0.0000 -0.7071, cost:3134.0, 21.9, 14.6, 18.7, 1088.5, 0.0, 159.9
orientation:-0.0000 -0.7071 -0.7071, cost:3436.7, 1.3, 2.6, 4.6, 43.4, 0.0, 1597.7
orientation: 0.7071 -0.0000 -0.7071, cost:3247.8, 0.0, 0.0, 0.0, 1088.4, 0.0, 8525.5
orientation:-0.0000 0.7071 -0.7071, cost:3489.0, 5.8, 3.9, 9.6, 39.9, 0.0, 558.9
orientation:-0.0000 -0.0000 -1.0000, cost:3223.1, 7.3, 14.6, 10.8, 986.9, 0.0, 400.3
best:-0.000000 -1.000000 -0.000000, costs:1125.4, 418.0, 278.7, 81.8, 27.6, 0.0, 3.4
[2026-04-02 13:31:13.036730] [0x000079ff01de6300] [error] plate 1: Nothing to be sliced, Either the print is empty or no object is fully inside the print volume before apply.

run found error, return -50, exit...
root@e8b01c7b9b51:/app# xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[2026-04-02 13:32:00.141823] [0x000073c45c535300] [error] error_code 65544, description: Wayland: Failed to connect to display

[2026-04-02 13:32:00.141857] [0x000073c45c535300] [error] glfwInit return error, Error code: 65544, Error: Wayland: Failed to connect to display

[2026-04-02 13:32:00.141908] [0x000073c45c535300] [error] Unable to init glew library, Error: Missing GL version
[2026-04-02 13:32:00.141911] [0x000073c45c535300] [error] init opengl failed! skip thumbnail generating

Expected results

root@e8b01c7b9b51:/app# xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[2026-04-02 13:32:00.141823] [0x000073c45c535300] [error] error_code 65544, description: Wayland: Failed to connect to display

[2026-04-02 13:32:00.141857] [0x000073c45c535300] [error] glfwInit return error, Error code: 65544, Error: Wayland: Failed to connect to display

[2026-04-02 13:32:00.141908] [0x000073c45c535300] [error] Unable to init glew library, Error: Missing GL version
[2026-04-02 13:32:00.141911] [0x000073c45c535300] [error] init opengl failed! skip thumbnail generating

Project file & Debug log uploads

orcaslicer bug.zip

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

*Originally created by @ndekker55 on 4/2/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version 2.3.2 ### Operating System (OS) Linux ### OS Version Ubuntu 24.04 ### Additional system information Inside a docker container used to automatically slice requested files for printing. Most of the time it works well, it looks like the part goes outside the realms of the build area and fails the slice after auto orientation and arrangement. if orient is not used it slices fine. Part is 152mmx43.1mmx43.1mm. Build volume is prusa XL, using all standard profiles from Orcaslicer and standard filament. Organic supports are enabled as well. ### Printer Prusa XL ### How to reproduce Run this command with proper certain STL files. `xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/opt/squashfs-root/resources/profiles/Prusa/process/0.20mm Structural @Prusa XL 0.4.json" --load-filaments /tmp/debug/filament.json --arrange 1 --orient 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_supports.3mf /app/uploads/2026-04-02/TEST/{FILENAME}.STL` Fails Run this command with certain STL files. `xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/{FILENAME}.STL` Runs great. See results below. ### Actual results xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/opt/squashfs-root/resources/profiles/Prusa/process/0.20mm Structural @Prusa XL 0.4.json" --load-filaments /tmp/debug/filament.json --arrange 1 --orient 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL overhang, bottom, bothull, contour, A_laf, A_prj, unprintability orientation:-0.0000 -0.0000 1.0000, cost:3223.2, 7.3, 14.6, 10.8, 986.9, 0.0, 400.4 orientation:-0.0000 -1.0000 -0.0000, cost:1125.4, 418.0, 278.7, 81.8, 27.6, 0.0, 3.4 orientation:-0.0000 1.0000 0.0000, cost:1395.6, 4.3, 8.6, 8.3, 19.0, 0.0, 267.0 orientation: 0.9063 -0.0000 -0.4226, cost:3141.5, 0.0, 0.0, 0.0, 1065.3, 0.0, 8251.3 orientation: 0.7071 -0.0000 -0.7071, cost:3250.4, 0.0, 0.0, 0.0, 1088.4, 0.0, 8532.1 orientation:-0.7071 -0.0000 0.7071, cost:3247.8, 21.9, 14.6, 18.7, 1088.4, 0.0, 165.6 orientation:-0.4226 -0.0000 0.9063, cost:3030.9, 7.3, 14.6, 10.8, 1112.4, 0.0, 377.4 orientation:-0.9063 -0.0000 0.4226, cost:3242.9, 21.9, 14.6, 18.7, 1065.3, 0.0, 165.3 orientation: 0.4226 -0.0000 -0.9063, cost:3138.5, 7.3, 14.6, 10.8, 1097.9, 0.0, 390.5 orientation: 0.9962 -0.0000 -0.0872, cost:3245.5, 11.0, 7.3, 13.2, 984.8, 0.0, 307.0 orientation:-0.9962 -0.0000 0.0872, cost:3252.3, 21.9, 14.6, 18.7, 992.1, 0.0, 165.6 orientation:-0.9925 0.0880 -0.0845, cost:3282.4, 4.1, 366.0, 8.1, 1462.0, 0.0, 122.4 orientation:-0.9925 0.0880 0.0845, cost:3279.9, 4.1, 366.0, 8.1, 1462.0, 0.0, 122.4 orientation:-0.9640 0.0880 0.2510, cost:3277.5, 4.1, 366.0, 8.1, 1471.7, 0.0, 122.3 orientation:-0.9640 0.0880 -0.2510, cost:3277.5, 4.1, 366.0, 8.1, 1471.7, 0.0, 122.3 orientation:-0.9077 0.0880 -0.4103, cost:3277.5, 4.1, 366.0, 8.1, 1452.7, 0.0, 122.3 orientation:-0.9077 0.0880 0.4103, cost:3277.5, 4.1, 366.0, 8.1, 1452.7, 0.0, 122.3 orientation:-0.8253 0.0880 -0.5578, cost:3281.8, 4.1, 366.0, 8.1, 1441.0, 0.0, 122.4 orientation:-0.8253 0.0880 0.5578, cost:3280.0, 4.1, 366.0, 8.1, 1441.1, 0.0, 122.3 orientation:-0.7192 0.0879 0.6893, cost:3280.1, 4.1, 366.0, 8.1, 1429.5, 0.0, 122.3 orientation:-0.7192 0.0879 -0.6893, cost:3280.0, 4.1, 366.0, 8.1, 1429.4, 0.0, 122.3 orientation:-0.5923 0.0879 0.8009, cost:3280.2, 4.1, 366.0, 8.1, 1417.8, 0.0, 122.3 orientation:-0.5923 0.0879 -0.8009, cost:3280.1, 4.1, 366.0, 8.1, 1417.5, 0.0, 122.3 orientation:-0.4485 0.0879 0.8895, cost:3276.7, 4.1, 366.0, 8.1, 1406.1, 0.0, 122.2 orientation:-0.7071 -0.0000 0.7071, cost:3245.2, 21.9, 14.6, 18.7, 1088.4, 0.0, 165.5 orientation:-0.0000 -0.7071 0.7071, cost:3547.9, 1.3, 2.6, 4.6, 43.8, 0.0, 1649.4 orientation: 0.7071 -0.0000 0.7071, cost:3364.1, 0.0, 0.0, 0.0, 1088.5, 0.0, 8823.0 orientation:-0.0000 0.7071 0.7071, cost:3600.2, 5.8, 3.9, 9.6, 39.5, 0.0, 576.7 orientation:-1.0000 -0.0000 -0.0000, cost:3228.3, 0.0, 0.0, 0.0, 1009.2, 0.0, 8467.2 orientation:-0.7071 -0.7071 -0.0000, cost:3554.6, 0.0, 0.0, 0.0, 48.7, 0.0, 9200.6 orientation: 0.7071 -0.7071 -0.0000, cost:3651.2, 3.9, 2.6, 7.9, 46.5, 0.0, 807.2 orientation: 1.0000 -0.0000 -0.0000, cost:3223.0, 21.9, 14.6, 18.7, 1009.2, 0.0, 164.1 orientation: 0.7071 0.7071 -0.0000, cost:3706.7, 5.8, 3.9, 9.6, 44.8, 0.0, 593.8 orientation:-0.7071 0.7071 -0.0000, cost:3607.6, 5.8, 3.9, 9.6, 42.6, 0.0, 577.9 orientation:-0.7071 -0.0000 -0.7071, cost:3134.0, 21.9, 14.6, 18.7, 1088.5, 0.0, 159.9 orientation:-0.0000 -0.7071 -0.7071, cost:3436.7, 1.3, 2.6, 4.6, 43.4, 0.0, 1597.7 orientation: 0.7071 -0.0000 -0.7071, cost:3247.8, 0.0, 0.0, 0.0, 1088.4, 0.0, 8525.5 orientation:-0.0000 0.7071 -0.7071, cost:3489.0, 5.8, 3.9, 9.6, 39.9, 0.0, 558.9 orientation:-0.0000 -0.0000 -1.0000, cost:3223.1, 7.3, 14.6, 10.8, 986.9, 0.0, 400.3 best:-0.000000 -1.000000 -0.000000, costs:1125.4, 418.0, 278.7, 81.8, 27.6, 0.0, 3.4 [2026-04-02 13:31:13.036730] [0x000079ff01de6300] [error] plate 1: Nothing to be sliced, Either the print is empty or no object is fully inside the print volume before apply. run found error, return -50, exit... root@e8b01c7b9b51:/app# xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL error: XDG_RUNTIME_DIR is invalid or not set in the environment. [2026-04-02 13:32:00.141823] [0x000073c45c535300] [error] error_code 65544, description: Wayland: Failed to connect to display [2026-04-02 13:32:00.141857] [0x000073c45c535300] [error] glfwInit return error, Error code: 65544, Error: Wayland: Failed to connect to display [2026-04-02 13:32:00.141908] [0x000073c45c535300] [error] Unable to init glew library, Error: Missing GL version [2026-04-02 13:32:00.141911] [0x000073c45c535300] [error] init opengl failed! skip thumbnail generating ### Expected results root@e8b01c7b9b51:/app# xvfb-run -a --server-args="-screen 0 1024x768x24" orcaslicer --load-settings "/tmp/debug/machine.json;/tmp/debug/process.json" --load-filaments /tmp/debug/filament.json --arrange 1 --ensure-on-bed --slice 0 --export-3mf /tmp/debug/no_orient_supports.3mf /app/uploads/2026-04-02/TEST/9649981.STL error: XDG_RUNTIME_DIR is invalid or not set in the environment. [2026-04-02 13:32:00.141823] [0x000073c45c535300] [error] error_code 65544, description: Wayland: Failed to connect to display [2026-04-02 13:32:00.141857] [0x000073c45c535300] [error] glfwInit return error, Error code: 65544, Error: Wayland: Failed to connect to display [2026-04-02 13:32:00.141908] [0x000073c45c535300] [error] Unable to init glew library, Error: Missing GL version [2026-04-02 13:32:00.141911] [0x000073c45c535300] [error] init opengl failed! skip thumbnail generating ### Project file & Debug log uploads [orcaslicer bug.zip](https://github.com/user-attachments/files/26439299/orcaslicer.bug.zip) ### Checklist of files to include - [ ] Log file - [x] Project file ### Anything else? _No response_
MrUnknownDE added the bugbugbugbugbugbugbugbugbugbugbugbugbug labels 2026-04-05 16:18:11 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#27