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

AttributeError when bulk-importing types from another BNDB #308

Open
alexrp opened this issue Jun 9, 2023 · 0 comments
Open

AttributeError when bulk-importing types from another BNDB #308

alexrp opened this issue Jun 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@alexrp
Copy link

alexrp commented Jun 9, 2023

Description

Exception in thread Thread-6 (_worker_thread):
Traceback (most recent call last):
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\core\scheduler.py", line 60, in _worker_thread
    self._complete_a_job(block=True)
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\core\scheduler.py", line 89, in _complete_a_job
    job.execute()
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\core\scheduler.py", line 30, in execute
    self.ret_value = self.function(*self.args, **self.kwargs)
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\api\controller.py", line 32, in _init_check
    return f(self, *args, **kwargs)
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\api\controller.py", line 725, in push_artifact
    self.push_artifact(Function(func_addr, self.get_func_size(func_addr)), state=state, set_last_change=set_last_change)
  File "C:\Users\alex\AppData\Roaming\Binary Ninja\python310\site-packages\binsync\decompilers\binja\controller.py", line 118, in get_func_size
    func = self.bv.get_function_at(func_addr)
AttributeError: 'NoneType' object has no attribute 'get_function_at'

As a result of this, only the very first struct (ACL) was actually pushed by BinSync; everything else was lost.

Steps to reproduce the bug

  1. Open this BNDB.
  2. Click Analysis -> Import From BNDB.
  3. Import all types (structs, typedefs, enums) from this BNDB.

Environment

  • Binary Ninja 3.5.4322-dev Personal (94049b27)
  • BinSync 3.13.1

Additional context

No response

@alexrp alexrp added the bug Something isn't working label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant