Skip to content

getrawtransaction hangs node when calling large size tx #932

Open

Description

@hebasto

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Using Bitcoin Core (bitcoin-qt) 30.2 console, the command "getrawtransaction 30794005e228089a56cca58b6ad85e8cc0667cdc06b0ee6f9fe72aa19f50acd2" leaves the software unresponsive. This transaction is non-standard and included in block 938523. The transaction is 3.98 MB in size according to a 3rd party block explorer.

Image

Expected behaviour

Expected raw transaction output in Console

Steps to reproduce

Run "getrawtransaction 30794005e228089a56cca58b6ad85e8cc0667cdc06b0ee6f9fe72aa19f50acd2"

(warning: expect your node to become unresponsive)

Relevant log output

No response

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

30.2

Operating system and version

Ubuntu 24.04.2 LTS

Machine specifications

Image

Moved from bitcoin/bitcoin#34703.

Activity

  1. hebasto commented on Mar 17, 2026

    @hebasto
    MemberAuthor

    @FafoDevelopment

    Could you clarify please if the GUI is truly frozen, or if it's just taking too long time to produce the output?

  2. hebasto commented on Mar 17, 2026

    @hebasto
    MemberAuthor

    It seems that QTextEdit::append is responsible for this performance issue.

  3. FafoDevelopment commented on Mar 17, 2026

    @FafoDevelopment

    @FafoDevelopment

    Could you clarify please if the GUI is truly frozen, or if it's just taking too long time to produce the output?

    The first time I ran into this issue, I let it run overnight (7-8 hours) and still had no output. The GUI becomes unresponsive - cannot close the console window, cannot open the Settings drop down menu, etc.

  4. ShauryaaSharma commented on Jun 20, 2026

    @ShauryaaSharma

    Looking into this. The hang appears to be in the GUI's RPC console when it attempts to render the ~8 MB hex output (3.98 MB transaction = ~7.96 MB hex string) inside a Qt text widget, Qt's internal document model is not designed for single-line payloads of that size, which causes the UI thread to stall.

    Will raise a PR to add a size threshold in the console's response rendering path, truncating or paginating output beyond a reasonable limit (e.g. 100 KB) and showing a notice like "Output too large to display, use -rpcwallet or pipe to a file."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions