OpenSCAD multiple OpenGL errors, crashes on render

Bug #1932987 reported by Robert Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openscad (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrade from 20.10 to 21.04, I am unable to run OpenSCAD successfully.

The program launches ok, but after clicking New or loading a file, the preview/render window is blank with no axes shown. When opening an existing .scad file, the Console window shows that the design was rendered, but nothing appears in the viewer. If I then try to do a full Render, the program crashes.

If I run OpenSCAD from a command line, I see numerous OpenGL errors:

===== START =======

$ openscad
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
GLEW Error: Unknown error
OpenGL Error: invalid operation
OpenGL Error: invalid operation
OpenGL Error: invalid operation
OpenGL Error: invalid operation
OpenGL Program Linker Error:
error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shaderOpenGL error src/mouseselector.cc:66:Vertex Shader:
 invalid enumerant

src/mouseselector.cc: OpenGL fragment shader Error:
0:1(1): error: No precision specified in this scope for type `vec3'

src/mouseselector.cc: OpenGL Program Linker Error:
error: linking with uncompiled/unspecialized shader

src/mouseselector.cc: OpenGL symbol retrieval went wrong, id is -1

OpenGL error start:
 invalid operation

OpenGL error render:
 invalid operation

OpenGL error start:
 invalid operation

OpenGL error render:
 invalid operation

CGAL error: assertion violation!
Expression : object_list_
File : src/ext/CGAL/OGL_helper.h
Line : 578
Explanation:
Refer to the bug-reporting instructions at https://www.cgal.org/bug_report.html
Aborted (core dumped)

======= END ============

FWIW, noting the warning at the top, I tried using different values of QT_QPA_PLATFORM, but mostly just hung on launch and never displayed anything.

I did not see any similar reports under either Ubuntu's or OpenSCAD's bug trackers.

Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: openscad 2021.01-1ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-18.19-generic 5.11.17
Uname: Linux 5.11.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 18 23:12:31 2021
InstallationDate: Installed on 2021-03-08 (102 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openscad
UpgradeStatus: Upgraded to hirsute on 2021-06-14 (4 days ago)

Revision history for this message
Robert Marshall (ki4mcw) wrote :
Revision history for this message
Robert Marshall (ki4mcw) wrote :
Download full text (4.7 KiB)

More, this is on a Lenovo laptop, LCD only (no external monitors, no USB graphics cards on anything like that). Also:

=================

$ openscad --info
QObject::startTimer: Timers can only be used with threads started with QThread
OpenSCAD Version: 2021.01
System information: Linux 5.11.0-18-generic #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 x86_64 Ubuntu 21.04 4 CPUs 7.23 GB RAM
User Agent: OpenSCAD/2021.01 (Linux x86_64; Ubuntu 21.04)
Compiler: GCC "10.2.1 20210306" 64bit
MinGW build: No
Debug build: No
Boost version: 1_74
Eigen version: 3.3.9
CGAL version, kernels: 5.2, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck
OpenCSG version: OpenCSG 1.4.2
Qt version: 5.15.2
QScintilla version: 2.11.6
InputDrivers:
GLib version: 2.67.5
lodepng version: 20180910
libzip version: 1.7.3
fontconfig version: 2.13.1
freetype version: 2.10.4
harfbuzz version: 2.7.4
cairo version: 1.16.0
lib3mf version: 1.8.1
Application Path: /usr/bin
Documents Path: /home/rob/.local/share
User Documents Path: /home/rob/Documents
Resource Path: /usr/share/openscad
User Library Path: /home/rob/.local/share/OpenSCAD/libraries
User Config Path: /home/rob/.config/OpenSCAD
Backup Path: /home/rob/.local/share/OpenSCAD/backups
OPENSCADPATH: <not set>
OpenSCAD library path:
  /home/rob/.local/share/OpenSCAD/libraries
  /usr/share/openscad/libraries

OPENSCAD_FONT_PATH: <not set>
OpenSCAD font path:
  /usr/share/fonts
  /usr/local/share/fonts
  /home/rob/.local/share/fonts
  /home/rob/.fonts
  /usr/share/fonts/X11
  /usr/share/fonts/cMap
  /usr/share/fonts/cmap
  /usr/share/fonts/opentype
  /usr/share/fonts/truetype
  /usr/share/fonts/type1
  /usr/share/fonts/X11/Type1
  /usr/share/fonts/X11/encodings
  /usr/share/fonts/X11/misc
  /usr/share/fonts/X11/util
  /usr/share/fonts/cmap/adobe-cns1
  /usr/share/fonts/cmap/adobe-gb1
  /usr/share/fonts/cmap/adobe-japan1
  /usr/share/fonts/cmap/adobe-japan2
  /usr/share/fonts/cmap/adobe-korea1
  /usr/share/fonts/opentype/font-awesome
  /usr/share/fonts/opentype/freefont
  /usr/share/fonts/opentype/malayalam
  /usr/share/fonts/opentype/noto
  /usr/share/fonts/opentype/urw-base35
  /usr/share/fonts/truetype/Gargi
  /usr/share/fonts/truetype/Gubbi
  /usr/share/fonts/truetype/Nakula
  /usr/share/fonts/truetype/Navilu
  /usr/share/fonts/truetype/Sahadeva
  /usr/share/fonts/truetype/Sarai
  /usr/share/fonts/truetype/abyssinica
  /usr/share/fonts/truetype/arphic
  /usr/share/fonts/truetype/dejavu
  /usr/share/fonts/truetype/droid
  /usr/share/fonts/truetype/font-awesome
  /usr/share/fonts/truetype/fonts-beng-extra
  /usr/share/fonts/truetype/fonts-deva-extra
  /usr/share/fonts/truetype/fonts-gujr-extra
  /usr/share/fonts/truetype/fonts-guru-extra
  /usr/share/fonts/truetype/fonts-kalapi
  /usr/share/fonts/truetype/fonts-orya-extra
  /usr/share/fonts/truetype/fonts-telu-extra
  /usr/share/fonts/truetype/fonts-yrsa-rasa
  /usr/share/fonts/truetype/freefont
  /usr/share/fonts/truetype/kacst
  /usr/share/fonts/truetype/kacst-one
  /usr/share/fonts/truetype/lao
  /usr/share/fonts/truetype/lato
  /usr/share/fonts/truetype/liberation
  /usr/share/fonts/truetype/liberation2
  /usr/share/fonts/truetype/libreoffice
  /usr/share/fonts/truetype/lohit-assa...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.