-
Notifications
You must be signed in to change notification settings - Fork 127
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 Usage explosion in parse command in version 0.2.37 #196
Comments
+1 |
1 similar comment
+1 |
Hello, unfortunately I don't have time to debug exactly what's wrong, but it must be one of the recently added contributions between the last two versions: v0.2.36...v0.2.37 I have a feeling it must be one of these 3 changes:
If you can locally try to revert each of those commits and see which one fixes it, that would be helpful. |
I can confirm that rolling back to version 0.2.36 worked for me |
Tested locally. Reverting #182 avoids the massive RAM usage. But the underlying issue seems to be the With
I tried it in a project with ~7,000 Swift files, it adds more than 400,000 sub steps into the parsed result, nested in 5 levels down. In both use cases of XCLogParser/Sources/XCLogParser/reporter/JsonReporter.swift Lines 39 to 44 in cd41cfc
An alternative workaround is to use |
Reverting in #199 and then will cut a new release. Thanks for reporting! |
Same problem with JSON, but not only on last version. Actually on each version I face that issue( Context: |
Any update on this? It's unfortunate that |
Hi, I'd like to report an issue after upgrading from
0.2.36
to0.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:
xclogparser parse --project MyProject --reporter flatJson --output log.json
Context:
The text was updated successfully, but these errors were encountered: