Search Unity

[RELEASED] Better Build Info - An in-depth look at build and assets

Discussion in 'Assets and Asset Store' started by gwiazdorrr, Sep 9, 2016.

  1. dreamer2017helloworld

    dreamer2017helloworld

    Joined:
    Apr 7, 2020
    Posts:
    16
    @gwiazdorrr
    Hello I have a request
    Can you add specific information about code strip and why the code is included in the package?
     
  2. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    I don't think this information can be reliably obtained.
     
  3. JesseSTG

    JesseSTG

    Joined:
    Jan 10, 2019
    Posts:
    236
    What if you use something like Roslyn to compare the assemblies in Library/ScriptAssemblies to the assemblies in your most recent build artifact directory?
     
  4. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,879
    When I select an asset in Project window, it's automatically selected in the Build Info window, as well. Is there a way to disable this or could you please implement this feature?
     
  5. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    This could work, but still looks like a massive undertaking. I'll have a look.

    I'll add a toggle to enable/disable that.
     
    yasirkula likes this.
  6. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,879
    Thank you for adding this feature. In a future update, could you give 2 options instead of 1: when I select an asset in Better Build Info, I want it to be selected in Project window but when I select an asset in Project window, I don't want it to be selected in Better Build Info.
     
    gwiazdorrr likes this.
  7. abhijeet1001

    abhijeet1001

    Joined:
    Jan 6, 2015
    Posts:
    65
    my plugin always get stuck on analysing
     

    Attached Files:

  8. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    FYI: we were not able to get to the bottom of this. Collecting asset details had to be disabled, this allowed the analysis to finish. This is the first instance of what seems to be an infinite loop... or something is being ridiculously slow. If anyone else suffers from this, please let me know.
     
  9. abhijeet1001

    abhijeet1001

    Joined:
    Jan 6, 2015
    Posts:
    65
    @gwiazdorrr it was happening due to nested level prefabs I have in game. The level prefabs had enemy prefabs which had, ragdolls, weapons, alot of particles, scripts etc. Deleting enemy prefabs from my level prefabs and spawning them at launch of game, solved the issue.
     
  10. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
    hmm failinng to build on android... it was workin fine earlier.. think I changed to 64bit and IL2CP
    Code (CSharp):
    1. BetterBuildInfo: File C:\Projects\Unity\FFS_Android\Releases doesn't exist
    2. UnityEngine.Debug:LogError (object)
    3. Better.BuildInfo.Internal.Log:Error (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:9)
    4. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (System.IO.FileInfo,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:650)
    5. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:641)
    6. Better.BuildInfo.Internal.BuildArtifactsInfo:CreateForAndroid (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:326)
    7. Better.BuildInfo.Internal.BuildArtifactsInfo:Create (UnityEditor.BuildTarget,string,string) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:69)
    8. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:122)
    9. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    10. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    11.  
    12. Error building Player: BetterBuildInfo: File C:\Projects\Unity\FFS_Android\Releases doesn't exist
    13.  
    14. Build completed with a result of 'Failed' in 320 seconds (319833 ms)
    15. 2 errors
    16. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    17.  
    Releases does exist.. if I remove this asset build works fine, wish I knew what settings broke it
     
  11. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    @Slashbot64 this path should point to a file, not a directory.

    What's your Unity version? Do you build .APK or .AAB?
     
  12. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
    2023.1.a16

    It does build fine without betterbuild installed..

    C:\Projects\Unity\FFS_Android\Releases\FFS.armeabi-v7a.apk
    C:\Projects\Unity\FFS_Android\Releases\FFS.arm64-v8a.apk

    with it on I just get that error about an empty folder

    Code (CSharp):
    1. BetterBuildInfo: File C:\Projects\Unity\FFS_Android\Releases doesn't exist
    2. UnityEngine.Debug:LogError (object)
    3. Better.BuildInfo.Internal.Log:Error (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:9)
    4. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (System.IO.FileInfo,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:650)
    5. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:641)
    6. Better.BuildInfo.Internal.BuildArtifactsInfo:CreateForAndroid (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:326)
    7. Better.BuildInfo.Internal.BuildArtifactsInfo:Create (UnityEditor.BuildTarget,string,string) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:69)
    8. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:122)
    9. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    10. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    11.  
    12. BetterBuildInfo: Unable to obtain build artifacts info: System.InvalidOperationException: Command "C:/Program Files/Unity/Hub/Editor/2023.1.0a16/Editor/Data/Tools/7z.exe l -ba "C:/Projects/Unity/FFS_Android/Releases"" returned an error: 2, details:
    13. 1981-01-01 01:01:02 .....            0            0  FFS.arm64-v8a
    14. 1981-01-01 01:01:02 .....           56           52  META-INF\com\android\build\gradle\app-metadata.properties
    15. 1981-01-01 01:01:02 .....       123420        54070  classes.dex
    16. 1981-01-01 01:01:02 .....        68200        33331  lib\arm64-v8a\lib_burst_generated.so
    17. 1981-01-01 01:01:02 .....     89701864     23342335  lib\arm64-v8a\libil2cpp.so
    18. 1981-01-01 01:01:02 .....         6712         2542  lib\arm64-v8a\libmain.so
    19. 1981-01-01 01:01:02 .....     20527080      8939000  lib\arm64-v8a\libunity.so
    20. 1981-01-01 01:01:02 .....          185          185  assets\UnityServicesProjectConfiguration.json
    21. 1981-01-01 01:01:02 .....        18564        18564  assets\available.tflite
    22. 1981-01-01 01:01:02 .....         2055         2055  assets\available_features.json
    23. 1981-01-01 01:01:02 .....     15195632      4249637  assets\bin\Data\Managed\Metadata\global-metadata.dat
    24. 1981-01-01 01:01:02 .....          900          321  assets\bin\Data\Managed\Resources\Newtonsoft.Json.dll-resources.dat
    25. 1981-01-01 01:01:02 .....        93718         7957  assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
    26. 1981-01-01 01:01:02 .....       337563       126076  assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
    27. 1981-01-01 01:01:02 .....         4937         4937  assets\bin\Data\RuntimeInitializeOnLoads.json
    28. 1981-01-01 01:01:02 .....         4979         4979  assets\bin\Data\ScriptingAssemblies.json
    29. 1981-01-01 01:01:02 .....          107           91  assets\bin\Data\boot.config
    30. 1981-01-01 01:01:02 .....     13184752     13184752  assets\bin\Data\data.unity3d
    31. 1981-01-01 01:01:02 .....      1073360       283543  assets\bin\Data\unity default resources
    32. 1981-01-01 01:01:02 .....           36           38  assets\bin\Data\unity_app_guid
    33. 1981-01-01 01:01:02 .....         5628         5628  assets\oom.tflite
    34. 1981-01-01 01:01:02 .....          414          414  assets\oom_features.json
    35. 1981-01-01 01:01:02 .....         3252         3252  assets\realtime.tflite
    36. 1981-01-01 01:01:02 .....          140          140  assets\realtime_features.json
    37. 1981-01-01 01:01:02 .....         5124         1560  AndroidManifest.xml
    38. 1981-01-01 01:01:02 .....         1612         1612  res\0y.png
    39. 1981-01-01 01:01:02 .....          448          220  res\7w.xml
    40. 1981-01-01 01:01:02 .....          448          220  res\K1.xml
    41. 1981-01-01 01:01:02 .....          926          926  res\bg.png
    42. 1981-01-01 01:01:02 .....          101          101  res\cZ.png
    43. 1981-01-01 01:01:02 .....         2312         2312  resources.arsc
    44. 1981-01-01 01:01:02 .....         3222         1643  META-INF\CERT.SF
    45. 1981-01-01 01:01:02 .....         1167         1023  META-INF\CERT.RSA
    46. 1981-01-01 01:01:02 .....         3148         1562  META-INF\MANIFEST.MF
    47. 1981-01-01 01:01:02 .....            0            0  FFS.armeabi-v7a
    48. 1981-01-01 01:01:02 .....           56           52  META-INF\com\android\build\gradle\app-metadata.properties
    49. 1981-01-01 01:01:02 .....       123420        54070  classes.dex
    50. 1981-01-01 01:01:02 .....        71720        38694  lib\armeabi-v7a\lib_burst_generated.so
    51. 1981-01-01 01:01:02 .....     76545284     23277603  lib\armeabi-v7a\libil2cpp.so
    52. 1981-01-01 01:01:02 .....         8572         4826  lib\armeabi-v7a\libmain.so
    53. 1981-01-01 01:01:02 .....     15906024      8329505  lib\armeabi-v7a\libunity.so
    54. 1981-01-01 01:01:02 .....          185          185  assets\UnityServicesProjectConfiguration.json
    55. 1981-01-01 01:01:02 .....        18564        18564  assets\available.tflite
    56. 1981-01-01 01:01:02 .....         2055         2055  assets\available_features.json
    57. 1981-01-01 01:01:02 .....     15195632      4249637  assets\bin\Data\Managed\Metadata\global-metadata.dat
    58. 1981-01-01 01:01:02 .....          900          321  assets\bin\Data\Managed\Resources\Newtonsoft.Json.dll-resources.dat
    59. 1981-01-01 01:01:02 .....        93718         7957  assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
    60. 1981-01-01 01:01:02 .....       337563       126076  assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
    61. 1981-01-01 01:01:02 .....         4937         4937  assets\bin\Data\RuntimeInitializeOnLoads.json
    62. 1981-01-01 01:01:02 .....         4979         4979  assets\bin\Data\ScriptingAssemblies.json
    63. 1981-01-01 01:01:02 .....          107           91  assets\bin\Data\boot.config
    64. 1981-01-01 01:01:02 .....     13184752     13184752  assets\bin\Data\data.unity3d
    65. 1981-01-01 01:01:02 .....      1073360       283543  assets\bin\Data\unity default resources
    66. 1981-01-01 01:01:02 .....           36           38  assets\bin\Data\unity_app_guid
    67. 1981-01-01 01:01:02 .....         5628         5628  assets\oom.tflite
    68. 1981-01-01 01:01:02 .....          414          414  assets\oom_features.json
    69. 1981-01-01 01:01:02 .....         3252         3252  assets\realtime.tflite
    70. 1981-01-01 01:01:02 .....          140          140  assets\realtime_features.json
    71. 1981-01-01 01:01:02 .....         5124         1560  AndroidManifest.xml
    72. 1981-01-01 01:01:02 .....         1612         1612  res\0y.png
    73. 1981-01-01 01:01:02 .....          448          220  res\7w.xml
    74. 1981-01-01 01:01:02 .....          448          220  res\K1.xml
    75. 1981-01-01 01:01:02 .....          926          926  res\bg.png
    76. 1981-01-01 01:01:02 .....          101          101  res\cZ.png
    77. 1981-01-01 01:01:02 .....         2312         2312  resources.arsc
    78. 1981-01-01 01:01:02 .....         3230         1647  META-INF\CERT.SF
    79. 1981-01-01 01:01:02 .....         1167         1021  META-INF\CERT.RSA
    80. 1981-01-01 01:01:02 .....         3156         1571  META-INF\MANIFEST.MF
    81.  
    82.  at Better.BuildInfo.Internal.BuildArtifactsInfo+<GetFilesFromZipArchive>d__20.MoveNext () [0x00084] in C:\Projects\Unity\FFS_Android\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:530
    83.  at Better.BuildInfo.Internal.BuildArtifactsInfo.CreateForAndroid (System.String buildPath, System.Boolean hasObb) [0x0033b] in C:\Projects\Unity\FFS_Android\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:332
    84.  at Better.BuildInfo.Internal.BuildArtifactsInfo.Create (UnityEditor.BuildTarget buildTarget, System.String buildPath, System.String standaloneWinDataDirectoryOverride) [0x0004a] in C:\Projects\Unity\FFS_Android\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:69
    85.  at Better.BuildInfo.BuildInfoProcessor.PostProcessBuild (UnityEditor.BuildTarget target, System.String path, System.Func`2[T,TResult] assetsGetter) [0x00075] in C:\Projects\Unity\FFS_Android\Assets\Plugins\Editor\BetterBuildInfo\BBI_BuildInfoProcessor.cs:122
    86. UnityEngine.Debug:LogWarning (object)
    87. Better.BuildInfo.Internal.Log:Warning (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:35)
    88. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:126)
    89. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    90. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    91.  
    92. BetterBuildInfo: Generated report at: BuildReports/Android_2022-11-10_14-22-01.bbi
    93. UnityEngine.Debug:Log (object)
    94. Better.BuildInfo.Internal.Log:Info (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:30)
    95. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:253)
    96. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    97. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    98.  
    99. Error building Player: BetterBuildInfo: File C:\Projects\Unity\FFS_Android\Releases doesn't exist
    100.  
    101. Build completed with a result of 'Failed' in 39 seconds (39239 ms)
    102. 2 errors
    103. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    104.  
    105. BetterBuildInfo: Opening report: BuildReports/Android_2022-11-10_14-22-01.bbi
    106. UnityEngine.Debug:Log (object)
    107. Better.BuildInfo.Internal.Log:Info (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:30)
    108. Better.BuildInfo.BuildInfoWindow/<>c:<.cctor>b__28_0 () (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoWindow.cs:116)
    109. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    110.  
    111.  
     
  13. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    This is alpha Unity version, so coming up with a permanent fix is going to be difficult.

    Seems that now there are multiple .apks produced, so the build path now refers to a directory instead. To fix this ad hoc please go to
    BBI_BuildArtifactsInfo.CreateForAndroid
    and append
    buildPath
    with either
    \\FFS.armeabi-v7a.apk
    or
    \\FFS.arm64-v8a.apk
    .

    Let me know if this works for you.
     
  14. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
    Thanks makes sense.. I did recall buildbetter was working up until I switched to IL2CPP which required some other build settings changes, so must have been the multiple builds apk's
     
  15. pushmatrix

    pushmatrix

    Joined:
    Aug 5, 2014
    Posts:
    3
    First off, love betterbuildinfo! Indispensable tool

    I’m trying to switch my project to use addressables and was wondering if BBI can filter and show assets by individual bundle? Currently they all appear as unaccounted for assets, and there seems to be no way to inspect individual bundles. Perhaps I’m missing something?

    Thanks!
     
  16. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    Hi @pushmatrix, glad you like it!

    I added Asset Bundles support some time ago, here's the changelog:
    - Experimental: added checkAssetBundles - enables Asset Bundles inspection. After a build all streaming assets that match filters defined by Asset Bundle Filter (by default "AssetBundles/*") are checked for being asset bundles and inspected. Results are listed as an additional column - Bundled Size. Warning: may be slow.

    Let me know how it works for you.

    Best regards,
    Piotr
     
  17. pushmatrix

    pushmatrix

    Joined:
    Aug 5, 2014
    Posts:
    3
    thanks Piotr for the super quick reply. I have that checkbox enabled and I think I put the right filter, but all the bundled assets are still unaccounted.

    I don’t see the additional column. It’s a webgl build if that makes a difference.
    My folder is StreamingAssets/aa/WebGL
    which makes me think the asset filter should be aa/WebGL/* right?
     
  18. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    @pushmatrix found the reason, Streaming Assets for WebGL were simply not analysed... The fix has been submitted and should be available for download in a few days. If you need it asap, I can send you a build right away!
     
  19. pushmatrix

    pushmatrix

    Joined:
    Aug 5, 2014
    Posts:
    3
    @gwiazdorrr wow thank you for the super super quick fix and turnaround. No need to send a build, I can wait a few days :)

    I’ll let you know how it goes!
     
  20. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
    will you have a built in solution to this... I know its alpha but I don't see it changing in future seems to be the way it will be now
     
  21. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
    This is happened even on 2022.2 now.. so its not just alpha.. can't be doing with the custom hack to get it working as I need it other projects so wol

    Code (CSharp):
    1. BetterBuildInfo: File C:\Projects\Unity\FFS\Releases doesn't exist
    2. UnityEngine.Debug:LogError (object)
    3. Better.BuildInfo.Internal.Log:Error (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:9)
    4. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (System.IO.FileInfo,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:671)
    5. Better.BuildInfo.Internal.BuildArtifactsInfo:GetFileSizeNoThrow (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:662)
    6. Better.BuildInfo.Internal.BuildArtifactsInfo:CreateForAndroid (string,bool) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:347)
    7. Better.BuildInfo.Internal.BuildArtifactsInfo:Create (UnityEditor.BuildTarget,string,string) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_BuildArtifactsInfo.cs:69)
    8. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:122)
    9. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    10. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    11.  
    12. BetterBuildInfo: Unable to obtain build artifacts info: System.InvalidOperationException: Command "C:/Program Files/Unity/Hub/Editor/2022.2.0f1/Editor/Data/Tools/7z.exe l -ba "C:/Projects/Unity/FFS/Releases"" returned an error: 2, details:
    13. 1981-01-01 01:01:02 .....            0            0  FFSTrackIt.arm64-v8a
    14. 1981-01-01 01:01:02 .....           56           52  META-INF\com\android\build\gradle\app-metadata.properties
    15. 1981-01-01 01:01:02 .....       129680        60440  classes.dex
    16. 1981-01-01 01:01:02 .....         4464         2327  classes2.dex
    17. 1981-01-01 01:01:02 .....         3296         1398  classes3.dex
    18. 1981-01-01 01:01:02 .....          984          589  classes4.dex
    19. 1981-01-01 01:01:02 .....       331760       108758  lib\arm64-v8a\lib_burst_generated.so
    20. 1981-01-01 01:01:02 .....     83083920     24462158  lib\arm64-v8a\libil2cpp.so
    21. 1981-01-01 01:01:02 .....         8704         3399  lib\arm64-v8a\libmain.so
    22. 1981-01-01 01:01:02 .....     28595584     11574782  lib\arm64-v8a\libunity.so
    23. 1981-01-01 01:01:02 .....          530          247  assets\UnityServicesProjectConfiguration.json
    24. 1981-01-01 01:01:02 .....     14486988      4467158  assets\bin\Data\Managed\Metadata\global-metadata.dat
    25. 1981-01-01 01:01:02 .....          900          338  assets\bin\Data\Managed\Resources\Newtonsoft.Json.dll-resources.dat
    26. 1981-01-01 01:01:02 .....        93718         9823  assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
    27. 1981-01-01 01:01:02 .....       337563       132140  assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
    28. 1981-01-01 01:01:02 .....         5069          984  assets\bin\Data\RuntimeInitializeOnLoads.json
    29. 1981-01-01 01:01:02 .....         4966         1274  assets\bin\Data\ScriptingAssemblies.json
    30. 1981-01-01 01:01:02 .....          306          182  assets\bin\Data\boot.config
    31. 1981-01-01 01:01:02 .....     18052555     18052555  assets\bin\Data\data.unity3d
    32. 1981-01-01 01:01:02 .....      1110888       329717  assets\bin\Data\unity default resources
    33. 1981-01-01 01:01:02 .....           36           38  assets\bin\Data\unity_app_guid
    34. 1981-01-01 01:01:02 .....         5408         1624  AndroidManifest.xml
    35. 1981-01-01 01:01:02 .....         9802         9802  res\mipmap-hdpi-v4\app_icon.png
    36. 1981-01-01 01:01:02 .....         9802         9802  res\mipmap-hdpi-v4\app_icon_round.png
    37. 1981-01-01 01:01:02 .....         2965         2965  res\mipmap-ldpi-v4\app_icon.png
    38. 1981-01-01 01:01:02 .....         2965         2965  res\mipmap-ldpi-v4\app_icon_round.png
    39. 1981-01-01 01:01:02 .....         4867         4867  res\mipmap-mdpi-v4\app_icon.png
    40. 1981-01-01 01:01:02 .....         4867         4867  res\mipmap-mdpi-v4\app_icon_round.png
    41. 1981-01-01 01:01:02 .....        16160        16160  res\mipmap-xhdpi-v4\app_icon.png
    42. 1981-01-01 01:01:02 .....        16160        16160  res\mipmap-xhdpi-v4\app_icon_round.png
    43. 1981-01-01 01:01:02 .....        32222        32222  res\mipmap-xxhdpi-v4\app_icon.png
    44. 1981-01-01 01:01:02 .....        32222        32222  res\mipmap-xxhdpi-v4\app_icon_round.png
    45. 1981-01-01 01:01:02 .....        51211        51211  res\mipmap-xxxhdpi-v4\app_icon.png
    46. 1981-01-01 01:01:02 .....        51211        51211  res\mipmap-xxxhdpi-v4\app_icon_round.png
    47. 1981-01-01 01:01:02 .....         3132         3132  resources.arsc
    48. 1981-01-01 01:01:02 .....         3771         1793  META-INF\CERT.SF
    49. 1981-01-01 01:01:02 .....         1167         1018  META-INF\CERT.RSA
    50. 1981-01-01 01:01:02 .....         3697         1555  META-INF\MANIFEST.MF
    51. 1981-01-01 01:01:02 .....            0            0  FFSTrackIt.armeabi-v7a
    52. 1981-01-01 01:01:02 .....           56           52  META-INF\com\android\build\gradle\app-metadata.properties
    53. 1981-01-01 01:01:02 .....       129680        60440  classes.dex
    54. 1981-01-01 01:01:02 .....         4464         2327  classes2.dex
    55. 1981-01-01 01:01:02 .....         3296         1398  classes3.dex
    56. 1981-01-01 01:01:02 .....          984          589  classes4.dex
    57. 1981-01-01 01:01:02 .....       311536       118755  lib\armeabi-v7a\lib_burst_generated.so
    58. 1981-01-01 01:01:02 .....     70790132     24591499  lib\armeabi-v7a\libil2cpp.so
    59. 1981-01-01 01:01:02 .....        11624         6206  lib\armeabi-v7a\libmain.so
    60. 1981-01-01 01:01:02 .....     23900524     11108333  lib\armeabi-v7a\libunity.so
    61. 1981-01-01 01:01:02 .....          530          247  assets\UnityServicesProjectConfiguration.json
    62. 1981-01-01 01:01:02 .....     14486988      4467158  assets\bin\Data\Managed\Metadata\global-metadata.dat
    63. 1981-01-01 01:01:02 .....          900          338  assets\bin\Data\Managed\Resources\Newtonsoft.Json.dll-resources.dat
    64. 1981-01-01 01:01:02 .....        93718         9823  assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
    65. 1981-01-01 01:01:02 .....       337563       132140  assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
    66. 1981-01-01 01:01:02 .....         5069          984  assets\bin\Data\RuntimeInitializeOnLoads.json
    67. 1981-01-01 01:01:02 .....         4966         1274  assets\bin\Data\ScriptingAssemblies.json
    68. 1981-01-01 01:01:02 .....          306          182  assets\bin\Data\boot.config
    69. 1981-01-01 01:01:02 .....     18052555     18052555  assets\bin\Data\data.unity3d
    70. 1981-01-01 01:01:02 .....      1110888       329717  assets\bin\Data\unity default resources
    71. 1981-01-01 01:01:02 .....           36           38  assets\bin\Data\unity_app_guid
    72. 1981-01-01 01:01:02 .....         5408         1624  AndroidManifest.xml
    73. 1981-01-01 01:01:02 .....         9802         9802  res\mipmap-hdpi-v4\app_icon.png
    74. 1981-01-01 01:01:02 .....         9802         9802  res\mipmap-hdpi-v4\app_icon_round.png
    75. 1981-01-01 01:01:02 .....         2965         2965  res\mipmap-ldpi-v4\app_icon.png
    76. 1981-01-01 01:01:02 .....         2965         2965  res\mipmap-ldpi-v4\app_icon_round.png
    77. 1981-01-01 01:01:02 .....         4867         4867  res\mipmap-mdpi-v4\app_icon.png
    78. 1981-01-01 01:01:02 .....         4867         4867  res\mipmap-mdpi-v4\app_icon_round.png
    79. 1981-01-01 01:01:02 .....        16160        16160  res\mipmap-xhdpi-v4\app_icon.png
    80. 1981-01-01 01:01:02 .....        16160        16160  res\mipmap-xhdpi-v4\app_icon_round.png
    81. 1981-01-01 01:01:02 .....        32222        32222  res\mipmap-xxhdpi-v4\app_icon.png
    82. 1981-01-01 01:01:02 .....        32222        32222  res\mipmap-xxhdpi-v4\app_icon_round.png
    83. 1981-01-01 01:01:02 .....        51211        51211  res\mipmap-xxxhdpi-v4\app_icon.png
    84. 1981-01-01 01:01:02 .....        51211        51211  res\mipmap-xxxhdpi-v4\app_icon_round.png
    85. 1981-01-01 01:01:02 .....         3132         3132  resources.arsc
    86. 1981-01-01 01:01:02 .....         3779         1794  META-INF\CERT.SF
    87. 1981-01-01 01:01:02 .....         1167         1018  META-INF\CERT.RSA
    88. 1981-01-01 01:01:02 .....         3705         1554  META-INF\MANIFEST.MF
    89.  
    90.  at Better.BuildInfo.Internal.BuildArtifactsInfo+<GetFilesFromZipArchive>d__20.MoveNext () [0x000d9] in C:\Projects\Unity\FFS\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:551
    91.  at Better.BuildInfo.Internal.BuildArtifactsInfo.CreateForAndroid (System.String buildPath, System.Boolean hasObb) [0x0039e] in C:\Projects\Unity\FFS\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:353
    92.  at Better.BuildInfo.Internal.BuildArtifactsInfo.Create (UnityEditor.BuildTarget buildTarget, System.String buildPath, System.String standaloneWinDataDirectoryOverride) [0x00058] in C:\Projects\Unity\FFS\Assets\Plugins\Editor\BetterBuildInfo\Internal\BBI_BuildArtifactsInfo.cs:69
    93.  at Better.BuildInfo.BuildInfoProcessor.PostProcessBuild (UnityEditor.BuildTarget target, System.String path, System.Func`2[T,TResult] assetsGetter) [0x00087] in C:\Projects\Unity\FFS\Assets\Plugins\Editor\BetterBuildInfo\BBI_BuildInfoProcessor.cs:122
    94. UnityEngine.Debug:LogWarning (object)
    95. Better.BuildInfo.Internal.Log:Warning (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:35)
    96. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:126)
    97. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    98. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    99.  
    100. BetterBuildInfo: Generated report at: BuildReports/Android_2022-12-10_17-53-23.bbi
    101. UnityEngine.Debug:Log (object)
    102. Better.BuildInfo.Internal.Log:Info (string,object[]) (at Assets/Plugins/Editor/BetterBuildInfo/Internal/BBI_Log.cs:30)
    103. Better.BuildInfo.BuildInfoProcessor:PostProcessBuild (UnityEditor.BuildTarget,string,System.Func`2<System.Collections.Generic.Dictionary`2<string, long>, System.Collections.Generic.Dictionary`2<string, long>>) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.cs:253)
    104. Better.BuildInfo.BuildInfoProcessor:UnityEditor.Build.IPostprocessBuildWithReport.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/Editor/BetterBuildInfo/BBI_BuildInfoProcessor.Callbacks.cs:60)
    105. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    106.  
    107. Error building Player: BetterBuildInfo: File C:\Projects\Unity\FFS\Releases doesn't exist
    108.  
    109. Build completed with a result of 'Failed' in 647 seconds (646757 ms)
    110. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    111.  
    112. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    113.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <a62328349c154758b537cb55981f61df>:0
    114.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <a62328349c154758b537cb55981f61df>:0
    115. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    116.  
    117.  
     
  22. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    @Slashbot64 The fix is on its way to the asset store. You will have a set of filters that define which target architecture should be processed first.
     
    Slashbot64 likes this.
  23. Slashbot64

    Slashbot64

    Joined:
    Jun 15, 2020
    Posts:
    326
  24. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Hello,

    The Build Report doesn't seem to be created after a build anymore? Would it be because of new Unity version?
     
  25. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    What is your Unity version?
     
  26. geoffpatehome

    geoffpatehome

    Joined:
    Apr 12, 2021
    Posts:
    1
    Firstly, this is a great asset - thanks for creating it! We're using this with Unity 2021.3.19f1 on Mac and the output is invaluable.

    However, it does seem quite slow and very CPU bound. The 'Analyzing build...' step takes a long time and seems to only use a single thread. Are there any options to multithread/distribute the work to a thread pool to speed it up?
     
  27. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    Thanks, much appreciated :)

    Code definitely needs a revisit, but I am afraid you are going to be limited by the single-threaded nature of Unity API.

    I will add optional metrics to verify what takes the most time, exactly.

    In the meantime, make sure you have
    useLegacyCallbacks
    set to false - this setting being true will make BBI parse editor logs. You can also check if disabling any of these options speeds up report generation to an acceptable level and whether you still have all the info you actually need:
    collectAssetsDetails
    ,
    checkAssetsCompressedSize
    ,
    checkAssetBundles
    .
     
  28. BMoniewski

    BMoniewski

    Joined:
    Feb 24, 2021
    Posts:
    1
    Hi gwiazdorrr! We use Unity 2020.3.12f1 and today we updated BBI, from version 1.7.3 to latest 1.9.10. After the build, progress bar gets stuck on something related to StreamingAssets, indefinetely. We have checkAssetBundles and collectAssetsDetails turned OFF. Looks like we cannot use BBI anymore. Any ideas what to do?
     

    Attached Files:

  29. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    @BMoniewski hey, can you enable debug logs to see what's up?
     
  30. CSI-CRAASCH

    CSI-CRAASCH

    Joined:
    Jul 13, 2022
    Posts:
    1
    How do I enable to see the "Unaccounted" - I have several prefab avatars that I'm trying to to identify where I need to optimize. The only thing that showed up was some extra sample videos in streamingassets folder.

    The Checkbox for Assets' Details will not check for me.
    upload_2023-10-3_11-53-9.png
     
  31. gwiazdorrr

    gwiazdorrr

    Joined:
    Sep 29, 2014
    Posts:
    102
    @CSI-CRAASCH I believe something might have changed about how Unity reports build sizes, I'll have a look at this. Have you checked any other Unity version?

    EDIT: tested on same Unity version, can't reproduce. There is something else going on here - notice 0 build time. Are there any errors in the console?
     
    Last edited: Oct 6, 2023