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

OSError: [Errno 24] Too many open files: 'vfs//system/lib//libz.so' #69

Open
longix opened this issue May 23, 2023 · 0 comments
Open

OSError: [Errno 24] Too many open files: 'vfs//system/lib//libz.so' #69

longix opened this issue May 23, 2023 · 0 comments

Comments

@longix
Copy link

longix commented May 23, 2023

测试example_douyin8.py
用for i in range(2000)把从175行开始全包起来,即从下面这行代码开始
emulator = Emulator(vfs_root=posixpath.join(posixpath.dirname(file), "vfs"))
当运行1024次左右就会报错,报错信息如下

Traceback (most recent call last):
File "D:\study\money_order\ExAndroidNativeEmu-master\example_douyin8.py", line 190, in
libdvm = emulator.load_library("vfs/system/lib/libdvm.so")
File "D:\study\money_order\ExAndroidNativeEmu-master\androidemu\emulator.py", line 248, in load_library
libmod = self.modules.load_module(filename, True)
File "D:\study\money_order\ExAndroidNativeEmu-master\androidemu\internal\modules.py", line 342, in load_module
libmod = self.load_module(path)
File "D:\study\money_order\ExAndroidNativeEmu-master\androidemu\internal\modules.py", line 231, in load_module
reader = elf_reader.ELFReader(filename)
File "D:\study\money_order\ExAndroidNativeEmu-master\androidemu\internal\elf_reader.py", line 165, in init
is_elf32 = ELFReader.check_elf32(filename)
File "D:\study\money_order\ExAndroidNativeEmu-master\androidemu\internal\elf_reader.py", line 148, in check_elf32
with open(filename, "rb") as f:
OSError: [Errno 24] Too many open files: 'vfs//system/lib//libz.so'

Process finished with exit code 1

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