Comments (7)
+1
from xclogparser.
+1
from xclogparser.
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.
from xclogparser.
I can confirm that rolling back to version 0.2.36 worked for me
from xclogparser.
Tested locally. Reverting #182 avoids the massive RAM usage. But the underlying issue seems to be the BuildStep
struct that has too many subSteps
.
With SwiftCompile
as a detail type, it includes each file's compilation, such as:
SwiftCompile normal arm64 /opt/homebrew/var/agent/builds/ip-123-45-67-890-internal/project/pipeline/.../Sources/.../file.swift (in target '...' from project '...') ... etc
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 --reporter json
and --reporter flatJson
, the struct becomes too large that JSONEncoder can't handle. The memory usage shoots up on line 42:
XCLogParser/Sources/XCLogParser/reporter/JsonReporter.swift
Lines 39 to 44 in cd41cfc
An alternative workaround is to use --reporter summaryJson
as it drops all the sub steps in the SummaryJsonReporter.
from xclogparser.
Reverting in #199 and then will cut a new release. Thanks for reporting!
from xclogparser.
Same problem with JSON, but not only on last version. Actually on each version I face that issue(
Context:
MacOS: Sonoma 14.2.1
Device: MacbookPro M3 Pro
Xcode: 15.1
XCLogParser installation: rake build v 0.2.36
from xclogparser.
Related Issues (20)
- Error while adding XCLogParser as Swift Package HOT 2
- Xcode13/14 xcactivitylog missing when running test
- [discussion] Did we has a plan to resolve space time with "new_build_system"? HOT 1
- Error: Error parsing the log: Unexpected className found parsing DocumentLocation DVTMemberDocumentLocation HOT 2
- XCLogParser does not pick up all deprecation warnings HOT 2
- Analyser messages are truncated in JSON output
- Unexpected className found parsing IDEActivityLogMessage IDEActivityLogActionMessage HOT 3
- FEATURE: New reporter for OpenTelemetry HOT 3
- Swift Type check and functions build times not generated HOT 10
- Release the latest changes? HOT 2
- 【discuss】Should the log file loaded with encoding UTF-8 ?
- Swift Compilation marked as others type HOT 1
- Huge html report size HOT 2
- Failed create json report Xcode 15.3 HOT 5
- Error: The line *{"wcDuration":152493 doesn't seem like a valid SLF line HOT 1
- parse xcode14.3 xcactivitylog error HOT 2
- any test xcactivitylog file for 0.2.39 release HOT 1
- Unexpected token parsing array of IDEActivityLogSectionAttachment HOT 1
- Unused variable warning not being returned by the `parse` command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xclogparser.