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

The runtime error "AttributeError: 'NoneType' object has no attribute 'analysis'" #9

Open
ll00llgoog opened this issue Dec 6, 2024 · 3 comments

Comments

@ll00llgoog
Copy link

Traceback (most recent call last):
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\integration\ida_integration.py", line 559, in activate
self.action_function(IDA_GLOBAL_CTX)
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\core.py", line 233, in _interactive_prev_execution
pctx.interactive_prev_execution()
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\context.py", line 388, in interactive_prev_execution
rebased_address = self.reader.analysis.rebase_pointer(address)
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'analysis'
Traceback (most recent call last):
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\integration\ida_integration.py", line 559, in activate
self.action_function(IDA_GLOBAL_CTX)
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\core.py", line 229, in _interactive_next_execution
pctx.interactive_next_execution()
File "H:\xxxx/IDA_Pro_8.3/IDA_Pro_8.3/plugins\tenet\context.py", line 376, in interactive_next_execution
rebased_address = self.reader.analysis.rebase_pointer(address)
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'analysis'

image
The issue occurs when I use Shift+P and Shift+N.

What should I do to fix this error?
PS:If you can help me understand the role of this variable, I can try to fix it.

@AntoineBlaud
Copy link
Owner

Hello @ll00llgoog,

I’m not sure which version you’re using, but it’s not the latest one. Please pull the latest version from the main branch, synchronize the tenet directory inside the plugin directory, and let me know if self.reader is still causing issues.

And I think it’s obvious, but the trace file must be opened before using previous and next execution shortcuts.

@electricalArt
Copy link

electricalArt commented Dec 24, 2024

I have the same issue ("AttributeError: 'NoneType' object has no attribute 'analysis') with the latest version of the plugin.

the trace file must be opened before using previous and next execution shortcuts.

How it should be opened? In the "Basic Usage For Program Analysis" section you wrote:

Use step tracing to register the instructions and their results.

I can't figure out how to use step tracing. No such command in IDA Command palette.

@AntoineBlaud
Copy link
Owner

Hi @electricalArt,

I tested a fresh installation and noticed some problems specifically on Windows, particularly with line_profile and capstone. It seems your installation might not be complete, which could explain why the options menu is missing.

To enable the options menu, you need to right-click (open the context menu) while hovering over the disassembly view. Below, I've included a screenshot for reference.

Image

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

3 participants