Bug 285150 - cad/openscad segmentation fault running in Xvfb with error "Unable to initialize EGL: EGL_BAD_DISPLAY"
Summary: cad/openscad segmentation fault running in Xvfb with error "Unable to initial...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Michael Reifenberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-04 06:46 UTC by BB Lister
Modified: 2025-04-07 14:17 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (mr)


Attachments
Backtrace from core-File (3.75 KB, text/plain)
2025-03-20 12:57 UTC, ahkithaama
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description BB Lister 2025-03-04 06:46:24 UTC
After the latest update of cad/openscad with the commit message of "devel/boost: bump consumers after Boost-1.87 update" at 14 Feb 2025 03:17:22, openscad segmentation faults even in simple operation like --info, whtn running in Xvfb.

Up to this version everything was running smoothly with openscad. 

The commands thad lead to the segmentation fault:

-------------
# Xvfb :5 -screen 0 800x600x24 &
# export DISPLAY=:5
# openscad --info

..... (the full trace is ommited, if requested I can add it)
Unable to initialize EGL: EGL_BAD_DISPLAY
Segmentation fault

# echo $?
139

# dmesg |tail -1
pid 23721 (openscad), jid 0, uid 0: exited on signal 11 (no core dump - too large)

# uname -a
FreeBSD XXXXX 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
-------------

This affects both (I have tried with both versions)
cad/openscad/
cad/openscad-devel

I have rebooted the machine and tried again: The same error happened.

I have also tried to run this in vncserver with the same problem.
Comment 1 ahkithaama 2025-03-20 12:57:04 UTC
Created attachment 258832 [details]
Backtrace from core-File

# PROBLEM:

Similar on FreeBSD 14.1p7 / AMD64
I can contribute a stacktrace to this (see attachment)

# WORKAROUND:

Not a solution but an workaround for this:
Compile openscad from Ports
(general info: see https://docs.freebsd.org/en/books/handbook/ports/#ports-using)

Go to /usr/ports/cad/openscad
Edit Makefile and set
PORTREVISION =   5
(see: https://cgit.freebsd.org/ports/tree/cad/openscad/Makefile#n3)
Comment 2 ml 2025-03-26 15:31:47 UTC
This happens to me and I'm not using Xvfb, just plain XServer (with an Intel GPU).
I can provide more info, if I know what to report.
Comment 3 ml 2025-03-28 10:20:36 UTC
I also tried cad/openscad-devel, but with the same result.
Comment 4 ml 2025-04-07 14:17:30 UTC
(In reply to ml from comment #2)

Works again here, after I upgraded from 2025Q1 to 2025Q2.