Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault on removal of port connection and addition/removal of new port #225

Open
tomascelko opened this issue Feb 21, 2024 · 0 comments
Open

Comments

@tomascelko
Copy link

tomascelko commented Feb 21, 2024

What I'm doing is the following:

  1. add a Node with multiple output ports attached
  2. add a connection (edge) from one of the ports to another node
  3. remove the connection ( without this step there is no problem)
  4. insert port to the collection of ports attached to this node (alternatively remove any port from this node)
  5. segfault in PortItem::updateEdges() }(see below)
void    PortItem::updateEdges()
{
    for (auto inEdgeItem: _inEdgeItems)
        if (inEdgeItem != nullptr)
            inEdgeItem->updateItem();
    for (auto outEdgeItem: _outEdgeItems)
        if (outEdgeItem != nullptr)
            outEdgeItem->updateItem(); //Here I get segfault (before any breakpoint within updateItem() is reached)
}

I'm not necessarily indicating that this is a bug. I'd be very grateful if you have any pointers on what could raise such an error. If you need more context, please ask. I'd be happy to provide it.
Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant