Skip to content

Leaking frontend widgets #255

@AntoinePrv

Description

@AntoinePrv

In xtarget, when a widget is created by the frontend:

void xobject_comm_opened(xeus::xcomm&& comm, const xeus::xmessage& msg)

it is added to the registry:
factory.make(std::move(comm), state, buffers);

m_makers.at(model_module + model_name + view_module + view_name)(std::move(comm), state, buffers);

get_transport_registry().register_owning(reinterpret_cast<xmaterialize<CRTP, P...>&&>(model));

But never removed. It should be destroyed when the comm is closed by the frontend.

However the way to do this is not clear. Tracking how to do it in jupyter-xeus/xeus#356

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