discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Error on non-existent line of program

AM
Adrian Mariano
Tue, Feb 11, 2025 3:41 AM

I got this error:

WARNING: Matrix must be rectangular. Problem at row 1 in file
isosurface.scad, line 2088
TRACE: called by '_mb_cuboid_basic' in file isosurface.scad, line 2148
TRACE: called by 'metaballs' in file isosurface.scad, line 2573
TRACE: assignment to "vnf" in file isosurface.scad, line 2573
TRACE: called by 'metaballs' in file gtest2.scad, line 37
Execution aborted

which is somewhat puzzling because isosurface.scad is only 1779 lines long,
so none of the offending lines exist.  What's going on?  This happened in
both 2021.01 and in 2025.01.26.

I got this error: WARNING: Matrix must be rectangular. Problem at row 1 in file isosurface.scad, line 2088 TRACE: called by '_mb_cuboid_basic' in file isosurface.scad, line 2148 TRACE: called by 'metaballs' in file isosurface.scad, line 2573 TRACE: assignment to "vnf" in file isosurface.scad, line 2573 TRACE: called by 'metaballs' in file gtest2.scad, line 37 Execution aborted which is somewhat puzzling because isosurface.scad is only 1779 lines long, so none of the offending lines exist. What's going on? This happened in both 2021.01 and in 2025.01.26.
JB
Jordan Brown
Tue, Feb 11, 2025 4:52 AM

On 2/10/2025 7:41 PM, Adrian Mariano via Discuss wrote:

I got this error:

|WARNING: Matrix must be rectangular. Problem at row 1 in file
isosurface.scad, line 2088 TRACE: called by '_mb_cuboid_basic' in file
isosurface.scad, line 2148 TRACE: called by 'metaballs' in file
isosurface.scad, line 2573 TRACE: assignment to "vnf" in file
isosurface.scad, line 2573 TRACE: called by 'metaballs' in file
gtest2.scad, line 37 Execution aborted |
which is somewhat puzzling because isosurface.scad is only 1779 lines
long, so none of the offending lines exist.  What's going on?  This
happened in both 2021.01 and in 2025.01.26.

Is there any chance that this is a DOS-format file (with CRLF) being run
on Linux?

If so, that's issue #4882
https://github.com/openscad/openscad/issues/4882.

I worked for a while on a fix.  I think I ran into a testing stumbling
block that distracted me - perhaps that errors aren't fatal (but
warnings can be!).

On 2/10/2025 7:41 PM, Adrian Mariano via Discuss wrote: > I got this error: > > |WARNING: Matrix must be rectangular. Problem at row 1 in file > isosurface.scad, line 2088 TRACE: called by '_mb_cuboid_basic' in file > isosurface.scad, line 2148 TRACE: called by 'metaballs' in file > isosurface.scad, line 2573 TRACE: assignment to "vnf" in file > isosurface.scad, line 2573 TRACE: called by 'metaballs' in file > gtest2.scad, line 37 Execution aborted | > which is somewhat puzzling because isosurface.scad is only 1779 lines > long, so none of the offending lines exist.  What's going on?  This > happened in both 2021.01 and in 2025.01.26. > Is there any chance that this is a DOS-format file (with CRLF) being run on Linux? If so, that's issue #4882 <https://github.com/openscad/openscad/issues/4882>. I worked for a while on a fix.  I think I ran into a testing stumbling block that distracted me - perhaps that errors aren't fatal (but warnings can be!).