wire-desktop freezes when receiving a message while window is unfocused (Linux)

Created on 15 Apr 2018  ·  13Comments  ·  Source: wireapp/wire-desktop

Wire version: 3.0.2816
Wire for Web Version: 2018.04.12.1337
Operating system: Debian GNU/Linux unstable (sid) x86_64
Window manager: i3-gaps
Which antivirus software do you have installed: None

What steps will reproduce the problem?

  1. Start wire-desktop
  2. Unfocus the chat window (By either going to the Wire preferences/settings menu, focusing another window, or just switching to a different i3 workspace)
  3. Receive a message from any contact

What is the expected result?
Being able to focus the window again and see the message normally

What is the actual result?
When attempting to refocus the window, wire-desktop freezes and requires a restart (although sound alerts can still be heard going off)
It seems like the problem is cross platform, as Windows users also experience it #179

Workaround:
Like #179 mentions, a workaround is selecting "Off" on Notifications. Sound alerts work fine, but visual notifications are what seem to be the problem.

Linux 🐧

Most helpful comment

I found the problem. You need to have a libnotify daemon running (eg. dunst).

Here is how you would do that on Debian/Ubuntu:

  • First you need to install dunst:
    sudo apt update && sudo apt upgrade && sudo apt install dunst libnotify-bin
  • Add dunst to your startup script (your .xinitrc or your i3 config)
    In case you want to add it to your xinitrc (~/.xinitrc), it should look something like this:
dunst &

exec i3
````
If you are using i3 you can add this to your i3 config (~/.config/i3/config) instead:

exec_always --no-startup-id dunst &
```

Of course the notifications won't look very beautify, but for that to change you will need to edit your configuration file.

All 13 comments

Hi,

I have exactly the same problem (under Debian testing, using i3wm from the official repos).

Can't reproduce on Linux (i3wm) but can confirm on Windows 10 (1607) with Wire 3.0.2828.

I am Starting to see it freeze when receiving messages on Ubuntu 18.04 This is if the app is focused or not. Version 3.2.2840

Thanks for bearing with us on this.

This is most likely linked to wireapp/wire-webapp#3988 and slow app starts, which have bugged us for way too long. We have identified one particular place in the code that was that slowed this task down significantly. It turned out to be a quite simply fix from the code point of view. Previously a database request became slower and slower with an increasing database size.

With the performance of this request beeing greatly improved, the app should no longer freeze when you receive a message. This optimization will be part of the next release. Please let us know if you see an improvement.

This was introduced to me with the latest update. Starts fine, freezes on incoming message when it is in background. After ~3 minutes it's responding again.
screenshot_20180717_150854

Wire version: 3.0.2816
Wire for Web Version: 2018.07.16.1405
Operating system: KUbuntu 17.10
Window manager: kwin
Which antivirus software do you have installed: None

@0xpr03 Please update your desktop app to the latest version. The update now banner only takes care of the webapp component. The latest version of the desktop app for Linux is 3.2.2840, which can be acquired from https://wire.com/download/.

I didn't knew about that, thanks for mentioning. Would be nice if the app would at least warn about that, as you normally don't expect an application to have two different update mechanisms, for which one doesn't even notice you about possible updates.

The startup is quick but I still freeze when receiving new messages.
Version 3.2.2840
Wire for Web Version 2018.07.16.1405

@MikeStutzzzz did you try updating to the latest version 3.5? I wonder if this still happens for you since I can't reproduce that behavior on Linux or Windows.

I found the problem. You need to have a libnotify daemon running (eg. dunst).

Here is how you would do that on Debian/Ubuntu:

  • First you need to install dunst:
    sudo apt update && sudo apt upgrade && sudo apt install dunst libnotify-bin
  • Add dunst to your startup script (your .xinitrc or your i3 config)
    In case you want to add it to your xinitrc (~/.xinitrc), it should look something like this:
dunst &

exec i3
````
If you are using i3 you can add this to your i3 config (~/.config/i3/config) instead:

exec_always --no-startup-id dunst &
```

Of course the notifications won't look very beautify, but for that to change you will need to edit your configuration file.

But I think the wire should still check if there is a notification daemon running to prevent this from happening.

I've got no more problems under the recent versions + KUbuntu 18.04, so what ever resolved this (OS update / App update) thanks

Seems to be solved. Feel free to comment if @pExeen's comment didn't help you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xloem picture xloem  ·  3Comments

dwt picture dwt  ·  3Comments

Nuruddinjr picture Nuruddinjr  ·  4Comments

dependabot-preview[bot] picture dependabot-preview[bot]  ·  3Comments

AllanDaemon picture AllanDaemon  ·  4Comments