Open Bug 1788250 Opened 3 years ago Updated 3 years ago

Matrix on Wayland is unstable "Error reading events from display: Broken pipe"

Categories

(Thunderbird :: Instant Messaging, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: tom, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

  1. Launch Thunderbird on a wayland desktop environment (I am using Wayfire)
  2. Add a Matrix account
  3. Either immediately or while interacting with the chat tab, the whole application will crash.

There is a secondary issue, possibly related, that verifying the device never makes the prompt appear on wayland, but I'll report that separately once it doesn't crash.

The easiest way to replicate it is to quickly switch between conversations, opening one while another is still loading seems to cause this almost every time

Actual results:

console.debug: "Successfully loaded OpenPGP library librnp.so version 0.16+git20220124.f06439f7.MZLA from /usr/lib/thunderbird/librnp.so"
console.debug: "Found 0 public keys and 0 secret keys (0 protected, 0 unprotected)"
console.warn: services.settings: Failed to load last_modified.json: TypeError: NetworkError when attempting to fetch resource.
console.debug: "Trying to load /usr/lib/thunderbird/libotr.so"
console.debug: "Trying to load libotr.so from system's standard library locations"
console.debug: "Trying to load libotr.so.5 from system's standard library locations"
console.debug: "Trying to load libotr.so from system's standard library locations"
console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 109))
prpl-matrix.matrix: No response or error when parsing .well-known
prpl-matrix.matrix: No .well-known JSON file found
JavaScript error: resource:///modules/imThemes.jsm, line 508: TypeError: aMsg.conversation.account.statusInfo is null
prpl-matrix.matrix: Error decrypting event (id=$vCn40FDKdvt3DFFXI5V70HR6L4ZmwX01N5ezaotqtrc): DecryptionError[msg: The sender has disabled encrypting to unverified devices., session: TdVs0AeiXYebtVoBFPWloM5CS1SENKMqztcoAVOLMXU|3QIPiyVLc/YCkL9M/IVytnG2wYdjyb5m04V89iWX8As]
console.warn: gloda: "new proc ignoring attrib: id"
Gdk-Message: 15:11:05.086: Error reading events from display: Broken pipe
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX

or

prpl-matrix.matrix: No response or error when parsing .well-known
prpl-matrix.matrix: No .well-known JSON file found
prpl-matrix.matrix: Error decrypting event (id=$vCn40FDKdvt3DFFXI5V70HR6L4ZmwX01N5ezaotqtrc): DecryptionError[msg: The sender has disabled encrypting to unverified devices., session: TdVs0AeiXYebtVoBFPWloM5CS1SENKMqztcoAVOLMXU|3QIPiyVLc/YCkL9M/IVytnG2wYdjyb5m04V89iWX8As]
Gdk-Message: 15:18:06.809: Lost connection to Wayland compositor.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

What's weird here, is that my device was verified at the point I got this message.

I tried with MOZ_ENABLE_WAYLAND=0 and it seems a lot more stable

Expected results:

It doesn't crash

Component: Untriaged → Instant Messaging
You need to log in before you can comment on or make changes to this bug.