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

多线程并发下触发 raise RuntimeError('Invalid get_reference(%d)' % idx) RuntimeError: Invalid get_reference(2050) 错误 #77

Open
Perrymud opened this issue Nov 3, 2024 · 0 comments

Comments

@Perrymud
Copy link

Perrymud commented Nov 3, 2024

100次并发执行 emulator.call_symbol(libml, 'JNI_OnLoad', emulator.java_vm.address_ptr, 0x00), 连续5次后,出现:

Traceback (most recent call last):
  File "\androidemu\hooker.py", line 109, in _hook
    hook_func(self._emu)
  File "\androidemu\java\helpers\native_method.py", line 123, in native_method_wrapper
    result = func(argv[0], mu, *native_args)
  File "\androidemu\java\jni_env.py", line 833, in get_method_id
    clazz = self.get_reference(clazz_idx)
  File "\androidemu\java\jni_env.py", line 289, in get_reference
    raise RuntimeError('Invalid get_reference(%d)' % idx)
RuntimeError: Invalid get_reference(2050)

错误

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