Hi,
we use Unity 5 Beta since a couple of weeks and have around 3-10 crash per working day, depending on the typical use of the editor. (In Unity 4.6, this was a lot worse - due to the 32-bit limit, so we are kind of used to frequent crashes.)
The editor usually crashes when switching to play mode for the X’th time. Recently the crashes seem to occur much more frequently (most probably not because of Unity, but because we keep adding assets). I can reliable reproduce errors now (with Beta 19) by loading my test scene here and switching to play mode two times, so I thought I give it a shot and ask whether you are interested in a repro-case, or whether memory-related crashes in huge projects are a work in progress anyway?
The crash seems to be memory-related, but the exact message varies. Sometimes there is a console log with a totally strange stack trace. Or some generic “TypeInitializationError” in standard .NET classes or just things like “SceneView”…). Sometimes, the Unity bug reporter tool opens after the crash, sometimes not.
We didn’t file a standard bug report with the report tool yet since the problem seem to occur only in our big project repository, which is around 50 GB to upload. If you are interested, we could arrange an GIT access or a snapshot download to our repo (compressed “only” a couple of GB).
A typical crash stack trace in some “strange” place:
NullReferenceException: Object reference not set to an instance of an object
at System.NumberFormatter.ResetCharBuf (Int32 size) [0x00007] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/NumberFormatter.cs:553
at System.NumberFormatter.FormatGeneral (Int32 precision, System.Globalization.NumberFormatInfo nfi) [0x00077] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/NumberFormatter.cs:1322
at System.NumberFormatter.NumberToString (System.String format, System.Globalization.NumberFormatInfo nfi) [0x00070] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/NumberFormatter.cs:1065
at System.NumberFormatter.NumberToString (System.String format, Single value, IFormatProvider fp) [0x00078] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/NumberFormatter.cs:887
at System.Single.ToString (System.String format, IFormatProvider provider) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Single.cs:256
at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00152] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:1941
at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:1873
at UnityEditor.PrefColor.ToUniqueString () [0x00042] in C:\buildslave\unity\build\Editor\Mono\Animation\ZoomableArea.cs:255
at UnityEditor.Settings.Set[PrefColor] (System.String name, UnityEditor.PrefColor value) [0x00000] in C:\buildslave\unity\build\Editor\Mono\Animation\ZoomableArea.cs:422
at UnityEditor.Settings.Get[PrefColor] (System.String name, UnityEditor.PrefColor defaultValue) [0x00021] in C:\buildslave\unity\build\Editor\Mono\Animation\ZoomableArea.cs:419
at UnityEditor.PrefColor..ctor (System.String name, Single defaultRed, Single defaultGreen, Single defaultBlue, Single defaultAlpha) [0x0000d] in C:\buildslave\unity\build\Editor\Mono\Animation\ZoomableArea.cs:217
at UnityEditor.SceneView..cctor () [0x00014] in C:\buildslave\unity\build\Editor\Mono\Sprites\SpriteUtilityWindow.cs:66
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for UnityEditor.SceneView
Attached is another typical message we see often (CheckDisalow.png)
