Search Issue Tracker

Fixed in 5.6.0f3

Fixed in 5.6.X

Votes

16

Found in

5.6.0f2

Issue ID

896468

Regression

Yes

[Perforce] Built-in Perforce VC reports OnGUI error when opening Project Settings windows

IMGUI

-

Steps to reproduce:

1. Install P4 server (free version is ok) available on the Perforce website (Helix)
2. Setup new workspace using P4V client (search for p4vinst.exe)
Note: I created a new user + new workspace -- server can be local (i.e. localhost) + use default port 1666
3. Start Unity & create a new project
4. Go to Edit > Project Settings > Editor and enter the appropriate settings for P4 connection:
a) Change Version Control mode to Perforce (this will use the builtin P4 support)
b) Enter same username, workspace name as in step 2
c) Use 127.0.0.1 as the server (if your setup is local)
5. Press the Connect button
6. In the console you should see errors.

Expected outcome: The window opens and no errors are thrown.
Actual outcome: The window either opens or doesn't, an OnGUI error is thrown. Sometimes trying to re-dock a window will cause another error to appear

Regression from 5.6.0b10
Reproduced on 5.6.0f1, 5.6.0f2, 5.6.0f3, 2017.1.0a6
Works fine on 5.5.3f1 , 5.6.0b3, 5.6.0b5 , 5.6.0b6, 5.6.0b8, 5.6.0b9

Note: When connected to a Perforce VC server through the built-in Unity Perforce integration, selecting a window on Project settings causes an error to be popped up and the window doesn't open. Also opening Build settings does that. There might be other places this problem appears.

Comments (8)

  1. cozyurt_unity

    Jul 15, 2020 11:43

    Kedi Köpek Mamaları uygun fiyat bol çeşit www.patilimama.com

  2. efuller3

    Nov 08, 2017 21:08

    So what is the solution to this error? other than switching to a different version?

  3. Havok_ZA

    Jun 21, 2017 15:58

    Not sure if this was fixed but I updated to version 5.6.1f1 now (Mac running Metal) and getting the same error getting spammed again.

  4. fhamel_bhvr

    May 10, 2017 18:05

    Our teams has been on 5.6.0p4 for a few hours now without this issue occurring. Seems like it was fixed in 5.6.0p1: "(895453) - Editor: Fixed GUI related Asserts when connected to an active VCS provider."

  5. Wortex17

    May 04, 2017 13:11

    There are two types of errors:

    "NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.SceneHierarchyWindow.get_debug () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:78)
    UnityEditor.GameObjectTreeViewDataSource.InitializeMinimal () (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/GameObjectTreeViewDataSource.cs:327)"
    "ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
    Aborting
    UnityEngine.GUILayoutGroup.GetNext () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/LayoutGroup.cs:115)"
    "NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1491)"

    Comes when the editor is started.

    "GUI Window tried to begin rendering while something else had not finished rendering! Either you have a recursive OnGUI rendering, or the previous OnGUI did not clean up properly."
    "Expected top level layout group missing! Too many GUILayout.EndScrollView/EndVertical/EndHorizontal?
    UnityEditor.DockArea:OnGUI()
    "
    "ArgumentException: Getting control 1's position in a group with only 1 controls when doing Repaint
    Aborting"
    "Assertion failed on expression: 'device.IsInsideFrame()'
    "

    Comes whenevr the editor is refocused (which happens a lot of course, when switching between VS and Unity)

    Makes the whole version set since 5.6.0 unusable with perforce.

  6. ComicSeans

    Apr 25, 2017 16:53

    When I finish any sizable lighting bake, I get this same console spam when unity tries to check in all the new lightmaps, filling the console with spam.

  7. grujicbr

    Apr 16, 2017 14:32

    Constantly spams the editor output, making the console unusable

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.