#1121993 f3d: Crash when opening OBJ file on MNT Reform 2 (segmentation violation)

Package:
f3d
Source:
f3d
Description:
fast and minimalist 3D viewer
Submitter:
Ælla Chiana Arson Bobbie Moskopp
Date:
2025-12-10 12:01:03 UTC
Severity:
normal
#1121993#5
Date:
2025-12-05 16:48:56 UTC
From:
To:
Dear Maintainer,

I installed f3d on my MNT Reform 2 laptop with apt.
When I opened a very simple OBJ file, f3d crashed …
I expected f3d to render the OBJ file and not crash.

A log of my terminal session with a crash follows;
lines starting with a semicolon show my CLI input.

; cat test.obj
v 0 0 0
v 0 1 0
v 0 0 1
f 1 2 3
; f3d test.obj
Configuration file for "config" could not be found
Current framebuffer is bind to framebuffer object 5
color attachment 0:
 this attachment is a texture with name: 9
 its mipmap level is: 0
 this is not a cube map texture.
 this is not 3D texture.
color attachment 1:
 this attachment is empty
color attachment 2:
 this attachment is empty
color attachment 3:
 this attachment is empty
depth attachment :
 this attachment is a texture with name: 10
 its mipmap level is: 0
 this is not a cube map texture.
 this is not 3D texture.
stencil attachment :
 this attachment is empty
there are 4 draw buffers.
draw buffer[0]=GL_COLOR_ATTACHMENT0
draw buffer[1]=GL_NONE
draw buffer[2]=GL_NONE
draw buffer[3]=GL_NONE
read buffer=GL_COLOR_ATTACHMENT0
[lego-reform2:1631 :0:1631] Caught signal 11 (Segmentation fault: address not mapped to object at address 0xc4)
==== backtrace (tid:   1631) ====
 0  /usr/lib/aarch64-linux-gnu/libucs.so.0(ucs_handle_error+0x2e0) [0xffffa1862390]
 1  /usr/lib/aarch64-linux-gnu/libucs.so.0(+0x32528) [0xffffa1862528]
 2  /usr/lib/aarch64-linux-gnu/libucs.so.0(+0x32650) [0xffffa1862650]
 3  linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xffffb1e51820]
 4  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN16vtkShaderProgram11FindUniformEPKc+0x14) [0xffffae7560b4]
 5  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN16vtkShaderProgram12SetUniform2fEPKcPKf+0x20) [0xffffae756ba0]
 6  f3d(+0x1af38c) [0xaaaae4c6f38c]
 7  f3d(+0x1a8430) [0xaaaae4c68430]
 8  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN14vtkDefaultPass13RenderOverlayEPK14vtkRenderState+0x98) [0xffffae551c18]
 9  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN13vtkCameraPass6RenderEPK14vtkRenderState+0x690) [0xffffae548cf4]
10  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN27vtkDepthImageProcessingPass14RenderDelegateEPK14vtkRenderStateiiiiP26vtkOpenGLFramebufferObjectP16vtkTextureObjectS6_+0x228) [0xffffae552448]
11  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN18vtkFramebufferPass6RenderEPK14vtkRenderState+0x194) [0xffffae58223c]
12  f3d(+0x1cfdd4) [0xaaaae4c8fdd4]
13  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN17vtkOpenGLRenderer12DeviceRenderEv+0xa4) [0xffffae6b0330]
14  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingCore-9.5.so.1(_ZN11vtkRenderer6RenderEv+0x984) [0xffffadc8de64]
15  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingCore-9.5.so.1(_ZN21vtkRendererCollection6RenderEv+0x13c) [0xffffadca5bbc]
16  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingCore-9.5.so.1(_ZN15vtkRenderWindow14DoStereoRenderEv+0xb0) [0xffffadc6ceb0]
17  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingCore-9.5.so.1(_ZN15vtkRenderWindow6RenderEv+0x184) [0xffffadc6e9e4]
18  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN21vtkOpenGLRenderWindow6RenderEv+0xb0) [0xffffae6aceb0]
19  /usr/bin/../lib/aarch64-linux-gnu/libvtkRenderingOpenGL2-9.5.so.1(_ZN22vtkXOpenGLRenderWindow6RenderEv+0x40) [0xffffae79dce0]
20  f3d(+0x143d3c) [0xaaaae4c03d3c]
21  f3d(+0xc4460) [0xaaaae4b84460]
22  f3d(+0x67a2c) [0xaaaae4b27a2c]
23  /usr/bin/../lib/aarch64-linux-gnu/libc.so.6(+0x2255c) [0xffffa90b255c]
24  /usr/bin/../lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x9c) [0xffffa90b263c]
25  f3d(+0x69f30) [0xaaaae4b29f30]
=================================
segmentation violation

#1121993#10
Date:
2025-12-07 15:17:10 UTC
From:
To:
Dear Ælla Chiana Arson Bobbie Moskopp,

thanks for the reproducer and the call stack details.

It looks like a rendering stack issue. Do you have a working OpenGL rendering
stack on this machine?

To check that OpenGL is working fine, could you please try to run the glxgears
executable from the mesa-utils package?

Best,
François

#1121993#15
Date:
2025-12-10 11:59:49 UTC
From:
To:
I do have a working OpenGL implementation on the MNT Reform 2.
Several  other 3D applications work fine with my OpenGL setup:

• Minetest/Luanti 5.10 (without shaders, for performance)
• castle-model-viewer 5.2.0 (I use it instead of f3d now)
• Nexuiz 2.5.2 (have to set MESA_GL_VERSION_OVERRIDE=3.2,
as otherwise it crashes at startup, due to an engine bug)

glxgears has untexturized gears (a somewhat recent regression)
but runs with a constant 51.363 fps, or about 37.5 fps as soon
as I force software rendering. The only other app that has the
“untextured” bug I have seen is neverball 1.6.0, but it can do
run fine on this machine (it did with previous Mesa versions).

In case it matters, I am using the Wayland compositor “sway”,
Mesa version is “25.2.8-2”, GPU is “Vivante GC7000 rev 6214”.