Viber: Linux – Qt WebEngine resources not found

By | 02/20/2019
 

After latest packages upgrade on my Arch Linux workstation – Viber stopped working.

Found a few solutions, but the only one really solved the issue.

The errors during Viber start looks like next:

[simterm]

$ viber 
Qt WebEngine ICU data not found at /opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /opt/viber/resources. Trying parent directory...
Qt WebEngine ICU data not found at /opt/viber/resources. Trying parent directory...
Qt WebEngine resources not found at /opt/viber/resources. Trying parent directory...
qml: type=""
qml: type=""
qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method

[/simterm]

And its window:

Solution #1 (didn’t work)

My first suggestion was that something happened with the Qt WebEngine package itself.

Check if it is present in a system at all:

[simterm]

$ pacman -Ql qt5-webengine|grep resources
error: package 'qt5-webengine' was not found

[/simterm]

Install it:

[simterm]

$ sudo pacman -S qt5-webengine

[/simterm]

Run Viber again – no, the same errors.

Re-installing Viber’s package (from AUR) also didn’t work.

Well – have to go and google for real ideas then…

Solution #2 (didn’t work)

Found the Reddit discussion here>>> and another solution in comments here>>>.

Check you Viber’s home content:

[simterm]

$ ls -l ~/.ViberPC
total 184
drwxr-xr-x 8 setevoy setevoy  4096 Feb 18 11:56 38096***26
-rw-r--r-- 1 setevoy setevoy 36864 Feb 18 11:56 config.db
-rw-r--r-- 1 setevoy setevoy 32768 Feb 18 12:02 config.db-shm
-rw-r--r-- 1 setevoy setevoy 98912 Feb 18 12:02 config.db-wal
drwxr-xr-x 3 setevoy setevoy  4096 May 23  2018 data
drwxr-xr-x 2 setevoy setevoy  4096 May 23  2018 WebLocalStorage

[/simterm]

Move it (do NOT delete!) to backups:

[simterm]

$ mv ~/.ViberPC Backups/

[/simterm]

Run Viber:

Nope – window still displayed partially only.

Restore directory from backup:

[simterm]

$ rm -rf ~/.ViberPC
$ cp -r Backups/.ViberPC/ .

[/simterm]

Solution #3 (It works!)

And the final solution found in the AUR’s comments which really worked was to remove the ~/.cache/qtshadercache/ directory:

[simterm]

$ ls -l ~/.cache/qtshadercache/
total 496
-rw-r--r-- 1 setevoy setevoy  6557 Feb 11 14:51 0ae8e51494a69e9723be7ea3412d736939d049d6
...
-rw-r--r-- 1 setevoy setevoy 15557 Feb  6 11:51 d9bb34941b5563b04e9a9a715902c4e960f692b0
-rw-r--r-- 1 setevoy setevoy 20745 Feb 18 12:07 e24592d8d235339875cae31851ad680a190a7cc6

[/simterm]

Move it to backups:

[simterm]

$ mv ~/.cache/qtshadercache/ ~/Backups/

[/simterm]

Run Viber – and it works now.