-
Notifications
You must be signed in to change notification settings - Fork 43
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
crash while analyzing #5
Comments
Thanks for writing this up! I will look into it and follow up. |
Hi @sebas77 I was not able to reproduce your issue - but I think I might have of found the cause of it. I have created a new build - if you have the chance, could you please let me know how it works out for you? https://github.com/vad710/UnityEngineAnalyzer/releases/tag/alpha-04 Thanks in advance! Vinny |
Sure thing!
…On Mon, 16 Jan 2017, 4:39 p.m. Vinny, ***@***.***> wrote:
Hi @sebas77 <https://github.com/sebas77>
I was not able to reproduce your issue - but I think I might have of found
the cause of it. I have created a new build - if you have the chance, could
you please let me know how it works out for you?
https://github.com/vad710/UnityEngineAnalyzer/releases/tag/alpha-04
Thanks in advance!
Vinny
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5s4-AZCcVE04il86-i2V8soSIYyEOVks5rS504gaJpZM4Lg6ni>
.
|
still happening. I dumped the output, but I don't think it will help. BTW, I am pretty sure that sealing classes/methods will not improve performance. I did research on it, since I had the same feeling (sealing should improve the vtable performance right?), but it's just a urban legend. I don't remember right now why, but I can research again if you think I am wrong. did some quick research. Most of the time c# uses callvirt even if you don't expect so, to make the code safer. Only in some specific cases call is used, like on struct. |
Hey @sebas77 ! Thanks for the feedback! The sealed class analyzer was created based on this article: https://blogs.unity3d.com/2016/07/26/il2cpp-optimizations-devirtualization/ - I have not done any research on this personally. This case is pretty specific to il2cpp - which is why at some point I'd like to make the analyzers react to the target platform. I'll take a look at the output and see if I can either get to the bottom of it, or allow it to continue when this sort of error occurs. Thanks again for the feedback! I am a big fan of your work and often run into it when researching performance on Unity. |
this project is surely useful for standalone games as well. Once the bug will be fixed, I hope I can add more tests myself. |
Taking a look at the exception, it looks like I introduced a new exception in the previous build. I will try to get this fixed this evening when I get home from work. |
I fixed the issue I introduced as well as tightened the original fix a bit. Please let me know if this works out for you: https://github.com/vad710/UnityEngineAnalyzer/releases/tag/alpha-05 |
Hey, it worked! I have just two minor weirdness now. This message in the log: |
Awesome! Because the HTML file loads the json dynamically, some browsers have issues with Cross-Origin Request. If you open the HTML file in Firefox it should load. I am not exactly sure how to work around this yet. I might just create an HTML exporter and have the data embedded in the HTML. I am not sure why you received that error on the Thanks again for helping through this issue - I hope you found the report to be helpful. |
Yes I am sure it will be helpful and I really hope I can add more tests...let me know if you have plans to make it platform dependent. |
I have a local branch where I am converting the tooling to work on dotnet core - Because of some bugs in the dotnet core tooling (dotnet/sdk#527) it's been on hold. I am also working on a plugin for Unity. Please let me know if you need a hand making any new analyzers. |
@vad710 I just saw that you are working on a plugin for Unity, that sound amazing. |
Hi @wpinaud ! Thanks for your interest in the project! I've been working with some folks from Microsoft to get a Mac build of the analyzer and this has been my top priority - as this has been the most requested feature when I show the Analyzer at meetups and other developer events. I do not have a date for the plugin and I have not opened it for collaboration yet. If you have specific feature requests for either the plugin or the analyzer, I encourage you to create an issue. thanks again! |
Hi,
this tool is very interesting and I wanted to try on a complex project like robocraft, but after several issues reported, it crashes here:
e:\smandala-ssd-mainline\Robocraft-Unity\Assets\Scripts\Game\Utilities\TextureDebugger.cs(16)
There was an exception running the analysis
System.AggregateException: One or more errors occurred. ---> System.NullReferenc
eException: Object reference not set to an instance of an object.
at UnityEngineAnalyzer.CLI.AnalyzerReport.AppendDiagnostics(IEnumerable
1 dia gnosticResults) in D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\Analyze rReport.cs:line 30 at UnityEngineAnalyzer.CLI.SolutionAnalyzer.<AnalyzeProject>d__2.MoveNext() i n D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\SolutionAnalyzer.cs:line 55 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at UnityEngineAnalyzer.CLI.SolutionAnalyzer.<LoadAnadAnalyzeProject>d__0.Move Next() in D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\SolutionAnalyzer .cs:line 29 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeou t, CancellationToken cancellationToken) at UnityEngineAnalyzer.CLI.Program.Main(String[] args) in D:\GitHub\UnityEngi neAnalyzer\UnityEngineAnalyzer.CLI\Program.cs:line 39 ---> (Inner Exception #0) System.NullReferenceException: Object reference not se t to an instance of an object. at UnityEngineAnalyzer.CLI.AnalyzerReport.AppendDiagnostics(IEnumerable
1 diagnosticResults) in D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\Analyze
rReport.cs:line 30
at UnityEngineAnalyzer.CLI.SolutionAnalyzer.d__2.MoveNext() i
n D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\SolutionAnalyzer.cs:line
55
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
at UnityEngineAnalyzer.CLI.SolutionAnalyzer.d__0.Move
Next() in D:\GitHub\UnityEngineAnalyzer\UnityEngineAnalyzer.CLI\SolutionAnalyzer
.cs:line 29<---
The text was updated successfully, but these errors were encountered: