Skip to content

Linux crash on View3D due to OpenGL/Qt graphics backend issue #283

Description

@waqashussain117

Linux crash when opening View3D

On some Linux systems, especially inside VirtualBox or VMware, PZero may crash when opening View3D or during startup.

This is likely caused by an OpenGL/graphics-backend issue. View3D uses VTK for 3D rendering, which requires a valid OpenGL context. In some Linux or virtual-machine environments, the graphics driver, Mesa library, or Qt platform backend may not provide this correctly.

Typical symptoms include:

  • crash on startup;
  • crash when opening View3D;
  • terminal errors such as BadWindow, GLX, or OpenGL-related messages.

Temporary workaround:

Recommended solution

First, make sure the system has working OpenGL support.

On Ubuntu/Debian:

sudo apt update
sudo apt install mesa-utils libgl1-mesa-dri libegl1 libxkbcommon-x11-0 libxcb-cursor0

```bash
export LIBGL_ALWAYS_SOFTWARE=1
./PZero

Alternatively, force Qt to use X11:

export QT_QPA_PLATFORM=xcb
./PZero

Both options can also be used together:

export LIBGL_ALWAYS_SOFTWARE=1
export QT_QPA_PLATFORM=xcb
./PZero

This issue is related to the Linux/VM graphics stack, not to the geological model or mesh input data.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions