ProfilerReader icon indicating copy to clipboard operation
ProfilerReader copied to clipboard

run into error

Open wyd124 opened this issue 2 years ago • 1 comments

This tool run into error when i try a sample by Untiy 2019.4.25f1. How to fix this erro?

Thanks,

repro:

  1. export profiler data into a data file by unity profiler window.
  2. open tool by Unity menu -> Tools -> UTJ -> ProfilerReader -> AnalyzerToCSV.
  3. click File button of UTJ tool to load the data file.
  4. click Analyze button of UTJ tool.
  5. Error is show in console of unity editor.

System.OutOfMemoryException: Out of memory at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int) at System.Collections.Generic.List`1[T]..ctor (System.Int32 capacity) [0x00021] in :0 at UTJ.ProfilerReader.BinaryData.ThreadData.Read_Generic (System.IO.Stream stream, System.UInt32 version) [0x0003d] in <1c5044780f334353961706bdd82cf261>:0 at UTJ.ProfilerReader.BinaryData.ProfilerFrameData.ReadGeneric (System.IO.Stream stream, System.Int32 frameSize, System.Int32 threadCount, System.Int32 index, System.UInt32 version) [0x00301] in <1c5044780f334353961706bdd82cf261>:0 at UTJ.ProfilerReader.BinaryData.ProfilerFrameBlockData.Read (System.IO.Stream stream, System.Int32 frameIndex, System.String unityVersion) [0x0017e] in <1c5044780f334353961706bdd82cf261>:0 at UTJ.ProfilerReader.BinaryData.ProfilerBinaryLogReader.ReadFrameData () [0x00064] in <1c5044780f334353961706bdd82cf261>:0 at UTJ.ProfilerReader.UI.AnalyzeToCsvWindow.ExecuteFrame () [0x00018] in D:\dd\New Unity Project\Packages\ProfilerReader\Editor\GUI\AnalyzeToCsvWindow.cs:80 UnityEngine.Debug:LogError (object) UTJ.ProfilerReader.UI.AnalyzeToCsvWindow:ExecuteFrame () (at Packages/ProfilerReader/Editor/GUI/AnalyzeToCsvWindow.cs:115) UTJ.ProfilerReader.UI.AnalyzeToCsvWindow:UpdateThread () (at Packages/ProfilerReader/Editor/GUI/AnalyzeToCsvWindow.cs:66) System.Threading.ThreadHelper:ThreadStart ()

wyd124 avatar Apr 11 '22 03:04 wyd124

+1

zhaogd233 avatar Jun 14 '22 12:06 zhaogd233