Log in

View Full Version : Segmentation Fault and crash when trying to import images on Linux



shindaseishin
September 3rd, 2024, 22:25
Solution: set the "GDK_BACKEND=x11" environment variable in the .desktop file for FGU.

Trying to import images into a campaign causes FGU to crash to desktop.

OS: Ubuntu 24.04 LTS with KDE Plasma desktop (Wayland)

Rulesets tested:

Mongoose Traveller 2E
5E
Core RPG


Extensions/Themes: None

Modules Loaded: None

Steps to reproduce:

Create a new campaign in any ruleset.
Open the "Images" window from the Campaign tool box.
Click on the "import" button.
Watch as FGU disappears.


I tried running FGU from a terminal to capture any debugging info but the only message was "Segmentation fault (core dumped)". I have my system set to not generate core files but if it would be helpful I will happily turn it on and send a core file.

If there is anything else that would help debug the problem I am happy to provide it.

LordEntrails
September 3rd, 2024, 23:20
EDIT: Nevermind, for some reason I was thinking the installer/updater was crashing.

Do you have MS Core Fonts installed? See the note at the bottom on this page: Installing on Linux - Fantasy Grounds Customer Portal - Fantasy Grounds (atlassian.net) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996639624/Installing+on+Linux)

shindaseishin
September 3rd, 2024, 23:49
Yes. I have the ms core fonts installed.

Trenloe
September 4th, 2024, 00:14
When the import image button is clicked, an operating system file selection dialog is opened. If the crash occurs without this window opening, then it might be a rights issue to the location that the file dialog is trying to open. Have you used the dialog successfully before? Or is this the first time you've tried to use it?

shindaseishin
September 4th, 2024, 00:17
The file selection box does not open. This is the first time I've tried to use it. I should have read permissions to almost all the system. Definitely everything under my home directory

shindaseishin
September 4th, 2024, 00:32
It seems to be a xorg vs Wayland issue. I restarted my session in xorg instead of wayland and now the import button works.

damned
September 4th, 2024, 00:51
Here is an older discussion on issues with File Browsing on Wayland
https://www.fantasygrounds.com/forums/showthread.php?61261-Linux-Testing/page61

shindaseishin
September 4th, 2024, 01:14
Adding the env variable to force xwayland does the trick as recommended in that thread. Thanks for the help. Marking this as SOLVED.

damned
September 4th, 2024, 03:35
Thanks for confirming.

@Moon Wizard - is this something that can be done in the installer?

ddavison
September 4th, 2024, 04:36
We have discussed adding a dev cycle for Q4 on the installers. We can add this to the list to investigate.