Putty prematurely terminates when clicking the Connect button while running in a Wayland session

Bug #2107278 reported by 林博仁(Buo-ren Lin)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
putty (Ubuntu)
New
Undecided
Unassigned

Bug Description

## Bug reproducing instructions

1. Ensure you're in a Wayland session.
2. Launch a text terminal emulator.
3. Run the `putty` command to launch Putty.
4. In the "Session > Specify the destination you want to connect to" panel, type any character into the "Host Name (or IP address)" field, then click the "Open" button at the bottom.

## Current behavior

The application window will close with the "1" exit status code. In the text terminal emulator, the following error message is printed:

```text
PuTTY: unable to load font "server:fixed"
```

If you launch Putty using the following command(forcing it to be run on XWayland), the problem will no longer be reproduced:

```sh
env GDK_BACKEND=x11 putty
```

This bug has already been fixed in the Fedora packaging: <https://src.fedoraproject.org/rpms/putty/c/385449d>, we probably should port their patch here.

## Expected behavior

No crashes.

## Additional information

### OS release

Ubuntu 24.04

### Processor architecture

AMD64

### Desktop environment

KDE Plasma

### Putty version

```text
PuTTY: Release 0.81
Build platform: 64-bit Unix (GTK + X11)
Compiler: gcc 13.2.0
Compiled against GTK version 3.24.41
Source commit: a8601a72a918dfc2a8e8536a77139d7f37700044
```

### `putty` package version

0.81-1

### Locale settings

```sh
LANG=zh_TW.UTF-8
LANGUAGE=zh_TW:zh_CN:en
LC_CTYPE="zh_TW.UTF-8"
LC_NUMERIC=zh_TW.UTF-8
LC_TIME=zh_TW.UTF-8
LC_COLLATE="zh_TW.UTF-8"
LC_MONETARY=zh_TW.UTF-8
LC_MESSAGES="zh_TW.UTF-8"
LC_PAPER=zh_TW.UTF-8
LC_NAME=zh_TW.UTF-8
LC_ADDRESS=zh_TW.UTF-8
LC_TELEPHONE=zh_TW.UTF-8
LC_MEASUREMENT=zh_TW.UTF-8
LC_IDENTIFICATION=zh_TW.UTF-8
LC_ALL=
```

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: putty 0.81-1
ProcVersionSignature: Ubuntu 6.11.0-21.21~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-21-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sun Apr 13 19:51:55 2025
InstallationDate: Installed on 2025-02-04 (68 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
SourcePackage: putty
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
林博仁(Buo-ren Lin) (brlin) wrote :
Revision history for this message
Jacob Nevins (0jacobnk-ulp) wrote (last edit ):
Revision history for this message
林博仁(Buo-ren Lin) (brlin) wrote :

@Jacob Nevins

Great discovery, I wonder whether the upstream patch is more SRU-favorable as it comprises more lines of code changes, though.

Revision history for this message
Jacob Nevins (0jacobnk-ulp) wrote :

The Fedora change (build with -DNOT_X_WINDOWS) is also somewhat intrusive, since it removes native X11 support from the build entirely.
One consequence would be that anyone running PuTTY with an X11 server who's configured it to use a server-side font would be unable to launch their sessions (and use their chosen font) at all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.