Skip to content

crashed when click twice on a no-connection-port of locked-node #396

Closed

Description

@mindon

using example lock_nodes_and_connections

MBP M1, MacOS 13.5 Qt6.5.1

Repeat Steps:

  1. create a node
  2. locked nodes
  3. click on one empty port twice (a port without a connection)

Logs:

0   QtWidgets                     	       0x1032d5198 QGraphicsItem::acceptedMouseButtons() const + 4
1   QtWidgets                     	       0x1032f78ec QGraphicsScenePrivate::mousePressEventHandler(QGraphicsSceneMouseEvent*) + 796
2   QtWidgets                     	       0x1032fd9a0 QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent*) + 88
3   QtWidgets                     	       0x1032facac QGraphicsScene::event(QEvent*) + 724
4   QtWidgets                     	       0x10301a628 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
5   QtWidgets                     	       0x10301b4c8 QApplication::notify(QObject*, QEvent*) + 560
6   QtCore                        	       0x1036d6db8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 208
7   QtWidgets                     	       0x103321498 QGraphicsView::mousePressEvent(QMouseEvent*) + 508
8   libQtNodes.dylib              	       0x1028d39a4 QtNodes::GraphicsView::mousePressEvent(QMouseEvent*) + 36

Activity

  1. changed the title [-]crashed when click twice on a port without a connection on locked-node[/-] [+]crashed when click twice on a no-connection-port of locked-node[/+] on Sep 15, 2023
  2. paceholder commented on Nov 22, 2026

    @paceholder
    Owner

    Thanks for the report. This crash was fixed in 3.0.13 (commit 3f46f74, #487). A locked node now ignores the mouse press, so clicking one of its ports starts no connection and no longer crashes. The check is still in 3.1.8 (NodeGraphicsObject::mousePressEvent).

    We reproduced your steps (click twice on a port without a connection, on a locked node) in a new test. Without the fix the test fails, and with it the test passes. It is in PR #548.

    Closing this one. If you still see the crash on 3.1.8 with the lock_nodes_and_connections example, please reopen it with the stack trace.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions