Comments (25)
I think the solution is to not use the full json for the HTML report, it's actually not needed. I will try to work on a new version that uses a smaller json
with only the data we need next week
from xclogparser.
I also have the same problem.
for some reason the html works on safari, but it shows a warning that the report is taking up a lot of memory. Maybe that's why google chrome breaks.
from xclogparser.
Hi! You mention that html reporter is broken. Does that mean for other reporters (like --reporter flatJson
), the log is parsed correctly?
Does the generated in the output directoryjs/build.js
contain any log data?
from xclogparser.
Hi! You mention that html reporter is broken. Does that mean for other reporters (like
--reporter flatJson
), the log is parsed correctly?
Does the generated in the output directoryjs/build.js
contain any log data?
same problem,
--reporter flatJson
seems fine,
js/build.js
contains log data
20200925113843.zip
Environment:
macOS Catalina 10.15.6
Xcode Version 11.7 (11E801a)
language: swift5
from xclogparser.
Hi! You mention that html reporter is broken. Does that mean for other reporters (like
--reporter flatJson
), the log is parsed correctly?
Does the generated in the output directoryjs/build.js
contain any log data?
@polac24 as far as I can see from my terminal output when I try --reporter flatJson
is working fine
and js/build.js
contains the logs data but it is 3 GB (almost 4GB)
also I got to try the json reporter and it was working as well
from xclogparser.
3GB js/build.js
is definitely too big to load in a browser. Please open the file and scan which elements are duplicated, most likely duplicated entries cause 4GB filesize.
If you can share your .xcactivitylog
, that would be helpful too.
from xclogparser.
Hi team,
I am running into the same issue.
XCLogParser 0.2.19
Xcode Version 11.5 (11E608c)
OS Version 10.15.6(19G2021)
Swift 5
Our js/build.js
is 594.1 MB and contains log data. And this is what the index.html looks like
from xclogparser.
So I got the fix.(kind of) @AyaAkl25 @polac24 @im-ling
I got the blank html page if I ran the command below in the xcactivitylog folder.
xclogparser parse --file {id}.xcactivitylog --reporter html --output reports/
However, if I ran the command below. It will generate the correct HTML and *.js
files. And if I opened the HTML file in Chrome, it will crash. But if I open the HTML file in Safari, it will show the correct content.
xclogparser parse --project MyApp --reporter html --output reports/
from xclogparser.
3GB
js/build.js
is definitely too big to load in a browser. Please open the file and scan which elements are duplicated, most likely duplicated entries cause 4GB filesize.
If you can share your.xcactivitylog
, that would be helpful too.
Unfortunately I won't be able to share the .xcactivitylog
file but I am checking fir the duplicate entries.. Not sure yet why this file is starting to be that big
from xclogparser.
So I got the fix.(kind of) @AyaAkl25 @polac24 @im-ling
I got the blank html page if I ran the command below in the xcactivitylog folder.
xclogparser parse --file {id}.xcactivitylog --reporter html --output reports/However, if I ran the command below. It will generate the correct HTML and
*.js
files. And if I opened the HTML file in Chrome, it will crash. But if I open the HTML file in Safari, it will show the correct content.xclogparser parse --project MyApp --reporter html --output reports/
Still same issue with me even from Safari :(
from xclogparser.
Hi, @xyreryp @AyaAkl25 can you use Chrome to get the error? Open the html in it, right click on it and choose "Inspect" to open the developer console. Reload the page and check the Console tab for any Javascript error:
from xclogparser.
Hi, @xyreryp @AyaAkl25 can you use Chrome to get the error? Open the html in it, right click on it and choose "Inspect" to open the developer console. Reload the page and check the Console tab for any Javascript error:
I tried that and no errors show up at all, I think the html page tries to show the data but because if the size of the log file, it cannot complete. but so far no idea why the file is so big like that. It worked before
from xclogparser.
So I deleted all the files and everything and tried to generate the html report again, now the size is back to normal but still does not want to load any data then the page breaks
from xclogparser.
Thisi is the error we have in console
from xclogparser.
Hey guys, any help or clues on this?
from xclogparser.
@AyaAkl25 @hc-almeida can you help me check the size of the json
file? It's located in the folder called js
inside where the index.html is created. The name of the file is build.js
Also, do you generate Swift Type Check stats (building with the option -debug-time-expression-type-checking
? We also have issues displaying the HTML when we generate them.
from xclogparser.
@AyaAkl25 @hc-almeida can you help me check the size of the
json
file? It's located in the folder calledjs
inside where the index.html is created. The name of the file isbuild.js
Also, do you generate Swift Type Check stats (building with the option-debug-time-expression-type-checking
? We also have issues displaying the HTML when we generate them.
so the build.js
file it is almost 4GB, when it is like 5,6MB everything seems fine. I tried to look for duplicated entries but so far I didn't find any.
No we don't build with -debug-time-expression-type-checking
option
I have a question, like at Spotify, normally what is the size of the build.js
and does it happen that sometimes this logs file gets so big?
Thank you
from xclogparser.
@AyaAkl25 that's really big. I was checking ours and in the worst case it's ~145MB. Do you have too many targets or files in your project? Are you using something like Cocoapods with a lot of dependencies?
from xclogparser.
so about targets, I tried multiple of schemes that has different numbers of targets (high and low) and same result of big size file. about Cocoapods, yes we do use it and I believe with lots of dependencies, is there a way I can solve this out?
from xclogparser.
I think the solution is to not use the full json for the HTML report, it's actually not needed. I will try to work on a new version that uses a smaller
json
with only the data we need next week
Thank you so much
from xclogparser.
I think the solution is to not use the full json for the HTML report, it's actually not needed. I will try to work on a new version that uses a smaller
json
with only the data we need next week
Thank you. Same problem here, our json is slightly more than 3gb and we had no luck rendering the html output.
from xclogparser.
I believe it appears the size of the JSON file depends on XCLog file it is parsing. So, i was able to get size from 2GB to 150MB by turning off SwiftLint and without_build_specific_information options. I was only interested in build times so this may be ok. If you want to get count of Warnings and errors may be you want to keep SwiftLink step.
from xclogparser.
I think the solution is to not use the full json for the HTML report, it's actually not needed. I will try to work on a new version that uses a smaller
json
with only the data we need next week
Hey @ecamacho are there any updates on that matter? Thank you
from xclogparser.
Hi @AyaAkl25 @emesa-meli @hc-almeida we just released a new version that breaks down the report to smaller files so the browser can render them. Please give it a try
from xclogparser.
what i found is the cdn website of jquery sometimes down
from xclogparser.
Related Issues (20)
- Custom DerivedData path in Xcode 12.5 HOT 1
- xclogparser parses the second to the latest .xcactivitylog HOT 3
- Question: Can the event "Create directory..." be removed from the start of targets? HOT 6
- Process gets killed after a while when parsing a large xcactivitylog HOT 3
- Build status sanitizing
- Add GitHub CODEOWNERS
- xcodebuild does not generate a valid xcactivitylog HOT 2
- Error: xcactivitylog is not a valid xcactivitylog file HOT 5
- Missing C files and Swift files count in HTML reports -v0.2.33
- Chrome unable to load index.html with error code 5 HOT 1
- SonarQube integrations HOT 2
- Issues with HTML Reporter (and solutions) HOT 5
- Error parsing Xcode 14 log HOT 5
- XCLogParser does not pick up deprecation warnings from xcodebuild
- 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
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.