You are not logged in.

#1 2022-04-13 02:23:39

MountainX
Member
Registered: 2016-02-08
Posts: 368

possible packaging issue with Arch's Community repo element-desktop

I posted a bug report and a dev said, " I think this would be one for the arch package maintainers: the Arch package is an unofficial, 3rd party package."

Cannot find module './i18n/strings/en-us.json · Issue #21754 · vector-im/element-web

I'm running element-desktop 1.10.8-2 (https://archlinux.org/packages/communit … t-desktop/) on Arch Linux KDE. System is fully updated as of today.

I launched element-desktop in Konsole like this:

/usr/lib/electron17/electron /usr/lib/element/app.asar

    I see the following output in the console:

    /home/user/.config/Element exists: yes
    /home/user/.config/Riot exists: no
    No update_base_url is defined: auto update is disabled
    Fetching translation json for locale: en_EN
    Changing application language to en-us
    Fetching translation json for locale: en-us
    Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
    Require stack:
        /usr/lib/element/app.asar/lib/language-helper.js
        /usr/lib/element/app.asar/lib/tray.js
        /usr/lib/element/app.asar/lib/electron-main.js
        /usr/lib/electron17/resources/default_app.asar/main.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
        at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105)
        at Module._load (node:internal/modules/cjs/loader:785:27)
        at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
        at Module.require (node:internal/modules/cjs/loader:1012:19)
        at require (node:internal/modules/cjs/helpers:102:18)
        at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:76:20)
        at /usr/lib/element/app.asar/lib/language-helper.js:89:39
        at Array.forEach ()
        at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:88:17) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
        '/usr/lib/element/app.asar/lib/language-helper.js',
        '/usr/lib/element/app.asar/lib/tray.js',
        '/usr/lib/element/app.asar/lib/electron-main.js',
        '/usr/lib/electron17/resources/default_app.asar/main.js',
        undefined
        ]
        }
        Resetting the UI components after locale change
        Resetting the UI components after locale change
        [80201:0412/082559.040771:ERROR:vaapi_wrapper.cc(1096)] vaQuerySurfaceAttributes failed, VA error: invalid parameter
        [80201:0412/082559.040944:ERROR:vaapi_wrapper.cc(1043)] FillProfileInfo_Locked failed for va_profile VAProfileH264Main and entrypoint VAEntrypointVLD
        [80201:0412/082559.041017:ERROR:vaapi_wrapper.cc(1096)] vaQuerySurfaceAttributes failed, VA error: invalid parameter
        [80201:0412/082559.041058:ERROR:vaapi_wrapper.cc(1043)] FillProfileInfo_Locked failed for va_profile VAProfileH264High and entrypoint VAEntrypointVLD
        Changing application language to en-us
        Fetching translation json for locale: en-us
        Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
        Require stack:
        /usr/lib/element/app.asar/lib/language-helper.js
        /usr/lib/element/app.asar/lib/tray.js
        /usr/lib/element/app.asar/lib/electron-main.js
        /usr/lib/electron17/resources/default_app.asar/main.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
        at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105)
        at Module._load (node:internal/modules/cjs/loader:785:27)
        at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
        at Module.require (node:internal/modules/cjs/loader:1012:19)
        at require (node:internal/modules/cjs/helpers:102:18)
        at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:76:20)
        at /usr/lib/element/app.asar/lib/language-helper.js:89:39
        at Array.forEach ()
        at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:88:17) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
        '/usr/lib/element/app.asar/lib/language-helper.js',
        '/usr/lib/element/app.asar/lib/tray.js',
        '/usr/lib/element/app.asar/lib/electron-main.js',
        '/usr/lib/electron17/resources/default_app.asar/main.js',
        undefined
        ]
        }
        Resetting the UI components after locale change
        libpng warning: iCCP: known incorrect sRGB profile
        libpng warning: iCCP: known incorrect sRGB profile
        libpng warning: iCCP: known incorrect sRGB profile
        libpng warning: iCCP: known incorrect sRGB profile
        libpng warning: iCCP: known incorrect sRGB profile
        libpng warning: iCCP: known incorrect sRGB profile

What did you expect?
No errors to be shown.

What happened instead?
Multiple errors are listed in the console. Please suggest how to resolve them. Do I need to install some additional packages? or change config settings?

Operating system
Arch Linux

Application version
1.10.8-2, Olm version: 3.2.8

How did you install the app?
pacman

Last edited by MountainX (2022-04-13 02:40:47)

Offline

#2 2022-04-13 02:26:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,998
Website

Re: possible packaging issue with Arch's Community repo element-desktop

Fix your post. You've been around long enough to know code tags are required.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-04-13 06:56:22

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: possible packaging issue with Arch's Community repo element-desktop

There's en_US.json and en_EN.json - "en-us" isn't a valid locale to begin with.

localectl
locale
locale -a

Offline

#4 2022-04-13 19:51:49

MountainX
Member
Registered: 2016-02-08
Posts: 368

Re: possible packaging issue with Arch's Community repo element-desktop

Maybe that first dev who replied and blamed it on Arch packagers was mistaken. See this discussion in the comments: https://github.com/vector-im/element-web/issues/19218

Offline

#5 2022-04-29 20:51:31

MountainX
Member
Registered: 2016-02-08
Posts: 368

Re: possible packaging issue with Arch's Community repo element-desktop

I know of two issues with Element that seem to be specific to Arch Linux and are affecting me.

[Bug]: electron17 17.4.0-1 dumping core (with Element Desktop app) on Arch Linux · Issue #33695 · electron/electron

Random SIGTRAPs in DecommitSystemPages on Arch Linux · Issue #20926 · vector-im/element-web

This issue is being worked on, so if anyone has anything to report it would help.

This third issue is also affecting me.

Hovering over the message reply/options will sometimes cause Element to become unresponsive. · Issue #21755 · vector-im/element-web

duplicate of:
spinning at 100% cpu, flickering mouse cursor · Issue #21147 · vector-im/element-web

This one should be resolved when Electron19 is released.

From my comment in that issue:

[Four] days ago I replaced Element Desktop with SchildiChat Desktop version: 1.10.4-sc.1 and so far I have not experienced either issue mentioned above, even with message search enabled.

SchildiChat has all the features of Element, so this has been a good solution for me.

I'm running AUR (en) - schildichat-desktop-bin

Last edited by MountainX (2022-04-29 20:52:37)

Offline

Board footer

Powered by FluxBB