Jump to content


Unable to use P4Connect Version 2017.1.147.9077 with Unity 5.5.0f3 and Unity 5.5.1f1


  • Please log in to reply
2 replies to this topic

#1 Finito

Finito

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 24 January 2017 - 10:00 PM

Hi,

Using a new clean project and importing P4Connect (Version 2017.1.147.9077) from the Unity Asset Store and have set it up following the guide here: https://www.perforce...ide/index.html.

Getting the following errors in both Unity Version 5.5.0f3 and 5.5.1f1:

This error appears in the console when opening the Perforce Changes window.
NullReferenceException: Object reference not set to an instance of an object
P4Connect.ChangeListswindow.OnGuiFileLine (Perforce.P4.FileMetaData fmd) (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.ChangeListswindow.cs:431)
P4Connect.ChangeListswindow.OnGUI () (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.ChangeListswindow.cs:496)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

This error appears in the console when opening the Perforce Window or spammed when trying to do any Perforce operation.
NullReferenceException: Object reference not set to an instance of an object
P4Connect.Extensions.ToAssetPath (Perforce.P4.FileMetaData fmd) (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:1490)
P4Connect.Extensions+<ToAssetPaths>d__94.MoveNext () (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:1497)
System.Collections.Generic.HashSet`1[System.String]..ctor (IEnumerable`1 collection, IEqualityComparer`1 comparer)
System.Collections.Generic.HashSet`1[System.String]..ctor (IEnumerable`1 collection)
P4Connect.Extensions.ToHashSet (IEnumerable`1 files) (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Utils.cs:1265)
P4Connect.ChangeManager.GetHashMap (Int32 id) (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.ChangeManager.cs:137)
P4Connect.PendingChanges.UpdateList () (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:375)
P4Connect.PendingChanges.OnEnable () (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:215)
UnityEditor.EditorWindow:GetWindow(Type, Boolean, String)
P4Connect.PendingChanges:ShowWindow() (at c:/tmp/73282536/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:131)

Anyone have any ideas on what might be wrong or how to fix this?

Thanks.

#2 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 14 February 2017 - 01:02 AM

Hi Finito,

Please do not use the "Perforce Changes" dialog, it was a project in development which I accidently left uncommented with the last release.

P4Connect should be perfectly usable with only the project window menus, and the "Perforce"  pending changes dialog.

When I issue the next release, I will once again remove "Perforce Changes".

#3 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 14 February 2017 - 01:10 AM

Hi Finito,

I'm not sure what caused the second problem,  I'll need to try to catch it in the debugger.

Might I suggest that you give up on P4Connect and use the built-in integration for Perforce instead.

More instructions here:  http://answers.perfo...ticles/KB/15244




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users