[Therion] loch segmentation fault at launch
Olly Betts
olly at survex.com
Mon Jan 13 23:33:07 CET 2025
On Mon, Jan 13, 2025 at 02:13:06PM -0600, Bill Gee wrote:
> Thanks Benedikt and Martin for taking a look at this. The first step in
> fixing a problem is figuring out how to duplicate it. So far we are not
> having much luck with that!
>
> So far the only thing that jumps out at me is that I am using an older
> computer. Martin's Intel display is much newer than mine, and Benedikt is
> using an AMD display adapter. I wonder if the Intel i915 display driver on
> my hardware is missing some needed function?
Try running loch from a terminal like so:
GDK_BACKEND=x11 loch
If that works, the problem is probably to do with your wxWidgets
packages - the Debian ones have a patch to force use of X11 when the wx
GL library is loaded:
https://sources.debian.org/src/wxwidgets3.2/3.2.6%2Bdfsg-2/debian/patches/force-x11-for-wxgl.patch/
Without this patch, you get a segfault if you try to use OpenGL under
Wayland in wxWidgets built with Gtk3. (I'd expect most distros will
have moved to Gtk3 by now; things just work with Gtk2 because it doesn't
have wayland support so is always using X11 on Linux.)
Things have moved on a bit since that patch metadata was written as
wxWidgets does now support OpenGL on Wayland via EGL, but there's some
issue I don't fully remember the details of with enabling this support
within Debian (and probably within any distro) - I think it's something
like it needs to be enabled in libglew at the same time and there's some
problem with enabling it there.
Cheers,
Olly
More information about the Therion
mailing list