pythonscad crash

2 views
Skip to first unread message

Matthieu Hendriks

unread,
Jul 18, 2025, 1:38:44 PMJul 18
to PythonSCAD
Starting with new drawing, than crashes at export function. 

 ./pythonscad
Loaded design '/home/matthieu/pyscad_drawings/zaaiplaat/zaaiplaat.py'.
Running Python 3.10.12 without venv.
pythonscad: /home/matthieu/pythonscad/src/io/export_3mf_v1.cc:364: bool {anonymous}::append_3mf(const std::shared_ptr<const Geometry>&, Export3mfPartInfo, {anonymous}::ExportContext&): Assertion `false && "Unsupported file format"' failed.
Aborted (core dumped)

#####################
# Title: zaaiplaat  
# Author: Matthieu Hendriks
# Date: 2025-07-18
# License: t.b.d
#
#####################
# Title: zaaiplaat  
# start include section
#####################
# Title: zaaiplaat  
from openscad import *


#####################
# start constants section
#####################
# constants
fn=128;
run="all"
dia=20
x=200-dia
y=150-dia
wall=2
#####################
# start module section
#####################

def point(x,y):
     return(translate(circle(d=dia),[x,y,0]))

def print_zaaiplaat():
     obj=hull(point(0,0),point(x,0),point(x,y),point(0,y))
     return(obj)
#####################
# start run section
#####################

if run == "all":
Zaaiplaat=print_zaaiplaat()
export({"zaaiplaat" : Zaaiplaat}, "/home/matthieu/pyscad_drawings/slicer_files/zaaiplaat_zaaiplaat.3mf")
show([Zaaiplaat])


Guenther Sohler

unread,
Jul 18, 2025, 2:17:54 PMJul 18
to Matthieu Hendriks, PythonSCAD
Hi Matthieu,

thank you for the bug report.

do you compile from latest repo version ?
I have
* set run to "all"
* set output 3mf to a valid path

I see  a rectangle with rounded corner

Then i set an invalid path, and yes: error message could be improved, but no crash here
I am not sure, if 3mf file format can store 2D data, but it created a file and did not crash

are you willing to  send me the call stack for the crash(with support) ?


thanks again


--
You received this message because you are subscribed to the Google Groups "PythonSCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonscad+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pythonscad/4f62c0a6-9f4a-4b4e-9d02-01eeda37de5fn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages