Linux Crashing on Linux, display resolution issues

rdong8

Terrarian
Corresponding GitHub issue: Crashing in Terraria · Issue #11833 · ValveSoftware/steam-for-linux

System Information
  • Steam client version (build number or date): 1741737356, installed as Snap package
  • Distribution (e.g. Ubuntu): Fedora 41
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: AMD Radeon 880M
Issue Details

Terraria randomly crashes, usually within an hour of playing the game, both when started via the .desktop shortcut created by Steam and through the Steam client itself. The screen freezes but the audio continues for a bit. I've tried both the Flatpak and Snap packages and the issue happens with both.

In the Gnome Problem Reporting app, it shows up as "steamwebhelper quit unexpectedly" - I'm not sure if this is a consequence of the crash or the cause of it. I'm unable to file a report there, it says "Reporting is disabled because the generated backtrace has low informational value". It also only showed up twice in the Problem Reporting app, the game still crashes but it doesn't create an entry there anymore.

I am also using 2 displays: the first one is my built-in laptop display, 2880 x 1800 120hz, 175% scale. This is the display the game is actually running on. The second display is an external monitor connected via DisplayPort: 3440 x 1440 75hz, 100% scale. The external monitor is set as the primary display on my system. Terraria for some reason is not able to correctly determine the size of the external monitor, I am not sure if that is related. When I put the Terraria window on the external monitor, it recommends a fullscreen resolution of 4096 x 1714, which is approximately the same aspect ratio but not the correct resolution, and selecting it causes my mouse's range to be limited to a rectangular region at the upper left of my actual monitor. It also occasionally recommends 4096 x 2304, depending on how I dropped the window onto the monitor/how it was set on the other monitor when I moved it. Manually editing the config.json file doesn't seem to do anything.

Note that this processor/APU is relatively new, not sure if others have had similar issues. I used this identical monitor setup + Linux distro on my previous laptop as recently as 3 months ago, which had an older AMD Ryzen 7 5700U and never had these issues.

Here's the output from Help > System Information in Steam. Note that it seems to get the display resolution wrong.

Code:
Computer Information:

Manufacturer: LENOVO

Model: LNVNB161216

Form Factor: Laptop

No Touch Input Detected

Processor Information:

CPU Vendor: AuthenticAMD

CPU Brand: AMD Ryzen AI 9 365 w/ Radeon 880M

CPU Family: 0x1a

CPU Model: 0x24

CPU Stepping: 0x0

CPU Type: 0x0

Speed: 5089 MHz

20 logical processors

10 physical processors

Hyper-threading: Supported

FCMOV: Supported

SSE2: Supported

SSE3: Supported

SSSE3: Supported

SSE4a: Supported

SSE41: Supported

SSE42: Supported

AES: Supported

AVX: Supported

AVX2: Supported

AVX512F: Supported

AVX512PF: Unsupported

AVX512ER: Unsupported

AVX512CD: Supported

AVX512VNNI: Supported

SHA: Supported

CMPXCHG16B: Supported

LAHF/SAHF: Supported

PrefetchW: Unsupported

BMI1: Supported

BMI2: Supported

F16C: Supported

FMA: Supported

Operating System Version:

Ubuntu Core 22 (64 bit)

Kernel Name: Linux

Kernel Version: 6.13.6-200.fc41.x86_64

X Server Vendor: The X.Org Foundation

X Server Release: 12401006

X Window Manager: GNOME Shell

Steam Runtime Version: steam-runtime_0.20241127.109674

Client Information:

Version: 1741737356

Browser GPU Acceleration Status: Enabled

Browser Canvas: Enabled

Browser Canvas out-of-process rasterization: Enabled

Browser Direct Rendering Display Compositor: Disabled

Browser Compositing: Enabled

Browser Multiple Raster Threads: Enabled

Browser OpenGL: Enabled

Browser Rasterization: Enabled

Browser Raw Draw: Disabled

Browser Skia Graphite: Disabled

Browser Video Decode: Enabled

Browser Video Encode: Disabled

Browser Vulkan: Disabled

Browser WebGL: Enabled

Browser WebGL2: Enabled

Browser WebGPU: Disabled

Browser WebNN: Disabled

Video Card:

Driver: Mesa zink Vulkan 1.3(AMD Radeon Graphics (RADV GFX1150) (MESA_RADV))

Driver Version: 4.6 (Compatibility Profile) Mesa 24.2.3 - kisak-mesa PPA

Desktop Color Depth: 24 bits per pixel

Monitor Refresh Rate: 74 Hz

VendorID Not Detected

DeviceID Not Detected

Revision Not Detected

Number of Monitors: 2

Number of Video Cards Not Detected

Primary Display Resolution: 6880 x 2880

Desktop Resolution: 6880 x 4940

Primary Display Size: 31.50" x 12.99" (34.06" diag), 80.0cm x 33.0cm (86.5cm diag)

Primary VRAM: 12007 MB

Sound card:

Audio device: %1$s

Memory:

RAM: 27831 Mb

VR Hardware:

VR Headset: None detected

Miscellaneous:

UI Language: English

LANG: en_US.UTF-8

Total Hard Disk Space Available: 873461 MB

Largest Free Hard Disk Block: 848193 MB

Storage:

Number of SSDs: 1

SSD sizes: 0B

Number of HDDs: 0

Number of removable drives: 0
 

Attachments

Last edited:
Hey @rdong8, sorry to hear you're having problems with Terraria.

I'd like to see if Terraria is logging any errors when it crashes, that may help narrow down whether this is a Terraria issue or something else. Could I ask you to follow these steps?
  1. In your Steam Library, right click Terraria and click Properties....
  2. Under the General tab, add the following to the Launch Options field: -logerrors -logfile.
    oWRd923.png
  3. Close the window, then launch Terraria via Steam.
  4. Play the game normally until a crash occurs. Wait for the process to fully exit (if it doesn't exit by itself it's okay to terminate it manually after a minute or so).
  5. Go to ~/.local/share/Terraria/Logs. Please upload the most recent log to this thread so I can take a look. :)
 
For some reason I wasn't able to reproduce this exact issue again. I did have a freeze happen when I switched to a different workspace in Gnome to do some work, and then switched back to Terraria. I attached the logs here.
 

Attachments

Actually just managed to reproduce it. I opened Terraria on my secondary (laptop) monitor, played the game for a few minutes, then clicked a window on my external monitor in the same workspace, then it immediately froze.
 

Attachments

Actually just managed to reproduce it. I opened Terraria on my secondary (laptop) monitor, played the game for a few minutes, then clicked a window on my external monitor in the same workspace, then it immediately froze.
Thank you for the detailed logs. Unfortunately, Terraria does not seem to be reporting any issues, nor do I see anything in the Steam logs that could be of help, so I'm afraid I'm not exactly sure what is happening here or how to fix it.

Would you mind sharing your config.json file (found in [/ICODE]~/.local/share/Terraria[/ICODE])? I'd like to see what graphics settings Terraria is set to.
 
Here it is
 

Attachments

Here it is
I've adjusted it to run in borderless window mode instead of fullscreen, I believe that may make it more stable. Do let me know if that doesn't work for you. :)
 

Attachments

Back
Top Bottom