could not find or load the Qt platform plugin “wayland” in “”. #15677

issue ghost openend this issue on March 27, 2019
  1. ghost commented at 4:43 pm on March 27, 2019: none

    Description The gui should start.

    Console output

    0[user@pc bitcoin-0.17.1]$ ./bin/bitcoin-qt 
    1This application failed to start because it could not find or load the Qt platform plugin "wayland"
    2in "".
    3
    4Available platform plugins are: xcb.
    5
    6Reinstalling the application may fix this problem.
    7Aborted (core dumped)
    

    Version

    0.17.1

    System

    Fedora Workstation 29 x64. GNOME shell.

    00.477051 tx=394718865 date='2019-03-25T11:52:11Z' progress=0.999999 cache=17.6MiB(130123txo) warning='37 of last 100 blocks have unexpected version'
    12019-03-25T12:00:20Z Pre-allocating up to position 0x300000 in rev01572.dat
    22019-03-25T12:00:21Z UpdateTip: new best=00000000000000000014211686fd587885582a85a17250137f8a64fdd0dfcaf8 height=568726 version=0x20000000 log2_work=90.477074 tx=394720217 date='2019-03-25T11:58:12Z' progress=0.999999 cache=18.1MiB(134539txo) warning='36 of last 100 blocks have unexpected version'
    32019-03-25T12:03:21Z GUI: The X11 connection broke (error 1). Did the X11 server die?
    
  2. promag commented at 4:49 pm on March 27, 2019: member
    Are you building from source?
  3. promag commented at 4:53 pm on March 27, 2019: member
    Try dnf install qt5-qtwayland.
  4. ghost commented at 5:04 pm on March 27, 2019: none

    @promag thanks but it says

    Package qt5-qtwayland-5.11.3-1.fc29.x86_64 is already installed.

  5. ghost commented at 5:06 pm on March 27, 2019: none

    maybe relevant

    0cat /usr/share/gnome/gnome-version.xml
    1<?xml version="1.0"?>
    2<gnome-version>
    3 <platform>3</platform>
    4 <minor>30</minor>
    5 <micro>2</micro>
    6 <distributor>GNOME.Org</distributor>
    7 <date>2019-02-05</date>
    8</gnome-version>
    
    0uname -a
    1Linux tree 5.0.3-200.fc29.x86_64 [#1](/bitcoin-bitcoin/1/) SMP Tue Mar 19 15:07:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    
  6. ghost commented at 5:07 pm on March 27, 2019: none
    @promag I am not building from source. I’m using binaries bitcoin-0.17.1-x86_64-linux-gnu.tar.gz
  7. MarcoFalke added the label GUI on Mar 27, 2019
  8. promag commented at 0:21 am on March 28, 2019: member

    Try running QT_QPA_PLATFORM="wayland;xcb" ./bin/bitcoin-qt.

    See https://blog.qt.io/blog/2018/05/29/whats-new-in-qt-5-11-for-the-wayland-platform-plugin/ section “Qt Wayland in official binaries”, especially the red text.

  9. ghost commented at 9:43 am on March 28, 2019: none

    Thanks that solves it! I’m using

    0qmake-qt5 --version
    1QMake version 3.1
    2Using Qt version 5.11.3 in /usr/lib64
    

    with QT_QPA_PLATFORM="wayland;xcb" ./bin/bitcoin-qt still gives the error

    0This application failed to start because it could not find or load the Qt platform plugin "wayland;xcb"
    1in "".
    

    but QT_QPA_PLATFORM="xcb" ./bin/bitcoin-qt fixes it.

  10. MarcoFalke commented at 12:53 pm on March 28, 2019: member
    This is a bug in gnome-shell+qt and there is nothing we can fix on our side, right?
  11. promag commented at 1:23 pm on March 28, 2019: member
    Right, but maybe mention this workaround somewhere?
  12. MarcoFalke closed this on Apr 29, 2019

  13. hebasto commented at 10:01 am on August 5, 2021: member
    See #22631.
  14. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-03 07:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me