[OpenSCAD] Output of --debug in different places

MichaelAtOz oz.at.michael at gmail.com
Sun Jul 21 03:20:33 EDT 2019


When doing --debug with the GUI the logged lines appear either in the
standard output (or standard error??) or the GUI Console, or both.

The Console is a fixed size and wraps so output there is lost.

Is this a bug to be reported?

A recent example, with a recent Nightly on Debian, ~1700 lines of mainly
preferences messages is in the Terminal, then the GUI appears.
Load a file from the splash screen, F5.

Console shows:
=====================================================start
QSettingsCached: QSettings::setValue(): recentFileList = ''
QSettingsCached: QSettings::setValue(): recentFileList = ''
Loaded design '/usr/share/openscad/examples/Basics/logo.scad'.
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
ECHO: version = [2019, 6, 10]
Compiling design (CSG Products generation)...
Geometries in cache: 2
Geometry cache size in bytes: 725104
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Compiling design (CSG Products normalization)...
Compiling highlights (1 CSG Trees)...
Normalized CSG tree has 4 elements
renderer: Renderer() start
renderer: setColorScheme
renderer: Renderer() end
renderer: Renderer() start
renderer: setColorScheme
renderer: Renderer() end
Compile and preview finished.
Total rendering time: 0 hours, 0 minutes, 0 seconds

renderer: setColorScheme
=====================================================end

This is in Terminal
=====================================================start
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
polyset-gl: Polyset render
renderer: setColor b
renderer: setColor a
polyset-gl: Polyset render
renderer: setColor b
renderer: setColor a
polyset-gl: Polyset render
renderer: setColor b
renderer: setColor a
polyset-gl: Polyset render
renderer: setColor b
renderer: setColor a
polyset-gl: Polyset render
renderer: setColor b
renderer: setColor a
polyset-gl: Polyset render
polyset-gl: Polyset render
=====================================================end

Then F6. A lot of interesting messages to Console, but by the time it
finishes they are lost.
Tail of console:
=====================================================start
<full of these next few lines>
OGL_helper: draw(Halffacet_iterator)
CGAL_OGL_Polyhedron: getFacetColor
OGL_helper: draw(Halffacet_iterator)
CGAL_OGL_Polyhedron: getFacetColor
OGL_helper: construct_axes
OGL_helper: init() end
CGALRenderer: buildPolyhedron() end
CGALRenderer: draw() polyhedron
CGAL_OGL_Polyhedron: draw()
CGAL_OGL_Polyhedron: draw() end
CGALRenderer: draw() end
=====================================================end

This added to Terminal
=====================================================start
CGALRenderer: draw()
CGALRenderer: draw() polyhedron
CGAL_OGL_Polyhedron: draw()
CGAL_OGL_Polyhedron: draw() end
CGALRenderer: draw() end
=====================================================end



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list