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

Memory Error with latest resource file #62

Open
ghost opened this issue Sep 6, 2019 · 1 comment
Open

Memory Error with latest resource file #62

ghost opened this issue Sep 6, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 6, 2019

Using the latest firware, v1.1.5.56, the resource file contains possibly too many resources? I'm not very familiar with python so maybe I'm missing something.

After making a change to allow the newer header NERES mentioned in #52, I get the following output when trying to run res2img.py -d -u -i chaohu_v69.res:

file is a Haumi resource file
version 69
number of resources: 4294967295
Traceback (most recent call last):
  File "./tools/res2img.py", line 387, in <module>
    extract_list = range(max_rsrc)
MemoryError

Python version is 2.7.15+ and linux 64bit.

Any ideas?

@ghost
Copy link
Author

ghost commented Sep 6, 2019

I'm guessing there isn't enough memory for this much larger number of resources and we might need to break up the list into chunks.

Or perhaps I need to do more than just check for both header strings as in #60.

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

0 participants