desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Crash]: Linux Client crashes on error https://foo.server/error?type=channel_not_found&returnTo=/barGroup/channels/town-square

Open Scoeerg opened this issue 1 year ago • 4 comments

Before you file a crash report

Mattermost Desktop Version

5.9.0

Operating System

Ubuntu Linux 22.04 LTS x64

Mattermost Server Version

No response

What type of crash did you experience?

System crash (The application quit unexpectedly with no warning, or the operating system reported a crash)

Crash report details

tl;dr:

Linux Client crashes on error https://foo.server/error?type=channel_not_found&returnTo=/barGroup/channels/town-square

Details:

Given a direct chat between two users A and B. If there exists a link to channel in the direct chat between those two users

hey, look into ~myChannel

it of course links to https://foo.server/barGroup/channels/mychannel. Click on it, and the channel mychannel opens. If the user A is also in another group foobar_group

https://foo.server/foobar_group/

where the channel mychannel does not exist and he clicks on the same link within the direct chat, mattermost throws the exception

https://foo.server/error?type=channel_not_found&returnTo=/foobar_group/channels/town-square

which is fine in browser, but it crashes the Linux client.

Log Output

My logs this morning. Crash happened around 11.30 a.m. Maybe logged as [2024-09-03 11:31:27.322] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.?

[2024-09-03 08:44:24.713] [error] Logger Log level set to: info
[2024-09-03 08:44:24.830] [warn]  [App.Initialize] Current working directory is /home/eric, changing into /snap/mattermost-desktop/762/opt/Mattermost
[2024-09-03 08:44:25.166] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 08:44:25.233] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-09-03 08:44:25.288] [info]  [ServerDropdownView] init
[2024-09-03 08:44:25.329] [warn]  [i18nManager] Failed to set new language en-US
[2024-09-03 08:44:25.330] [warn]  [i18nManager] Failed to set new language US
[2024-09-03 08:44:25.485] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 08:44:25.836] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 08:44:26.630] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 08:59:57.047] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 09:00:03.103] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 10:02:51.906] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:03:19.667] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:05:29.112] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:09:16.257] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:10:23.646] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:10:30.219] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:10:33.322] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:10:40.450] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:10:44.058] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:13:07.639] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:19:01.582] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:31:25.744] [error] Logger Log level set to: info
[2024-09-03 11:31:25.827] [warn]  [App.Initialize] Current working directory is /home/eric, changing into /snap/mattermost-desktop/762/opt/Mattermost
[2024-09-03 11:31:25.953] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 11:31:25.971] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-09-03 11:31:26.006] [info]  [ServerDropdownView] init
[2024-09-03 11:31:26.052] [warn]  [i18nManager] Failed to set new language en-US
[2024-09-03 11:31:26.052] [warn]  [i18nManager] Failed to set new language US
[2024-09-03 11:31:26.199] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 11:31:26.540] [info]  [App.Config] config.autostart has been configured: true
[2024-09-03 11:31:27.322] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.
[2024-09-03 11:31:32.772] [error] [WebContentsEventM...] [RPTU] [TAB_MESSAGING] [renderer] Uncaught (in promise) Error: Invalid or missing user_id parameter in request URL.

Additional Information

hope it helps :)

Scoeerg avatar Sep 03 '24 09:09 Scoeerg

@Scoeerg Is this consistently reproducible? If so, can you try running the client from the command line and reproducing? There might be some additional logs there - it's looking like Chromium is crashing somehow.

devinbinnie avatar Sep 09 '24 16:09 devinbinnie

Sure, let me look into it tomorrow :)

Scoeerg avatar Sep 09 '24 16:09 Scoeerg

@Scoeerg Were you able to reproduce with additional information?

devinbinnie avatar Sep 20 '24 15:09 devinbinnie

Sorry, I could not do it before my vacation :/. I will be back September 30th.

Scoeerg avatar Sep 20 '24 17:09 Scoeerg

Closing as inactive. Feel free to message if this is still relevant.

devinbinnie avatar Dec 18 '25 21:12 devinbinnie

Hi,

It seems you've already fixed the issue. Instead of crashing, the client now just shows:

Image

Here's the log from running in terminal:

mattermost-desktop 
13:33:38.980 › Logger Log level set to: { level: 'info' }
[macos-notification-state] failed to load 'notificationstate' addon Error: Module did not self-register: '/snap/mattermost-desktop/820/opt/Mattermost/resources/app.asar.unpacked/node_modules/macos-notification-state/build/Release/notificationstate.node'.
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2617)
    at Module._extensions..node (node:internal/modules/cjs/loader:1874:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2844)
    at Module.load (node:internal/modules/cjs/loader:1448:32)
    at Module._load (node:internal/modules/cjs/loader:1270:12)
    at c._load (node:electron/js2c/node_init:2:17993)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1470:12)
    at require (node:internal/modules/helpers:147:16) {
  code: 'ERR_DLOPEN_FAILED'
}
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
13:33:39.088 › [App.Initialize] Current working directory is /home/my_user, changing into /snap/mattermost-desktop/820/opt/Mattermost
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "mattermost" setting to invalid value "Mattermost.Desktop"
Gtk-Message: 13:33:39.138: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
13:33:39.262 › [App.Config] config.autostart has been configured: { autostart: true }
[163953:1219/133339.263130:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164073: Permission denied (13)
[163953:1219/133339.276337:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.Secret.Service.ReadAlias: object_path= /org/freedesktop/secrets: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.649" (uid=1000 pid=163953 comm="/snap/mattermost-desktop/820/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.freedesktop.Secret.Service" member="ReadAlias" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=1000 pid=1981 comm="/usr/bin/gnome-keyring-daemon --daemonize --login " label="unconfined")
13:33:39.280 › [SecureStorage] Secure storage is not available on this system. Secrets will be stored in plain text. Consider installing keyring services for better security.
13:33:39.280 › [SecureStorage] Secure storage initialized - encryption unavailable
[163953:1219/133339.288897:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.3057" (uid=1000 pid=163953 comm="/snap/mattermost-desktop/820/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=1067 comm="/lib/systemd/systemd-logind " label="unconfined")
13:33:39.289 › [SecureStorage] Initialized secure storage cache
[163953:1219/133339.333417:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164144: Permission denied (13)
[163953:1219/133339.337143:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164145: Permission denied (13)
[163953:1219/133339.338972:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164146: Permission denied (13)
13:33:39.338 › [ServerDropdownView] init
[163953:1219/133339.342353:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164152: Permission denied (13)
[163953:1219/133339.346182:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164162: Permission denied (13)
[163953:1219/133339.349730:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164170: Permission denied (13)
[163953:1219/133339.355093:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 164181: Permission denied (13)
13:33:39.363 › [App.Initialize] Autoupgrade disabled: false
13:33:39.461 › [i18nManager] Failed to set new language { locale: 'en-US' }
13:33:39.461 › [i18nManager] Failed to set new language { locale: 'US' }
^C13:35:10.297 › [BaseWindow] window closed

I am terribly sorry, I completely forgot this issue existed. Happy holidays 🎄 and thanks for a great application, I use it every day :)

Scoeerg avatar Dec 19 '25 12:12 Scoeerg