OpenSCAD working?

Does anyone have success in using cad/openscad recently?
First I tried installing it from a package
Code:
tingo@kg-core2:~/work/999_temp $ pkg info openscad\*
openscad-2021.01.01.20221206_4
but it core dumps
Code:
tingo@kg-core2:~/work/999_temp $ openscad
Segmentation fault (core dumped)
except for 'version'
Code:
tingo@kg-core2:~/work/999_temp $ openscad -v
OpenSCAD version 2023.10.04
this on
Code:
tingo@kg-core2:~/work/999_temp $ freebsd-version -ku
13.2-RELEASE-p8
13.2-RELEASE-p9
 
I also tried installing it from a ports tree (on a different machine, since I already had a ports tree there that I could just update)
Code:
tingo@kg-core1:~/work/999_tmp $ pkg info openscad\*
openscad-2021.01.01.20221206_1
tingo@kg-core1:~/work/999_tmp $ openscad -v
OpenSCAD version 2024.02.21
tingo@kg-core1:/zs/tingo/work/999_tmp $ openscad
Segmentation fault (core dumped)
this machine is even more updated
Code:
tingo@kg-core1:~/work/999_tmp $ freebsd-version -ku
13.2-RELEASE-p10
13.2-RELEASE-p10
 
According to the backtraces in the bug report it segfaults deep inside DRI, and the DRI library doesn't seem to even have basic function symbols. That looks rather hopeless.

What graphics chip do you have? Can you try a different one?
 
Graphics:
Code:
root@kg-core2:~ # pciconf -lv | grep -B4 VGA
vgapci0@pci0:7:0:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x677b subvendor=0x1462 subdevice=0x8099
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Caicos PRO [Radeon HD 7450]'
    class      = display
    subclass   = VGA
it's a "MSI R5 230 2GD3H LP - Radeon R5 230" card.
Note: OpenSCAD has been working on these machines before (last used last year sometime).
I will try to install it on a different machine, see if that matters.
 
this evening I'm at a different machine
Code:
tingo@kg-bsbox:/zs/tingo/work/bitraf/2024/20240222_openscad_test $ freebsd-version -ku
13.2-RELEASE-p8
13.2-RELEASE-p9
graphics card
Code:
tingo@kg-bsbox:/zs/tingo/work/bitraf/2024/20240222_openscad_test $ pciconf -lv | grep -B 4 VGA
vgapci0@pci0:0:2:0:    class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x5916 subvendor=0x1849 subdevice=0x5916
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 620'
    class      = display
    subclass   = VGA
OpenSCAD
Code:
tingo@kg-bsbox:/zs/tingo/work/bitraf/2024/20240222_openscad_test $ pkg info openscad\*
openscad-2021.01.01.20221206_4

tingo@kg-bsbox:/zs/tingo/work/bitraf/2024/20240222_openscad_test $ openscad -v
OpenSCAD version 2023.11.10
and OpenSCAD works. Now let me see if it breaks when I upgrade the machine.
 
Ok, I updated packages on the machine, and OpenSCAD still works. So maybe it is the graphics card or driver. List of updated packages
Code:
Feb 22 20:00:38 kg-bsbox pkg[1670]: libdrm upgraded: 2.4.119,1 -> 2.4.120_1,1
Feb 22 20:00:38 kg-bsbox pkg[1670]: openexr upgraded: 3.2.1 -> 3.2.2
Feb 22 20:00:39 kg-bsbox pkg[1670]: libjxl upgraded: 0.9.1 -> 0.9.2
Feb 22 20:00:39 kg-bsbox pkg[1670]: dav1d upgraded: 1.3.0 -> 1.4.0
Feb 22 20:00:39 kg-bsbox pkg[1670]: mesa-libs upgraded: 23.3.2 -> 23.3.4
Feb 22 20:00:50 kg-bsbox pkg[1670]: qt5-webengine upgraded: 5.15.16.p5_4 -> 5.15.16.p5_5
Feb 22 20:01:00 kg-bsbox pkg[1670]: ungoogled-chromium upgraded: 120.0.6099.224 -> 121.0.6167.184
Feb 22 20:01:02 kg-bsbox pkg[1670]: mesa-dri upgraded: 23.3.2 -> 23.3.4
I even rebooted inbetween, OpenSCAD still works.
 
Ok, tried on the third machine, this also has Intel graphics
Code:
tingo@kg-elitebook$ pciconf -lv | grep -B 4 VGA
vgapci0@pci0:0:2:0:    class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0166 subvendor=0x103c subdevice=0x18df
    vendor     = 'Intel Corporation'
    device     = '3rd Gen Core processor Graphics Controller'
    class      = display
    subclass   = VGA
and OpenSCAD works.
 
Ok, OpenSCAD works on another laptop with AMD Radeon graphics
Code:
$ freebsd-version -ku
13.2-RELEASE-p10
13.2-RELEASE-p10

$ pciconf -lv | grep -B 4 VGA
vgapci0@pci0:3:0:0:    class=0x030000 rev=0xc5 hdr=0x00 vendor=0x1002 device=0x15dd subvendor=0x17aa subdevice=0x39fe
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]'
    class      = display
    subclass   = VGA
--
none1@pci0:3:0:7:    class=0x000000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e6 subvendor=0x1022 subdevice=0x15e4
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver'
    class      = old
    subclass   = non-VGA display device
I have ordered a couple of new graphics cards for the workstations where OpenSCAD fails, we shall see if changing to something else works.
 
I installed a new graphics card in my main machine, it a Sapphire Radon R7 240 4GB. It shows up in pciconf output like this
Code:
root@kg-core2:~ # pciconf -lv | grep -B 4 VGA
vgapci0@pci0:7:0:0:    class=0x030000 rev=0xc7 hdr=0x00 vendor=0x1002 device=0x6617 subvendor=0x1da2 subdevice=0xe263
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Oland LE [Radeon R7 240]'
    class      = display
    subclass   = VGA
I also switched from radeonkms to amdgpu in kld_list in /etc/rc.conf (before I did that the machine got graphics corruption when firefox started and eventually crashed).
Code:
root@kg-core2:~ # grep kld_list /etc/rc.conf
#kld_list="fusefs radeonkms"
kld_list="fusefs amdgpu"
and now OpenSCAD works. So it might be the driver. I'll try that on the other machine.
 
On the other machine (core1) I still have that MSI Radeon R5 230 card, so I changed from radeonkms to amdgpu in /etc/rc.conf and rebooted. Unfortunately, amdgpu doesn't really work with that card, Xorg chooses the vesa driver and shows up in 720x400. But good enough for a test. And OpenSCAD doesn't crash.
So it seems to be something in the radeonkms driver, or a combination of that and my R5 230 card.
 
Back
Top