aliessmael / Unity-Logs-Viewer

Using this tool you can easily check your editor console logs inside the game itself! No need to go back to the project and do any tests to track the problems!
752 stars 168 forks source link

NullReferenceException in second build #17

Closed giantkiller closed 5 years ago

giantkiller commented 7 years ago

NullReferenceException: Object reference not set to an instance of an object Reporter.Update () (at Assets/Unity-Logs-Viewer/Reporter/Reporter.cs:1789) Line at fault: int sceneIndex = SceneManager.GetActiveScene().buildIndex ;

The first time it ran and I must say it is a great tool to have!

giantkiller commented 7 years ago

It ran first time. Second build showed these errors. I remmed out the define logic in reporter.cs and left just the UNITY_CHANGE3 turned on. Set execution order to top. the timers are negative and reversed to Reporter on top with -12000, while others are -1001, -100 below that.

giantkiller commented 7 years ago

An incorrect fix: I re-imported assets, deleted reporter from hierarchy, and rebuilt.

The build does not work. The error comes back after next run.

I unchecked the initialized box and now it seems corrected.