Viber Fails To Start: FATAL:xkb_keyboard_layout_engine.cc(640)

Case: Viber cannot start. After a flatpak or appimage install, running through terminal, Viber fails with error xkb_keyboard_layout_engine.cc(640)] Keymap file failed to load: us-phonetic

Specifics

OpenSUSE Tumbleweed KDE
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Graphics Platform: X11

Solution tested on Viber Flatpak and Appimage.

Terminal Output

GLImplementation: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
Using Default SG Backend: yes
Using Software Dynamic GL: no
Using Angle: no

Init Parameters:
* allow-loopback-in-peer-connection
* application-name ViberPC
* autoplay-policy no-user-gesture-required
* browser-subprocess-path /tmp/.mount_viber_oLmOsp/libexec/QtWebEngineProcess
* create-default-gl-context
* disable-features DnsOverHttpsUpgrade,ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture,AudioServiceOutOfProcess
* disable-setuid-sandbox
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess,NetworkServiceInProcess
* enable-threaded-compositing
* enable-usermedia-screen-capture
* in-process-gpu
* use-gl desktop

xkbcommon: ERROR: Couldn't process include statement for 'us(phonetic)'
xkbcommon: ERROR: Abandoning symbols file "(unnamed)"
xkbcommon: ERROR: Failed to compile xkb_symbols
xkbcommon: ERROR: Failed to compile keymap
[8604:8648:0914/150822.394113:FATAL:xkb_keyboard_layout_engine.cc(640)] Keymap file failed to load: us-phonetic
../run.sh: line 80: 8604 Trace/breakpoint trap (core dumped) ../Viber

Solution

  1. Open (KDE) System Settings >> Input Devices >> Keyboard >> Layouts
  2. Set the (top of the list) English input method to an alternative layout, for example replace English (US) with English (US, Symbolic)
    or: SelectEnglish and Move Down the list.
  3. Edit (or create a new) desktop shortcut for Viber and set the Exec variable to be flatpak run com.viber.Viber

References

Did this solve your issue?