Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Viber crashes (Read 4863 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Viber crashes

I installed the latest Viber from AUR, and it worked fine for a day. The next day, whenever I try starting it I get:
Code: [Select]
qml: CALL_WEB_VIEW_DEBUG: callWebEngineLoader active: false
qml: *** popupMode = 1826
qrc:/QML/DebugMenu.qml:248: TypeError: Cannot call method 'isIdentityChangeNotificationsEnabled' of undefined
qrc:/QML/DebugMenu.qml:314: TypeError: Cannot call method 'isWasabiEnabled' of undefined
qrc:/QML/DebugMenu.qml:341: TypeError: Cannot call method 'isOOABURISpamCheckerForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:348: TypeError: Cannot call method 'isBirthdayNotificationEnabled' of undefined
qrc:/QML/DebugMenu.qml:355: TypeError: Cannot call method 'isBirthdayChatListEnabled' of undefined
qrc:/QML/DebugMenu.qml:369: TypeError: Cannot call method 'isVideoGroupCallEnabled' of undefined
qrc:/QML/DebugMenu.qml:376: TypeError: Cannot call method 'isForceASForScreenSharingEnabled' of undefined
qrc:/QML/DebugMenu.qml:384: TypeError: Cannot call method 'isRateCallQualityForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:391: TypeError: Cannot call method 'isCreateCustomPackEnabled' of undefined
qrc:/QML/DebugMenu.qml:399: TypeError: Cannot call method 'isMyNotesForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:413: TypeError: Cannot call method 'isTranslateMessageDeskManualEnabled' of undefined
qrc:/QML/DebugMenu.qml:420: TypeError: Cannot call method 'isTranslateMessageDeskAutomaticEnabled' of undefined
qt.qpa.xcb: Unhandled client message:  "_NET_WM_NAME"
qt.qpa.xcb: Unhandled client message:  "_NET_WM_NAME"
qt.qpa.xcb: Unhandled client message:  "_NET_WM_NAME"
qt.qpa.xcb: Unhandled client message:  "_NET_WM_NAME"
qml: Current screen: VGA-0 [1826, 1027, 1.0517598343685302]
qml: Geometry: mh=370, mw=250, h=370, w=250
qml: Current screen: VGA-0 [1826, 1027, 1.0517598343685302]
qml: Geometry: mh=150, mw=200, h=150, w=200
qrc:/QML/Video/CallPreviewWindow.qml:64:5: QML Connections: Cannot assign to non-existent property "onCallEnded"
qrc:/QML/NotificationsPopup/NotificationsPopupArea.qml:16: ReferenceError: Viber is not defined
qml: Current screen: VGA-0 [1826, 1027, 1.0517598343685302]
qml: Geometry: mh=0, mw=0, h=0, w=0
qrc:/QML/NotificationsPopup/NotificationsPopupArea.qml:16: ReferenceError: Viber is not defined
qml: Current screen: VGA-0 [1826, 1027, 1.0517598343685302]
qml: Geometry: mh=46, mw=352, h=46, w=352
qrc:/QML/Video/InShareBar.qml:212:5: QML Connections: Cannot assign to non-existent property "onCallEnded"
qrc:/QML/Video/InShareBar.qml:62:5: QML Connections: Cannot assign to non-existent property "onAvailableFrameChanged"
Segmentation fault
I tried deleting `/opt/viber` and reinstalling, but it just keeps crashing. Anyone had experience with this? I am sadly required to use Viber by my employer. -_-

Re: Viber crashes

Reply #1
qt5-base installed? try install qt5-webengine, if is not installed

sems, that few deps missing - read comment in AUR:
"needed this pkg to work so old relatives can simply have it working in linux, so i updated it and addapted dependencies avoiding missing qt5 libs: "
Code: [Select]
depends=('libxss' 'xcb-util-image' 'xcb-util-keysyms' 'xcb-util-renderutil'  'xcb-util-wm' 'libxss' 'nss' 'libxcomposite' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly' 'gst-libav' 'libxslt' 'openssl-1.0' 'icu55' 'qrencode' 'libpng12' 'qt5-webengine' 'qt5-3d' 'qt5-remoteobjects' 'qt5-multimedia' 'qt5-websockets' 'qt5-virtualkeyboard')

Re: Viber crashes

Reply #2
qt5-base installed? try install qt5-webengine, if is not installed

I have qt5-base installed, but didn't have qt5-webengine. But there is no change even after installing that second package - it still crashes. Thanks anyway. I'll try to install those other packages and post the result.

Re: Viber crashes

Reply #3
Update: After installing all the packages:
Code: [Select]
'libxss' 'xcb-util-image' 'xcb-util-keysyms' 'xcb-util-renderutil'  'xcb-util-wm' 'libxss' 'nss' 'libxcomposite' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly' 'gst-libav' 'libxslt' 'openssl-1.0' 'icu55' 'qrencode' 'libpng12' 'qt5-webengine' 'qt5-3d' 'qt5-remoteobjects' 'qt5-multimedia' 'qt5-websockets' 'qt5-virtualkeyboard'
I get the exact same error message when starting viber.

Re: Viber crashes

Reply #4
installed, works.

remove or rename  /home/user/.ViberPC (and /home/user/cache Viber xxxxx folder) and run viber again - maybe corrupted profile.

Re: Viber crashes

Reply #5
I tried removing "~/.ViberPC" and "~/.cache/Viber Media S.à r.l" (hmm... that folder name...) and Viber could then start as normal. I was even able to start it again after quitting (by using the tray icon menu item to exit). However, I tried rebooting and then starting Viber, and I am once again getting the same error messages as before.

Re: Viber crashes

Reply #6
weird... what for DE you use? qt5 5.15.2 installed?

Code: [Select]
[alois@picasso home]$ viber
qml: CALL_WEB_VIEW_DEBUG: callWebEngineLoader active: false
qrc:/QML/DebugMenu.qml:248: TypeError: Cannot call method 'isIdentityChangeNotificationsEnabled' of undefined
qrc:/QML/DebugMenu.qml:314: TypeError: Cannot call method 'isWasabiEnabled' of undefined
qrc:/QML/DebugMenu.qml:341: TypeError: Cannot call method 'isOOABURISpamCheckerForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:348: TypeError: Cannot call method 'isBirthdayNotificationEnabled' of undefined
qrc:/QML/DebugMenu.qml:355: TypeError: Cannot call method 'isBirthdayChatListEnabled' of undefined
qrc:/QML/DebugMenu.qml:369: TypeError: Cannot call method 'isVideoGroupCallEnabled' of undefined
qrc:/QML/DebugMenu.qml:376: TypeError: Cannot call method 'isForceASForScreenSharingEnabled' of undefined
qrc:/QML/DebugMenu.qml:384: TypeError: Cannot call method 'isRateCallQualityForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:391: TypeError: Cannot call method 'isCreateCustomPackEnabled' of undefined
qrc:/QML/DebugMenu.qml:399: TypeError: Cannot call method 'isMyNotesForceEnabled' of undefined
qrc:/QML/DebugMenu.qml:413: TypeError: Cannot call method 'isTranslateMessageDeskManualEnabled' of undefined
qrc:/QML/DebugMenu.qml:420: TypeError: Cannot call method 'isTranslateMessageDeskAutomaticEnabled' of undefined
qml: Current screen: HDMI-A-0 [1920, 1080, 1]
qml: Geometry: mh=402, mw=282, h=402, w=282
qml: Current screen: HDMI-A-0 [1920, 1080, 1]
qml: Geometry: mh=190, mw=240, h=190, w=240
qml: Current screen: HDMI-A-0 [1920, 1080, 1]
qml: Geometry: mh=0, mw=0, h=0, w=0
qml: Current screen: HDMI-A-0 [1920, 1080, 1]
qml: Geometry: mh=46, mw=320, h=46, w=320

Re: Viber crashes

Reply #7
I'm using dwm. Other qt applications work without problems, for instance I can run qt5ct or neovim-qt. I also installed all the packages you listed as the prerequisites.

Edit: Furthermore, Viber itself works flawlessly on fresh install/QR code scan until I reboot.

Edit 2: Just did yay -S qt5 and added ~700 MB to my installation, which didn't help circumvent the crash.

Re: Viber crashes

Reply #8
Quote
Edit 2: Just did yay -S qt5 and added ~700 MB to my installation, which didn't help circumvent the crash.
that is really not neccesary

I'm using dwm. Other qt applications work without problems, for instance I can run qt5ct or neovim-qt. I also installed all the packages you listed as the prerequisites.
uninstall qt5ct - try if it not cause problem (qt5ct broke my programs once) <--just try


Re: Viber crashes

Reply #10
you can try create new user and try it in new clean profile (without set you gtk/qt5 themes)

your profile / profile's settings can be broke.

Second day, restarted computer, Viber on my side still works ;-)

Re: Viber crashes

Reply #11
Well, I tried that now but unfortunately, the result is the same - it works until I reboot the computer. I can scan the QR code, log into and sync my Viber chats and messages, I can even exit Viber and restart it, but as soon as the computer is rebooted viber crashes on that clean account.

Re: Viber crashes

Reply #12
Well, I tried that now but unfortunately, the result is the same - it works until I reboot the computer. I can scan the QR code, log into and sync my Viber chats and messages, I can even exit Viber and restart it, but as soon as the computer is rebooted viber crashes on that clean account.

that's is very very weird and strangely.... some crash messages in 'dmesg' after you used viber?  System is up to date? newest kernel installed? I do not know where the error may be :\

Re: Viber crashes

Reply #13
I only get this in dmesg when Viber crashes:
Code: [Select]
[ 4137.953144] viber[19525]: segfault at 0 ip 0000000000d0dcf8 sp 00007ffcaedcab20 error 4 in Viber[400000+29f5000]
[ 4137.953152] Code: f6 56 32 02 48 83 c0 10 48 89 03 48 8d 43 10 48 89 c7 48 89 85 68 fc ff ff e8 94 38 b0 ff c6 83 b0 00 00 00 01 e8 28 73 be ff <48> 8b 10 48 89 c7 ff 52 60 49 89 c5 48 8d 05 35 f3 0d 00 bf 18 00
I installed artix-base-s6 fairly recently, and I run yay -Syu daily. Here's my uname -srv output:
Code: [Select]
Linux 5.9.10-artix1-1 #1 SMP PREEMPT Sun, 22 Nov 2020 17:02:30 +0000
Here's the output of inxi -F:
Code: [Select]
System:    Host: meneltarma Kernel: 5.9.10-artix1-1 x86_64 bits: 64 Desktop: dwm 6.2 Distro: Artix Linux 
Machine:   Type: Desktop Mobo: Gigabyte model: H61M-DS2V v: x.x serial: N/A UEFI: American Megatrends v: F5 date: 04/17/2013
CPU:       Info: Quad Core model: Intel Core i5-3450 bits: 64 type: MCP L2 cache: 6144 KiB
           Speed: 3222 MHz min/max: 1600/3500 MHz Core speeds (MHz): 1: 2896 2: 1785 3: 2794 4: 3235
Graphics:  Device-1: NVIDIA GK107 [GeForce GTX 650] driver: nvidia v: 455.45.01
           Display: server: X.Org 1.20.9 driver: nvidia unloaded: modesetting,nouveau,vesa resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 650/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio driver: snd_hda_intel
           Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel
           Sound Server: ALSA v: k5.9.10-artix1-1
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 90:2b:34:4d:4f:6a
Drives:    Local Storage: total: 1.82 TiB used: 47.02 GiB (2.5%)
           ID-1: /dev/sda vendor: Western Digital model: WD20EZRZ-00Z5HB0 size: 1.82 TiB
Partition: ID-1: / size: 91.17 GiB used: 11.79 GiB (12.9%) fs: ext4 dev: /dev/sda6
           ID-2: /home size: 772.53 GiB used: 35.20 GiB (4.6%) fs: ext4 dev: /dev/sda7
Swap:      ID-1: swap-1 type: partition size: 7.45 GiB used: 0 KiB (0.0%) dev: /dev/sda5
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C
           Fan Speeds (RPM): N/A
Info:      Processes: 217 Uptime: 1h 12m Memory: 7.74 GiB used: 734.1 MiB (9.3%) Shell: Bash inxi: 3.1.07
Output of pacman -Qv viber:
Code: [Select]
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/ 
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/ 
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : viber
viber 13.3.1.22-1

Re: Viber crashes

Reply #14
hmm, NVIDIA GK107 [GeForce GTX 650] driver: nvidia v: 455.45.01 <-- that can (but must not) cause this problem

no second Intel graphics card?

can you try "nouveau" driver instead nvidia?
pacman -S xf86-video-nouveau (editing Xorg files necessary) https://wiki.archlinux.org/index.php/Nouveau

EDIT: put here output from
Code: [Select]
 ldd /opt/viber/Viber