Skip to content

Memory Leak in Large Dataset Processing #1306

@Zedoman

Description

@Zedoman

Description:

When processing large iOS extractions (especially with many photos/videos), iLEAPP can consume excessive memory and potentially crash. This is particularly evident in media-heavy artifacts like photosMetadata.py and BeReal.py.

Technical Details:

  1. Memory usage grows linearly with dataset size without proper cleanup
  2. Large SQLite databases are loaded entirely into memory
  3. Media file processing doesn't use streaming/chunked processing
  4. No memory usage monitoring or limits

Evidence from Code:

### In photosMetadata.py and similar modules
all_rows = cursor.fetchall()  ### Loads entire dataset into memory

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