JD
John David
Sun, Jun 1, 2025 1:08 PM
I need to make a camera adapter for a microscope I custom built for my
wife. Looking around, I found the following design <
https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/> that
looked interesting, and I wanted to take a close look at it and start
taking measurements.
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a go.
The first file in the parts download (MicroscopeMainBody.3mf) causes a
segfault in the most recent version of OSC (v 2025.05.12).
I'll continue looking around for adapters that will work for her, but I
thought I would report the issue (complete with a downloadable file from
the wild) in case people are interested in the test case...
EBo --
I need to make a camera adapter for a microscope I custom built for my
wife. Looking around, I found the following design <
https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/> that
looked interesting, and I wanted to take a close look at it and start
taking measurements.
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a go.
The first file in the parts download (MicroscopeMainBody.3mf) causes a
segfault in the most recent version of OSC (v 2025.05.12).
I'll continue looking around for adapters that will work for her, but I
thought I would report the issue (complete with a downloadable file from
the wild) in case people are interested in the test case...
EBo --
CK
Chun Kit LAM
Sun, Jun 1, 2025 2:01 PM
Are you using a custom build? If it is a custom build, are you using the
latest manifold (standalone) or the submodule in openscad? There was a
regression with Manifold for mesh import, but it was fixed and a new
version was released today.
OpenSCAD was not using the regressed version because it was caught in
unit tests in OpenSCAD. So if you use the submodule and did not update
manifold locally, it should not be the same bug.
On 6/1/25 21:08, John David via Discuss wrote:
I need to make a camera adapter for a microscope I custom built for my
wife. Looking around, I found the following design
https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/
that looked interesting, and I wanted to take a close look at it and
start taking measurements.
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
go. The first file in the parts download (MicroscopeMainBody.3mf)
causes a segfault in the most recent version of OSC (v 2025.05.12).
I'll continue looking around for adapters that will work for her, but
I thought I would report the issue (complete with a downloadable file
from the wild) in case people are interested in the test case...
EBo --
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
Are you using a custom build? If it is a custom build, are you using the
latest manifold (standalone) or the submodule in openscad? There was a
regression with Manifold for mesh import, but it was fixed and a new
version was released today.
OpenSCAD was not using the regressed version because it was caught in
unit tests in OpenSCAD. So if you use the submodule and did not update
manifold locally, it should not be the same bug.
On 6/1/25 21:08, John David via Discuss wrote:
> I need to make a camera adapter for a microscope I custom built for my
> wife. Looking around, I found the following design
> <https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/>
> that looked interesting, and I wanted to take a close look at it and
> start taking measurements.
>
> Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
> go. The first file in the parts download (MicroscopeMainBody.3mf)
> causes a segfault in the most recent version of OSC (v 2025.05.12).
>
> I'll continue looking around for adapters that will work for her, but
> I thought I would report the issue (complete with a downloadable file
> from the wild) in case people are interested in the test case...
>
> EBo --
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email todiscuss-leave@lists.openscad.org
TP
Torsten Paul
Sun, Jun 1, 2025 3:00 PM
On 01.06.25 15:08, John David via Discuss wrote:
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
go. The first file in the parts download (MicroscopeMainBody.3mf)
causes a segfault in the most recent version of OSC (v 2025.05.12).
The official 2025.05.30 nightly build for Debian/Testing imports
that file just fine. That is with the older lib3mf-v1 library
though.
ciao,
Torsten.
On 01.06.25 15:08, John David via Discuss wrote:
> Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
> go. The first file in the parts download (MicroscopeMainBody.3mf)
> causes a segfault in the most recent version of OSC (v 2025.05.12).
The official 2025.05.30 nightly build for Debian/Testing imports
that file just fine. That is with the older lib3mf-v1 library
though.
ciao,
Torsten.
LM
Leonard Martin Struttmann
Sun, Jun 1, 2025 3:11 PM
The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
attempting to import that file.
Len
On Sun, Jun 1, 2025 at 10:00 AM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:
On 01.06.25 15:08, John David via Discuss wrote:
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
go. The first file in the parts download (MicroscopeMainBody.3mf)
causes a segfault in the most recent version of OSC (v 2025.05.12).
The official 2025.05.30 nightly build for Debian/Testing imports
that file just fine. That is with the older lib3mf-v1 library
though.
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
attempting to import that file.
Len
On Sun, Jun 1, 2025 at 10:00 AM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:
> On 01.06.25 15:08, John David via Discuss wrote:
> > Anyway, I remembered that OpenSCAD can import 3MF files so I gave it a
> > go. The first file in the parts download (MicroscopeMainBody.3mf)
> > causes a segfault in the most recent version of OSC (v 2025.05.12).
>
> The official 2025.05.30 nightly build for Debian/Testing imports
> that file just fine. That is with the older lib3mf-v1 library
> though.
>
> ciao,
> Torsten.
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
TP
Torsten Paul
Sun, Jun 1, 2025 3:15 PM
On 01.06.25 17:11, Leonard Martin Struttmann via Discuss wrote:
The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
attempting to import that file.
Ok, so that probably means it's either related to the lib3mf-v2
code, or we need to cross check if the mentioned Manifold issue
could be the reason (probably not, I think the nightly builds
use the git submodule, but I'm not 100% sure).
I'll check with a local build using the new library version.
ciao,
Torsten.
On 01.06.25 17:11, Leonard Martin Struttmann via Discuss wrote:
> The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
> attempting to import that file.
Ok, so that probably means it's either related to the lib3mf-v2
code, or we need to cross check if the mentioned Manifold issue
could be the reason (probably not, I think the nightly builds
use the git submodule, but I'm not 100% sure).
I'll check with a local build using the new library version.
ciao,
Torsten.
JD
John David
Sun, Jun 1, 2025 4:53 PM
Thanks all. IIRC, I was using most of the submodules instead of
standalone. Also, my version is 3 weeks old. I'll rebuild with the source
updated yesterday. It will be a day or two before I have the time to
rebuild and test.
Thanks all!
EBo --
On Sun, Jun 1, 2025 at 11:16 AM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:
On 01.06.25 17:11, Leonard Martin Struttmann via Discuss wrote:
The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
attempting to import that file.
Ok, so that probably means it's either related to the lib3mf-v2
code, or we need to cross check if the mentioned Manifold issue
could be the reason (probably not, I think the nightly builds
use the git submodule, but I'm not 100% sure).
I'll check with a local build using the new library version.
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Thanks all. IIRC, I was using most of the submodules instead of
standalone. Also, my version is 3 weeks old. I'll rebuild with the source
updated yesterday. It will be a day or two before I have the time to
rebuild and test.
Thanks all!
EBo --
On Sun, Jun 1, 2025 at 11:16 AM Torsten Paul via Discuss <
discuss@lists.openscad.org> wrote:
> On 01.06.25 17:11, Leonard Martin Struttmann via Discuss wrote:
> > The 2025.05.30 nightly build for MacOS, on Sequoia 15.5, crashes when
> > attempting to import that file.
>
> Ok, so that probably means it's either related to the lib3mf-v2
> code, or we need to cross check if the mentioned Manifold issue
> could be the reason (probably not, I think the nightly builds
> use the git submodule, but I'm not 100% sure).
>
> I'll check with a local build using the new library version.
>
> ciao,
> Torsten.
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
GH
gene heskett
Sun, Jun 1, 2025 5:34 PM
On 6/1/25 10:02, Chun Kit LAM via Discuss wrote:
Are you using a custom build? If it is a custom build, are you using
the latest manifold (standalone) or the submodule in openscad? There
was a regression with Manifold for mesh import, but it was fixed and a
new version was released today.
OpenSCAD was not using the regressed version because it was caught in
unit tests in OpenSCAD. So if you use the submodule and did not update
manifold locally, it should not be the same bug.
I looked at the OP's link but not the code, I don't see anything that
shouldn't work if fed directly to prusaslicer, I switched to using 3mf's
as the output format here about 2 years ago. I also use PETG as my
default plastic, it doesn't break like PLA.
On 6/1/25 21:08, John David via Discuss wrote:
I need to make a camera adapter for a microscope I custom built for
my wife. Looking around, I found the following design
https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/
that looked interesting, and I wanted to take a close look at it and
start taking measurements.
Anyway, I remembered that OpenSCAD can import 3MF files so I gave it
a go. The first file in the parts download (MicroscopeMainBody.3mf)
causes a segfault in the most recent version of OSC (v 2025.05.12).
I'll continue looking around for adapters that will work for her, but
I thought I would report the issue (complete with a downloadable file
from the wild) in case people are interested in the test case...
EBo --
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 6/1/25 10:02, Chun Kit LAM via Discuss wrote:
> Are you using a custom build? If it is a custom build, are you using
> the latest manifold (standalone) or the submodule in openscad? There
> was a regression with Manifold for mesh import, but it was fixed and a
> new version was released today.
>
> OpenSCAD was not using the regressed version because it was caught in
> unit tests in OpenSCAD. So if you use the submodule and did not update
> manifold locally, it should not be the same bug.
I looked at the OP's link but not the code, I don't see anything that
shouldn't work if fed directly to prusaslicer, I switched to using 3mf's
as the output format here about 2 years ago. I also use PETG as my
default plastic, it doesn't break like PLA.
>
> On 6/1/25 21:08, John David via Discuss wrote:
>> I need to make a camera adapter for a microscope I custom built for
>> my wife. Looking around, I found the following design
>> <https://axotron.se/blog/microscope-adapter-for-mobile-phone-camera/>
>> that looked interesting, and I wanted to take a close look at it and
>> start taking measurements.
>>
>> Anyway, I remembered that OpenSCAD can import 3MF files so I gave it
>> a go. The first file in the parts download (MicroscopeMainBody.3mf)
>> causes a segfault in the most recent version of OSC (v 2025.05.12).
>>
>> I'll continue looking around for adapters that will work for her, but
>> I thought I would report the issue (complete with a downloadable file
>> from the wild) in case people are interested in the test case...
>>
>> EBo --
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email todiscuss-leave@lists.openscad.org
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
TP
Torsten Paul
Sun, Jun 1, 2025 6:17 PM
It turns out that object->Verify() of the 3MF library is the place
where it crashes. I've seen that before in V1 but so far it looked
like it's ok in V2.
I just disabled that call, so now we just go ahead and try importing
without the extra verification.
At least for this specific model, the import is fine.
See https://github.com/openscad/openscad/pull/5946
ciao,
Torsten.
It turns out that object->Verify() of the 3MF library is the place
where it crashes. I've seen that before in V1 but so far it looked
like it's ok in V2.
I just disabled that call, so now we just go ahead and try importing
without the extra verification.
At least for this specific model, the import is fine.
See https://github.com/openscad/openscad/pull/5946
ciao,
Torsten.