Skip to content

"Too many open files" Error #1

@Squishy6094

Description

@Squishy6094

On latest commit (fa80095) as of typing and running from Arch Linux using a virtual environment with all dependencies from requirements.txt installed.

While attempting to run the tool on Daniel EDC's "Peach's Memory," the tool will get past some parts of extraction and then run into an issue when getting to textures:

...
Serializing structured IR to final C code using processors...
ERROR: Error in texture worker for castle_grounds_area_1_texture_0E027450_022B7450_seg14: [Errno 24] Too many open files: '/home/squishy6094/Documents/rom-decomp-64/out/Super_Mario_64_Peachs_Memory_Daniel_EDC.z64/levels/castle_grounds/areas/1/castle_grounds_area_1_texture_0E027450_022B7450_seg14.png'
Traceback (most recent call last):
  File "/home/squishy6094/Documents/rom-decomp-64/texture.py", line 202, in _write_png_worker
  File "/home/squishy6094/Documents/rom-decomp-64/output_manager.py", line 182, in write
  File "/home/squishy6094/Documents/rom-decomp-64/output_manager.py", line 94, in _get_file_handle
OSError: [Errno 24] Too many open files: '/home/squishy6094/Documents/rom-decomp-64/out/Super_Mario_64_Peachs_Memory_Daniel_EDC.z64/levels/castle_grounds/areas/1/castle_grounds_area_1_texture_0E027450_022B7450_seg14.png'
...

Presumably this is caused by files not being properly closed after processing is done. After the tool states it's "Done" in the GUI, I close it using the titlebar X, which logs the following then closes:

Failed to extract rom '/home/squishy6094/Documents/rom-decomp-64/in/Super_Mario_64_Peachs_Memory_Daniel_EDC.z64'

Here is the mod output and my own session log

Super_Mario_64_Peachs_Memory_Daniel_EDC.zip

session.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions