Search Issue Tracker

Duplicate

Votes

0

Found in [Package]

0.2.7

Issue ID

1201074

Regression

Yes

[Android Logcat] ArgumentOutOfRangeException error preventing closing of Logcat windows after switching build target

Package: Android Logcat

-

With the android logcat window open, and windows such as 'Capture Screen' and 'Internal Log' will refuse to close once you switch build target off of Android and switch it back to Android again.
It does not seem to effect the Stacktrace Utility window or main Android Logcat window in the same way.

1. Ensure you have the Android modules installed in Unity. (Unity Hub -> Installs -> [Editor Version] -> Add Modules)
2. Create a new unity project.
3. Install Android Logcat through Package Manager. (Window -> Package Manager)
4. Switch the build target to Android in Build Settings.
5. Open the Android Logcat window. (Window -> Analysis -> Android Logcat)
6. Open the 'Capture Screen' window or 'Internal Log' windows from the Android Logcat window.
- Note that the 'Capture Screen' window only opens if you have a connected Android device.
7. Switch build target to PC, Mac & Linux Standalone.
8. Switch build target back to Android.
9. Try to close the previously opened 'Capture Screen' or 'Internal Log' window.

Expected Result: The window closes, no errors display.
Actual Result: ArgumentOutOfRangeException error displays, the window does not close.

Reproducible in package version 1.0.3, 1.0.0, 0.2.7. Could not find a unity version where 0.1.5 would work.
Reproducible in 2020.1.0a14, 2020.1.0a13, 2020.1.0a12.
NOT reproducible in 2019.3.0b6, 2019.3.0b12, 2020.1.0a9, 2020.1.0a11

Notes:
- Tested on Mac.
- If you move the window around, continuous ArgumentOutOfRangeException errors display as well.
- This issue does not happen with the Stacktrace Utility window.
- Restarting the editor gets rid of this problem until you repeat the repro steps.

Example of error:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.ContainerWindow.GetWindowID () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:237)
UnityEditor.ContainerWindow.get_windowID () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:74)
UnityEditor.ContainerWindow.SaveGeometry () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:248)
UnityEditor.ContainerWindow.Save () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:263)
UnityEditor.ContainerWindow.OnResize () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:300)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.