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

Closing Remote Channel Sink causes SDRangel to exit #1034

Closed
srcejon opened this issue Nov 2, 2021 · 0 comments
Closed

Closing Remote Channel Sink causes SDRangel to exit #1034

srcejon opened this issue Nov 2, 2021 · 0 comments

Comments

@srcejon
Copy link
Collaborator

srcejon commented Nov 2, 2021

On a Windows debug build (not for release builds), closing the Remote channel Sink causes SDRangel to exit due to an assertion:

2021-11-02 12:14:21.959 (F) ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread 0x0x1bf0a5af700. Receiver '' (of type 'RemoteSinkSender') was created in thread 0x0x1bf0e5f4a20", file kernel\qcoreapplication.cpp, line 558

Call stack:

image

RemoteSinkSender::~RemoteSinkSender() deletes a socket that doesn't appear to be closed anywhere.

So I think this may relate to code in RemoteSinkSink, that moves this object to a thread and then tries to delete it:

In RemoteSinkSink::RemoteSinkSink()

m_remoteSinkSender = new RemoteSinkSender();
m_remoteSinkSender->moveToThread(m_senderThread);

Then in RemoteSinkSink::~RemoteSinkSink()

delete m_remoteSinkSender;
@f4exb f4exb closed this as completed in 5fa3613 Nov 6, 2021
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