How to reproduce: Build a transaction with ~190 inputs, get the hex and issue `testmempoolaccept [\"{txhex}\"]` in the GUI console. It'll give back a `TX decode failed (code -22)` with a stripped txhex where the end is cut down.
// 
    ui->lineEdit->installEventFilter(this);
    ui->messagesWidget->installEventFilter(this);
    connect(ui->clearButton, &QPushButton::clicked, this, &RPCConsole::clear);
    connect(ui->fontBiggerButton, &QPushButton::clicked, this, &RPCConsole::fontBigger);
    connect(ui->fontSmallerButton, &QPushButton::clicked, this, &RPCConsole::fontSmaller);
    connect(ui->btnClearTrafficGraph, &QPushButton::clicked, ui->trafficGraph, &TrafficGraphWidget::clear);
    // 
    ui->WalletSelector->setVisible(false);
    ui->WalletSelectorLabel->setVisible(false);
    // set library version labels
#ifdef 
    ui->berkeleyDBVersion->setText(QString::fromStdString(BerkeleyDatabaseVersion()));
#else
    ui->label_berkeleyDBVersion->hide();
    ui->berkeleyDBVersion->hide();
#endif
    // 
    rpcTimerInterface = new QtRPCTimerInterface();
    // 
    // 
    m_node.rpcSetTimerInterfaceIfUnset(rpcTimerInterface);
    setTrafficGraphRange(INITIAL_TRAFFIC_GRAPH_MINS);
    ui->detailWidget->hide();
    ui->peerHeading->setText(tr("Select a peer to view detailed information."));
    consoleFontSize = settings.value(fontSizeSettingsKey, QFont().pointSize()).toInt();
    clear();
    GUIUtil::handleCloseWindowShortcut(this);
}
RPCConsole::~RPCConsole()