eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
1.01k stars 105 forks source link

Error when exec application #130

Closed peterwilfride closed 2 years ago

peterwilfride commented 3 years ago

After compiling the application and exec ./whatsapp-for-linux, I have the following error

Settings: Failed to load ui resource: Invalid byte sequence in conversion input

I read that have to install aspell of my language, so I install aspell-pt, but it's still gives the same error. Also tried make install and I've already set up all dependencies, nothing worked. What should I do?

System: Artix-Linux

eneshecan commented 3 years ago

What version of the app are you running? Seems like an old version to me.

peterwilfride commented 3 years ago

I cloned from here and compiled, following the tutorial. But I also install using yay/aur and test in my Arch Linux and both didn't work.

What version of the app are you running? Seems like an old version to me.

eneshecan commented 3 years ago

There might be a problem with your system. Could you please try to regenerate your locales with this?

sudo locale-gen

825i commented 3 years ago

Exact same issue and I've regen'd my locales.

(process:71075): Gtk-WARNING **: 13:55:39.469: Locale not supported by C library.
    Using the fallback 'C' locale.

(whatsapp-for-linux:71075): Gtk-WARNING **: 13:55:39.489: Theme parsing error: gtk-dark.css:6342:10: 'height' is not a valid property name
Settings: Failed to load ui resource: Invalid byte sequence in conversion input
eneshecan commented 3 years ago

@pythonInRelay Thanks! Could you please report your environment information such as your distro, DE/WM, and maybe the gtkmm version?

eneshecan commented 3 years ago

Could you guys please debug the application with gdb ./whatsapp-for-linux to see where it breaks?

825i commented 3 years ago

@pythonInRelay Thanks! Could you please report your environment information such as your distro, DE/WM, and maybe the gtkmm version?

neofetch

https://privatebin.net/?d323b1301691a9c0#6PgppPLNoYemnQVDkyuP4Xa6VAdwQRe82iDjYXKX5PBe

I can see from the above printout using yay that it "failed to set locale". No idea why that is. As I said, I rebuilt my locale like you requested.

After installing with yay

➜  ~ whatsapp-for-linux

(process:86260): Gtk-WARNING **: 08:14:03.252: Locale not supported by C library.
    Using the fallback 'C' locale.

(whatsapp-for-linux:86260): Gtk-WARNING **: 08:14:03.269: Theme parsing error: gtk-dark.css:6342:10: 'height' is not a valid property name
Settings: Failed to load ui resource: Invalid byte sequence in conversion input
825i commented 3 years ago

The snap package is broken due to an upstream issue so I am just using plain old AUR to install

eneshecan commented 3 years ago

Please, try rebuilding again since I see from the console output, that is an old error message.

0xb1n4ry commented 2 years ago

I'm getting the same issue I've done both, build the app myself and install from aur, no difference I have all the dependencies install with the latest version from the arch repo as of the time of writing this issue.

825i commented 2 years ago

I gave up on using this and just started using the web.whatsapp.com version. It's far more reliable. I am pretty sure this version of Whatsapp doesn't support groups or anything anyway so I don't see the point in using it and I couldn't even get the AUR version to work reliably.

eneshecan commented 2 years ago

I think this can be fixed by calling setlocale(LC_ALL, "") at the first line in main.cpp. @pythonInRelay could you please try?

eneshecan commented 2 years ago

Possibly fixed by 03c08b7

0xb1n4ry commented 2 years ago

I tried again with that latest commit, it didn't fix it, the problem is still there

eneshecan commented 2 years ago

I tried again with that latest commit, it didn't fix it, the problem is still there

Could you please debug with gdb and tell me where and how it breaks?

adamant-pwn commented 2 years ago

I have the same issue. Running whatsapp-for-linux provides

<13>Nov  3 17:15:19 whatsapp-for-linux[732152]: 
<13>Nov  3 17:15:19 whatsapp-for-linux[732152]: (process:732151): Gtk-WARNING **: 17:15:19.934: Locale not supported by C library.
<13>Nov  3 17:15:19 whatsapp-for-linux[732152]:         Using the fallback 'C' locale.
<13>Nov  3 17:15:20 whatsapp-for-linux[732152]: Settings: Failed to load ui resource: Invalid byte sequence in conversion input

And locale provides

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY="en_DE.UTF-8"
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT="en_DE.UTF-8"
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=

I also have the bsdtar: Failed to set default locale message on build as well. As I understand, en_DE.UTF-8 locale is somewhat invalid and it is set by my desktop environment (Plasma 5.23.2). I don't want to change something in its regional settings, as I'd like to have English language with German formats. Any workarounds here?

eneshecan commented 2 years ago

Please see #154. I am closing this now.