M
mikeonenine@web.de
Sun, Feb 8, 2026 8:58 PM
On adding `include <BOSL2/std.scad>` to a script, the viewport went blank. How is that possible? No problem with other scripts.
There seems to be something in the script that BOSL2 doesn’t like. What could that be?
Error messages may be relevant:
[ERROR: Assertion 'is_finite(ang)' failed in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/affine.scad, line 301](301,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/affine.scad)
[TRACE: called by '_translate' in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad, line 1585](1585,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad)
[TRACE: called by '_translate' in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad, line 1585](1585,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad)
Any ideas what to look for?
M
mikeonenine@web.de
Sun, Feb 8, 2026 9:14 PM
*Correction (pls ignore previous post)*
On adding `include <BOSL2/std.scad>` to a script, the viewport went blank. How is that possible? No problem with other scripts.
There seems to be something in the script that BOSL2 doesn’t like. What could that be?
Error messages may be relevant:
[ERROR: Assertion 'is_finite(ang)' failed in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/affine.scad, line 301](https://lists.openscad.org/empathy/thread/301,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/affine.scad)
[TRACE: called by '_translate' in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad, line 1585](https://lists.openscad.org/empathy/thread/1585,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad)
[TRACE: called by '_translate' in file C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad, line ](https://lists.openscad.org/empathy/thread/1585,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad)**[1](https://lists.openscad.org/empathy/thread/1585,C:/Users/Admin/Documents/OpenSCAD/libraries/BOSL2/transforms.scad)607**
Any suggestions what to look for?
JB
Jordan Brown
Sun, Feb 8, 2026 9:16 PM
On 2/8/2026 1:14 PM, Caddiy via Discuss wrote:
Any suggestions what to look for?
My guess would be that you have a global name that conflicts with one of
BOSL2's names.
On 2/8/2026 1:14 PM, Caddiy via Discuss wrote:
>
> Any suggestions what to look for?
>
My guess would be that you have a global name that conflicts with one of
BOSL2's names.
M
mikeonenine@web.de
Sun, Feb 8, 2026 9:35 PM
Hi,
what would a global name look like? Examples?
Hi,
what would a global name look like? Examples?
LM
Leonard Martin Struttmann
Sun, Feb 8, 2026 9:59 PM
Do you, by chance, have a variable called IDENT?
On Sun, Feb 8, 2026 at 3:35 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
Do you, by chance, have a variable called IDENT?
On Sun, Feb 8, 2026 at 3:35 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
> Hi,
>
> what would a global name look like? Examples?
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
M
mikeonenine@web.de
Sun, Feb 8, 2026 10:32 PM
No, ‘fraid not.
This part is done with BOSL2, but I can’t use it with the rest.

No, ‘fraid not.
This part is done with BOSL2, but I can’t use it with the rest.

AM
Adrian Mariano
Sun, Feb 8, 2026 10:46 PM
Asking people to debug your code when you don't post the code is generally
a pointless endeavor.
You should follow the error message backtrace until you get to code you
wrote and examine it to see why it would fail in BOSL2, or post that line
of code here, or perhaps file a bug on the BOSL2 github.
On Sun, Feb 8, 2026 at 5:32 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
No, ‘fraid not.
This part is done with BOSL2, but I can’t use it with the rest.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Asking people to debug your code when you don't post the code is generally
a pointless endeavor.
You should follow the error message backtrace until you get to code you
wrote and examine it to see why it would fail in BOSL2, or post that line
of code here, or perhaps file a bug on the BOSL2 github.
On Sun, Feb 8, 2026 at 5:32 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
> No, ‘fraid not.
>
> This part is done with BOSL2, but I can’t use it with the rest.
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
M
mikeonenine@web.de
Sun, Feb 8, 2026 10:56 PM
Asking people to debug your code when you don't post the code is generally
a pointless endeavor.
The code is quite long, about 1550 lines.
You should follow the error message backtrace until you get to code you
wrote and examine it to see why it would fail in BOSL2, or post that line
of code here, or perhaps file a bug on the BOSL2 github.
I looked up the relevant lines in affine.scad and transform.scad but they didn’t seem to offer any clues.
Looks like I will have to chop off sections of the code one by one until it works.
Adrian Mariano wrote:
> Asking people to debug your code when you don't post the code is generally
> a pointless endeavor.
The code is quite long, about 1550 lines.
> You should follow the error message backtrace until you get to code you
> wrote and examine it to see why it would fail in BOSL2, or post that line
> of code here, or perhaps file a bug on the BOSL2 github.
I looked up the relevant lines in affine.scad and transform.scad but they didn’t seem to offer any clues.
Looks like I will have to chop off sections of the code one by one until it works.
AM
Adrian Mariano
Sun, Feb 8, 2026 11:09 PM
The lines in affince.scad and transform.scad are not part of your code.
Follow the backtrace back until you get to YOUR CODE---the first line
that's not part of the library. From the error messages it appears a
rotation has been invoked with an invalid angle, but to know why we need to
see the code you wrote that is doing it. It's possible that it's a
compatibility error in BOSL2, since adding the BOSL2 library to working
code is not supposed to change its behavior.
On Sun, Feb 8, 2026 at 5:57 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
Adrian Mariano wrote:
Asking people to debug your code when you don't post the code is generally
a pointless endeavor.
The code is quite long, about 1550 lines.
You should follow the error message backtrace until you get to code you
wrote and examine it to see why it would fail in BOSL2, or post that line
of code here, or perhaps file a bug on the BOSL2 github.
I looked up the relevant lines in affine.scad and transform.scad but they
didn’t seem to offer any clues.
Looks like I will have to chop off sections of the code one by one until
it works.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
The lines in affince.scad and transform.scad are not part of your code.
Follow the backtrace back until you get to YOUR CODE---the first line
that's not part of the library. From the error messages it appears a
rotation has been invoked with an invalid angle, but to know why we need to
see the code you wrote that is doing it. It's possible that it's a
compatibility error in BOSL2, since adding the BOSL2 library to working
code is not supposed to change its behavior.
On Sun, Feb 8, 2026 at 5:57 PM Caddiy via Discuss <
discuss@lists.openscad.org> wrote:
> Adrian Mariano wrote:
>
> Asking people to debug your code when you don't post the code is generally
> a pointless endeavor.
>
> The code is quite long, about 1550 lines.
>
> You should follow the error message backtrace until you get to code you
> wrote and examine it to see why it would fail in BOSL2, or post that line
> of code here, or perhaps file a bug on the BOSL2 github.
>
> I looked up the relevant lines in affine.scad and transform.scad but they
> didn’t seem to offer any clues.
>
> Looks like I will have to chop off sections of the code one by one until
> it works.
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
M
mikeonenine@web.de
Sun, Feb 8, 2026 11:41 PM
The lines in affince.scad and transform.scad are not part of your code.
Follow the backtrace back until you get to YOUR CODE---the first line
that's not part of the library. From the error messages it appears a
rotation has been invoked with an invalid angle, but to know why we need to
see the code you wrote that is doing it. It's possible that it's a
compatibility error in BOSL2, since adding the BOSL2 library to working
code is not supposed to change its behavior.
When this module is edited out, the code works:
module txm()
{
window = [876, 640];
translate($vpt)
rotate($vpr)
scale($vpd / window.y)
translate([x,y,z])
rotate([X,Y,Z])
linear_extrude(0.001)
text(txt, valign = "center", halign = side, font="Times New Roman", size=s);
}
I had left out the X, Y and Z values in 2 places where the module is invoked, as these values are all zero. Putting in X=0, Y=0, Z=0, fixes it. Phew!
Thanks.
Adrian Mariano wrote:
> The lines in affince.scad and transform.scad are not part of your code.
> Follow the backtrace back until you get to YOUR CODE---the first line
> that's not part of the library. From the error messages it appears a
> rotation has been invoked with an invalid angle, but to know why we need to
> see the code you wrote that is doing it. It's possible that it's a
> compatibility error in BOSL2, since adding the BOSL2 library to working
> code is not supposed to change its behavior.
When this module is edited out, the code works:
`module txm()`
`{`
`window = [876, 640];`
`translate($vpt)`
`rotate($vpr)`
`scale($vpd / window.y)`
`translate([x,y,z])`
`rotate([X,Y,Z])`
`linear_extrude(0.001)`
`text(txt, valign = "center", halign = side, font="Times New Roman", size=s);`
`}`
I had left out the X, Y and Z values in 2 places where the module is invoked, as these values are all zero. Putting in `X=0, Y=0, Z=0,` fixes it. Phew!
Thanks.