Skip to content
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

Editor freezes when trying to open a large report file #22

Closed
VitorMMOliveira opened this issue Aug 10, 2021 · 5 comments
Closed

Editor freezes when trying to open a large report file #22

VitorMMOliveira opened this issue Aug 10, 2021 · 5 comments
Assignees

Comments

@VitorMMOliveira
Copy link

Hello,

Lately we are having trouble with build times, and we're trying to use this tool to evaluate what the issue is.
However, our build log file is over 1 GB. We tried to open it with the BuildReportInspector, but it just freezes de editor on each click.

Is there any way we can split the log file or something else along these lines?

@ManasMudaHW
Copy link

Hello,
Facing Similar when we have many files in the build, Maybe because all the files fetch asset path and have a redirection for it.
Can u please look into this and fix it in next release.

@todi1856
Copy link
Member

todi1856 commented Sep 6, 2021

As stated in https://github.com/Unity-Technologies/BuildReportInspector/blob/master/README.md, this package is provided as-is and is not longer supported.

@SkowronskiAndrew
Copy link
Contributor

We have also observed internally that the Build Report Inspector is not able to handle large numbers of objects, and the "Source Assets" tab freezes up when attempting to list and summarize too many element.

In those cases looking inside the raw BuildReport file is a way to see the summary information, file list and build steps, which are the main bits of information to see overview of the build. The file by default is saved as Binary but can be converted to Yaml by moving it into the Asset folder, as the Build Report Inspector does. There is also some build summary information in the Editor.log.

For AssetBundles, the UnityDataTools analyze feature works well for large object counts. It uses an SQLite database so millions of objects can be analyzed and queried. That can be useful for navigating the content of what goes into a large build. But it is not aware of build time info.

For player builds it may be necessary to use the BuildReport API to extract and summarize information that is needed from the packedAssets. That can be useful to seeing the total size contributed by certain assets or other information.

Recently the main UI improvements in the build area have been going into Addressables package, that offers a better UI experience when building Asset Bundles.

@SkowronskiAndrew SkowronskiAndrew self-assigned this Feb 17, 2025
SkowronskiAndrew added a commit that referenced this issue Feb 19, 2025
Bring in fixes for the SourceAsset tab from an internal fork of the build report inspector.

-Set a maximum number of assets, if surpased it won't display (rather than letting Unity freeze)
-Collapse objects of the same type from the same asset together (tool tip shows the matching count)

-show the build type (Player versus assetbundle) available on newer versions of Unity.
-Show the build output path

-use yellow for errors because red text is pretty unreadable on the dark theme.

This should fix:
#15

And improve situation for:
#22

TestProject
Add a second scene with an audio file so that is a bit more content to see in the report.
@SkowronskiAndrew
Copy link
Contributor

#39 should improve this situation because it sets a maximum number of assets and collapses more entries together.
For truly large builds i expect there will still be performance problems until the UI is really overhauled for handling large lists.

@SkowronskiAndrew
Copy link
Contributor

Based on the SourceAsset cleanup I will close this. It should scale to larger projects now.

If there are further performance problems please open new issues, i think further work could be done but at a certain point the build report file is so large that trying to process it inside an Inspector window doesn't really make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants