qt: Maximum allowed requested length exceeded #18537

issue Elbandi opened this issue on April 6, 2020
  1. Elbandi commented at 1:06 PM on April 6, 2020: contributor

    When running bitcoin qt over x11 remote session (DISPLAY=1.2.3.4:0) in a clean machine, wallet stops with error.

    Expected behavior

    Initial intro dialog (were to put the data files) opened.

    Actual behavior

    I got this:

    The X11 connection broke: Maximum allowed requested length exceeded (code 4)
    XIO:  fatal IO error 2 (No such file or directory) on X server "192.168.200.26:51"
          after 219 requests (219 known processed) with 0 events remaining.

    To reproduce

    Need a clean machine (~/.bitcoin sould be not exists), need a remote x11 "desktop".

    export DISPLAY=1.2.3.4:0
    ./bitcoin-qt

    System information

    ubuntu bionic/xenial tested x64/arm cpu tested remote x11 session: xvnc and pure xorg tested

    The issue

    Intro dialog sets the windowicon, this bitmap is 1024x1024 pixels. the qt5 convert this into argb32 format (=1 pixel 4 bytes), thats 4M data. The x11 remote connections allow only less than 4M length.

    Possible fix

    We dont need 1024x1024 dialog icon, just 128x128 or 256x256. So scale the icon:

    intro.setWindowIcon(QIcon(QPixmap(":icons/bitcoin").scaled(QSize(128, 128), Qt::KeepAspectRatio, Qt::SmoothTransformation )));
  2. Elbandi added the label Bug on Apr 6, 2020
  3. fanquake added the label GUI on Apr 6, 2020
  4. fanquake commented at 6:56 AM on August 10, 2020: member

    Thanks for the detailed bug report. I've just moved this over to the gui repository: https://github.com/bitcoin-core/gui/issues/47.

  5. fanquake closed this on Aug 10, 2020

  6. DrahtBot locked this on Feb 15, 2022
Contributors
Labels

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: 2026-04-21 18:14 UTC

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