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

Script stuck and not generating GCode #14

Open
vcasadei opened this issue Jan 22, 2024 · 0 comments
Open

Script stuck and not generating GCode #14

vcasadei opened this issue Jan 22, 2024 · 0 comments

Comments

@vcasadei
Copy link

Hi, I must say I really, really like your project, congrats!

I am having however some problems with some models not completing the script and being stuck in the command line.

For example, I have successfuly created the following gcode and it was great.
QIDI_ylHnvNwElv

however, when I try to create a similar model, the script does not complete and gets stuck in the command line.
ApplicationFrameHost_Iq9tGNOiGr

This is the output from the command line:

`
./curvislice.bat /c/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl

C:\msys64\home\vitor\boticario\curvislicer>REM @echo off

C:\msys64\home\vitor\boticario\curvislicer>set gurobi=0

C:\msys64\home\vitor\boticario\curvislicer>set volumic=0

C:\msys64\home\vitor\boticario\curvislicer>set nozzle=0.4

C:\msys64\home\vitor\boticario\curvislicer>set layer=0.3

C:\msys64\home\vitor\boticario\curvislicer>set filament=1.75

C:\msys64\home\vitor\boticario\curvislicer>set ironing=0

C:\msys64\home\vitor\boticario\curvislicer>set model=

C:\msys64\home\vitor\boticario\curvislicer>set arg=none

C:\msys64\home\vitor\boticario\curvislicer>for %A in (C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl) do call :Loop %A

C:\msys64\home\vitor\boticario\curvislicer>call :Loop C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl

C:\msys64\home\vitor\boticario\curvislicer>if "none" EQU "none" (set arg=C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl ) else (
set none=C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl
set arg=none
)

C:\msys64\home\vitor\boticario\curvislicer>goto :End

C:\msys64\home\vitor\boticario\curvislicer>goto :EndLoop

C:\msys64\home\vitor\boticario\curvislicer>if "C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl" EQU "none" (
echo Error in arguments
exit
)

C:\msys64\home\vitor\boticario\curvislicer>set path=C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl

C:\msys64\home\vitor\boticario\curvislicer>for %f in ("C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl") do set model=%~dpnf

C:\msys64\home\vitor\boticario\curvislicer>set model=C:\Users\vitor\workspace\boticario\curvislicer\models\processed\lips-model\Lips_M

C:\msys64\home\vitor\boticario\curvislicer>set model=C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M

C:\msys64\home\vitor\boticario\curvislicer>echo C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M
C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M

C:\msys64\home\vitor\boticario\curvislicer>echo Generate tetmesh "from C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl" ...
Generate tetmesh "from C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M.stl" ...

C:\msys64\home\vitor\boticario\curvislicer>call toTetmesh.bat C:/Users/vitor/workspace/boticario/curvislicer/models/processed/lips-model/Lips_M
Done!
Optimize...
Mesh has 136557 tets.
Compute all matrices... 136557
done !

Normal threshold: 0.866025

<<Fabricable emptyness (for supports)>>

CSTRT_FOLDOVER
CSTRT_THICKNESS 0.05 < 0.3 < 0.3
CSTRT_COLLISION_SLOPE -30 < ? < 30
CSTRT_ANCHOR_LAYER
OBJ_SURFACE_SLOPE angle = 0
TARGET_NUM_LAYERS -1

Creating the model ... OSQP doesn't allow multithreading
removed 41 tiny or isolated flattened areas.
area check: expected = 2526.02 found = 0
objective
optimize

       OSQP v0.6.0  -  Operator Splitting QP Solver
          (c) Bartolomeo Stellato,  Goran Banjac
    University of Oxford  -  Stanford University 2019

problem: variables n = 24392, constraints m = 624634
nnz(P) + nnz(A) = 2474983
settings: linear system solver = qdldl,
eps_abs = 1.0e-03, eps_rel = 1.0e-03,
eps_prim_inf = 1.0e-04, eps_dual_inf = 1.0e-04,
rho = 1.00e-01 (adaptive),
sigma = 1.00e-06, alpha = 1.60, max_iter = 4000
check_termination: on (interval 25),
time_limit: 3.60e+03 sec,
scaling: on, scaled_termination: off
warm start: on, polish: off, time_limit: 3.60e+03 sec

iter objective pri res dua res rho time
1 -5.4228e-09 1.00e+00 9.75e+00 1.00e-01 3.41e+00s
200 -2.3528e-03 2.24e+00 1.10e-05 2.20e-06 1.68e+01s
400 -3.5803e-03 6.64e-02 1.44e-06 2.20e-06 2.82e+01s
450 -3.6220e-03 5.40e-02 1.02e-06 2.20e-06 3.09e+01s

status: solved
number of iterations: 450
optimal objective: -0.0036
run time: 3.09e+01s
optimal rho estimate: 1.00e-06

num flattening 'constraints' 8343
num flattening 'constraints' after relaxation 8343
removed 0 tiny or isolated flattened areas.
alignment objectives
shape_bottom = 6.07841
[flat ] alignement error: 6.47795e-06 0-6.47795e-06 (A = 1580.66 w = 0.625749)
[flat ] alignement error: 0.102386 31.8-31.6976 (A = 647.183 w = 0.256206)
[flat ] alignement error: 0.0557846 39.9-39.9558 (A = 161.864 w = 0.0640784)
[flat ] alignement error: 0.0558633 42.9-42.8441 (A = 136.321 w = 0.0539667)
area check: expected = 2526.02 found = 2526.02
`

And it hangs after "area check: expected = 2526.02 found = 2526.02". I tried letting it try to complete for more than one day and it does not finish. This also happened with other models that I tried that end up stuck.

On the folder, I can see some files it created, but no gcode:
explorer_FEbsVk49ZV

Do you know what might be the problem?

Thanks!

The stl file I mentioned:
Lips_M.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant