Skip to content

Exception on calling ctypes callback function #4

Description

@whitequark

When using the plugin, I'm getting this error most of the time (I'm not quite sure what the condition is):

[ScriptingProvider] Exception ignored on calling ctypes callback function <function _ThreadActionContext.__init__.<locals>.<lambda> at 0x7f73a5efcfe0>:
[ScriptingProvider] Traceback (most recent call last):
[ScriptingProvider]   File "/home/whitequark/Applications/binaryninja/plugins/../python/binaryninja/scriptingprovider.py", line 70, in <lambda>
[ScriptingProvider]     self.callback = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(lambda ctxt: self.execute())
[ScriptingProvider]   File "/home/whitequark/Applications/binaryninja/plugins/../python/binaryninja/scriptingprovider.py", line 78, in execute
[ScriptingProvider]     self.func()
[ScriptingProvider]   File "/home/whitequark/.binaryninja/repositories/official/plugins/Vector35_blobextractor/sidebar.py", line 347, in <lambda>
[ScriptingProvider]     execute_on_main_thread(lambda: self._handleExtractResults(fileReports, tempDir))
[ScriptingProvider]   File "/home/whitequark/.binaryninja/repositories/official/plugins/Vector35_blobextractor/sidebar.py", line 294, in _handleExtractResults
[ScriptingProvider]     self.filesTreeModel.removeRows(0, self.filesTreeModel.rowCount())
[ScriptingProvider] RuntimeError: Internal C++ object (TreeModel) already deleted.

I'm using BN version 5.0.7265-dev Ultimate (bc6ea9d2) on Debian trixie amd64. I can't seem to easily reproduce the conditions which causes this, but it's probably related to navigating away from the blob extractor sidebar while an extraction is running.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions