MobileNativeFoundation / MobileNativeFoundation/XCLogParser
Memory Usage explosion in parse command in version 0.2.37
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.9k
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'd like to report an issue after upgrading from 0.2.36 to 0.2.37.
The parse command started having an issue in which it starts taking up massive amounts of system memory (RAM) indefinitely until the OS collapses.
The issue is not happening for previous versions where the parse command finishes instantly.
I have tried using the mentioned flags --omit_notes --omit_warnings to simplify the parsing of a large log, but this won't stop the issue.
Steps to reproduce:
- Build your app in Xcode 15.0.1
- Run parse command as
xclogparser parse --project MyProject --reporter flatJson --output log.json - The xclogparser process will slowly start taking up all available system memory. (Check the growing amount in Activity Monitor Memory tab)
- (Manually kill the process before the OS crashes)
Context:
- MacOS: Sonoma 14.1.2
- Device: MacbookPro M1
- Xcode: 15.0.1
- XCLogParser installation: 0.2.37 (Homebrew)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the regression with XCLogParser 0.2.37 and the reported parse command against a large Xcode 15.0.1 log, comparing it with 0.2.36. Check whether --omit_notes and --omit_warnings affect memory growth, and consider the issue done when parsing completes without indefinite RAM usage or an OS crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100