Skip to content

RemoteControl RemoteAdministrator.h ASSERT always hit ASSERT((_keyCallback == nullptr) ^ (callback == nullptr)); #836

@laurence-ejraee

Description

@laurence-ejraee

Hello,

When I enable build type debug on R5 Thunder with R5 ThunderNanoServices, this ASSERT in RemoteAdministrator.h is always hit on the second time of activating the RemoteControl plugin.

What seems to be happening is for the first activation of RemoteControl plugin, the ASSERT is fine because _keyCallback is nullptr since the RemoteAdministrator has just been created. However, when deactivated and then activated a second time, the ASSERT is hit because for some reason _keyCallback is not nullptr.

It seems RemoteAdministrator is not destroyed when the RemoteControl plugin is deactivated. Is this the intended behaviour or a bug?
Or do you believe the issue is something else?

Here is the stack trace at the fail:

===== $$ [3271]: ASSERT [RemoteAdministrator.h:436] ((_keyCallback == nullptr) ^ (callback == nullptr))
[<...>/usr/lib/libThunderCore.so.5]:[DumpCallStack]:[68]
[<...>/usr/lib/thunder/plugins/libThunderRemoteControl.so]:[Thunder::Remotes::RemoteAdministrator::Callback(Thunder::Exchange::IKeyHandler*)]:[256]
[<...>/usr/lib/thunder/plugins/libThunderRemoteControl.so]:[Thunder::Plugin::RemoteControl::Initialize[abi:cxx11](Thunder::PluginHost::IShell*)]:[3380]
[<...>/usr/bin/Thunder]:[]:[-1]

Any help is much appreciated!
Thanks.

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