Jump to content


P4Connect 2.7 BETA test

beta Unity5 Unity4

  • Please log in to reply
64 replies to this topic

#41 Lamargo

Lamargo

    Member

  • Members
  • PipPip
  • 12 posts

Posted 06 May 2015 - 10:27 AM

{edit - Added Job000228:  https://swarm.worksh.../jobs/job000228)

With the new GA release, I am still getting the "NullReferenceException: Object reference not set to an instance of an object" error reported above. This now appears on every file p4connect attempts to check out, and won't check the files out at all now. Same with creating new objects/assets, won't add them to be checked in, just get the NullReferenceException. Here is the error I get verbatim:

Quote

NullReferenceException: Object reference not set to an instance of an object
P4Connect.Engine.is_ignored (System.String path, P4Connect.PerforceConnection aConnection) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:406)
P4Connect.Engine+<>c__DisplayClass1.<StripIgnore>b__0 (System.String path) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:423)
System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext ()
System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:128)
System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:65)
System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source)
P4Connect.Engine.StripIgnore (System.String[] files, P4Connect.PerforceConnection aConnection) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:423)
P4Connect.Engine.PerformOperation (System.String[] arPaths, System.String[] arMoveToPaths, AssetOperation aDesiredOp) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:909)
UnityEngine.Debug:LogException(Exception)
P4Connect.Engine:LogP4Exception(Exception) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1541)
P4Connect.Engine:PerformOperation(String[], String[], AssetOperation) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:931)
P4Connect.Engine:CreateAssets(String[]) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:445)
P4Connect.AssetPostProcessor:OnPostprocessAllAssets(String[], String[], String[], String[]) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.AssetPostProcessor.cs:40)
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)
This is then followed with a warning:

Quote

P4Connect - P4Connect encountered the following internal exception, your file changes may not be properly checked out/added/deleted.
UnityEngine.Debug:LogWarning(Object)
P4Connect.Engine:LogP4Exception(Exception) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1542)
P4Connect.Engine:PerformOperation(String[], String[], AssetOperation) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:931)
P4Connect.Engine:CreateAssets(String[]) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:445)
P4Connect.AssetPostProcessor:OnPostprocessAllAssets(String[], String[], String[], String[]) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.AssetPostProcessor.cs:40)
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

I've attempted this with an existing project and also a new project. I also deleted all prior versions of p4connect, as well as clearing out previous p4connect settings.

#42 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 06 May 2015 - 04:21 PM

Lamargo,

Thanks for the report.   Do you have anything in your "additional ignore" configuration settings?  or a P4Ignore setting?

Could you turn up the logging output and recreate the problem,  then send the log file to me at support@perforce.com?
I'd like to see the other spew, not just when the exception happens.

Thanks!

#43 plolley

plolley

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 06 May 2015 - 04:35 PM

I'm using the 2.7DebugGA package and I can't open the window.  I'm getting the following error:

Closed PendingChanges window because Connection is invalid
UnityEngine.Debug:Log(Object)
P4Connect.PendingChanges:Update() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:211)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Are there some settings I can clear out from my old installations?

I deleted the P4Connect settings I found in the registry but it still won't start.  Here's the log on startup:

P4Connect Initialize
UnityEngine.Debug:Log(Object)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:55)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:46)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

Failed to Load Asset
UnityEngine.Debug:Log(Object)
P4Connect.Config:readConfigAsset() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:1389)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:338)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:81)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:59)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:46)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])


Loading Configuration from EditorPrefs
UnityEngine.Debug:Log(Object)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:341)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:81)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:59)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:46)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])


Failed to Load Asset
UnityEngine.Debug:Log(Object)
P4Connect.Config:readConfigAsset() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:1389)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:338)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:59)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:46)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])


Loading Configuration from EditorPrefs
UnityEngine.Debug:Log(Object)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:341)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:59)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:46)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

Also some output in p4connect.log:

2015-05-06 09:35:41,016 DEBUG P4Connect.AssetBridge.OnWillSaveAssets - OnWillSaveAssets
2015-05-06 09:35:41,017 DEBUG P4Connect.AssetBridge.OnWillSaveAssets - String[] {}
2015-05-06 09:35:41,019 DEBUG P4Connect.AssetBridge.OnWillSaveAssets -  checkout:
2015-05-06 09:35:41,019 DEBUG P4Connect.AssetBridge.OnWillSaveAssets - {}
2015-05-06 09:35:41,020 DEBUG P4Connect.Engine.PerformOperation - op: Checkout, paths: [] moveto: null
2015-05-06 09:35:41,022 DEBUG P4Connect.Engine.PerformOperation - result: []
2015-05-06 09:35:41,022 DEBUG P4Connect.AssetBridge.OnWillSaveAssets -  add:
2015-05-06 09:35:41,022 DEBUG P4Connect.AssetBridge.OnWillSaveAssets - {}
2015-05-06 09:35:41,023 DEBUG P4Connect.Engine.PerformOperation - op: Add, paths: [] moveto: null
2015-05-06 09:35:41,023 DEBUG P4Connect.Engine.PerformOperation - result: []


#44 Lamargo

Lamargo

    Member

  • Members
  • PipPip
  • 12 posts

Posted 06 May 2015 - 04:39 PM

View PostP4Norman, on 06 May 2015 - 04:21 PM, said:

Lamargo,

Thanks for the report.   Do you have anything in your "additional ignore" configuration settings?  or a P4Ignore setting?

Could you turn up the logging output and recreate the problem,  then send the log file to me at support@perforce.com?
I'd like to see the other spew, not just when the exception happens.

Thanks!

Nothing in the additional ignore or p4ignore settings. I'm not able to generate a log file. I've switched on "Enable logging", and set it to Debug, then chose a location to save the log to, but nothing is ever generated. Will I need the debug package to have this work correctly?

#45 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 06 May 2015 - 09:31 PM

Plolley,

Try the "Clear Editor Prefs" button to clear all your existing Editor preferences, BEWARE this will also wipe out any memorized project locations.

Another thing to try is to close Unity, then delete the entire "Library" folder in your project root, then start unity again.

Have you tried typing your connection information into "Connection Settings" then hitting "Connect"?   If that works, then you need to
save your existing preferences with either the "Save EditorPrefs" or "Save Config Asset" buttons.

#46 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 06 May 2015 - 09:34 PM

Lamargo,

Yes, P4Connect Logging does not work as well in release mode (maybe not at all).   You should still see the Unity Editor log by going to the "Console" window
then clicking on the small, three bar icon in the upper right of the window.  Chose "Open Editor Log".    Please email me a copy of that so I can pursue
your issue.

#47 Lamargo

Lamargo

    Member

  • Members
  • PipPip
  • 12 posts

Posted 07 May 2015 - 08:45 AM

Ok, Editor.log sent in.

#48 plolley

plolley

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 09 May 2015 - 09:51 PM

View PostP4Norman, on 06 May 2015 - 09:31 PM, said:

Try the "Clear Editor Prefs" button to clear all your existing Editor preferences, BEWARE this will also wipe out any memorized project locations.

Have you tried typing your connection information into "Connection Settings" then hitting "Connect"?   If that works, then you need to
save your existing preferences with either the "Save EditorPrefs" or "Save Config Asset" buttons.
I can't even open the window to run anything.

View PostP4Norman, on 06 May 2015 - 09:31 PM, said:

Another thing to try is to close Unity, then delete the entire "Library" folder in your project root, then start unity again.
I did this and now I'm getting the following errors:

P4Exception: Connect to server failed; check $P4PORT.
TCP connect to localhost:1666 failed.
connect: 127.0.0.1:1666: WSAECONNREFUSED
Perforce.P4.P4Exception.Throw (Perforce.P4.P4ClientError error) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Exception.cs:315)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client, System.String cwd) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.internal.cs:335)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.cs:196)
Perforce.P4.Connection.Connect (Perforce.P4.Options options) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/Connection.cs:238)
UnityEditor.EditorWindow:GetWindow(Type, Boolean, String)
P4Connect.PendingChanges:ShowWindow() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:85)

Closed PendingChanges window because Connection is invalid
UnityEngine.Debug:Log(Object)
P4Connect.PendingChanges:OnGUI() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:308)
UnityEditor.DockArea:OnGUI()

P4Exception: Connect to server failed; check $P4PORT.
TCP connect to localhost:1666 failed.
connect: 127.0.0.1:1666: WSAECONNREFUSED
Perforce.P4.P4Exception.Throw (Perforce.P4.P4ClientError error) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Exception.cs:315)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client, System.String cwd) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.internal.cs:335)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.cs:196)
Perforce.P4.Connection.Connect (Perforce.P4.Options options) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/Connection.cs:238)

GUI Window tries to begin rendering while something else has not finished rendering! Either you have a recursive OnGUI rendering, or previous OnGUI did not clean up properly.

My P4 SET looks like this:

P4CLIENT=plolley (set)
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4PORT=freenas:1666 (set)
P4USER=plolley (set)
P4_freenas:1666_CHARSET=none (set)

What's next? :)

#49 doraemon213

doraemon213

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 14 May 2015 - 06:54 PM

Hi, I am trying out the latest P4Connect v2.7 on Windows 7, Unity 5.0.1f1. I have had P4Connect older beta versions installed before and it worked until I cleared the editor prefs and config assets.

Now I keep getting the following errors when I click on the "Enable Perforce Integration" in the P4 Settings window:
NullReferenceException: Object reference not set to an instance of an object
P4Connect.Config.OnGUI () (at c:/tmp/52765008/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Config.cs:945)
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-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Then the P4 Settings window will show only the top left check box with text all cramped together. I cannot close the window at all after that.

I tried re-installing but doesn't work at all for me anymore. Any ideas?

Thanks!

#50 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 14 May 2015 - 11:59 PM

I did this and now I'm getting the following errors:

P4Exception: Connect to server failed; check $P4PORT.
TCP connect to localhost:1666 failed.
connect: 127.0.0.1:1666: WSAECONNREFUSED

This looks like your Perforce server is not running.  A localhost server is on the same box as the client.
You need to start the service "Perforce" and then test it with a connection from P4V.

Once that works, you are ready to use p4connect (and use the settings which worked in P4V).

My P4 SET looks like this:

P4CLIENT=plolley (set)
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4PORT=freenas:1666 (set)
P4USER=plolley (set)
P4_freenas:1666_CHARSET=none (set)

This is curious,  Your P4PORT is freenas:1666 which is not the same as localhost:1666,  which server are you trying to use?

#51 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 15 May 2015 - 12:02 AM

Hi,

It looks like you ran into a configuration dialog bug.

Before enabling the logging, you need to set the log file location.

An empty log file location will cause a crash when you enable logging.

This will be fixed in a future release.

View Postdoraemon213, on 14 May 2015 - 06:54 PM, said:

Hi, I am trying out the latest P4Connect v2.7 on Windows 7, Unity 5.0.1f1. I have had P4Connect older beta versions installed before and it worked until I cleared the editor prefs and config assets.

Now I keep getting the following errors when I click on the "Enable Perforce Integration" in the P4 Settings window:
NullReferenceException: Object reference not set to an instance of an object
P4Connect.Config.OnGUI () (at c:/tmp/52765008/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Config.cs:945)
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-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Then the P4 Settings window will show only the top left check box with text all cramped together. I cannot close the window at all after that.

I tried re-installing but doesn't work at all for me anymore. Any ideas?

Thanks!


#52 molson

molson

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 May 2015 - 06:08 PM

Has this been tested on OSX? The reason I ask is that I've got p4Connect running on my PC (and it works pretty good!) but on my mac I get "Bad Settings, Please fix". It's the same project that's running fine on my PC.

Is there any special Mac specific installation instructions I could have missed?

Thanks!

#53 Lisk

Lisk

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 19 May 2015 - 03:54 PM

View PostP4Norman, on 15 May 2015 - 12:02 AM, said:

Hi,

It looks like you ran into a configuration dialog bug.

Before enabling the logging, you need to set the log file location.

An empty log file location will cause a crash when you enable logging.

This will be fixed in a future release.

I have the same exact bug.

Is there any way we can fix this in the current version? I've never used perforce/p4connect before, but I'm interested in using it for my company.

#54 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 21 May 2015 - 12:41 AM

View PostLisk, on 19 May 2015 - 03:54 PM, said:

I have the same exact bug.

Is there any way we can fix this in the current version? I've never used perforce/p4connect before, but I'm interested in using it for my company.

Please try the latest release.  The link is in the first post of this thread.  Thanks!

#55 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 21 May 2015 - 12:46 AM

View Postmolson, on 18 May 2015 - 06:08 PM, said:

Has this been tested on OSX? The reason I ask is that I've got p4Connect running on my PC (and it works pretty good!) but on my mac I get "Bad Settings, Please fix". It's the same project that's running fine on my PC.

Is there any special Mac specific installation instructions I could have missed?

Thanks!
The OSX release isn't special, it just wants the standard Perforce Configuration information.
From the Configuration Dialog (Edit -> Perforce Settings)   Try entering your configuration information into the Server URI, Username and Workspace
fields.  Then hit "Connect".     If it does connect, make sure to save your settings with "Save EditorPrefs" or "Save Config Asset".
If it doesn't connect, try running P4V on the same OSX machine you are using and make sure you can connect to the server using the same settings.
If you still can't get it working, try contacting Perforce support at support@perforce.com.

#56 plolley

plolley

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 28 May 2015 - 04:45 PM

I'm using the p4connect2.7DebugGA.3 build and still have the following errors (after cleaning out my library folder).

DllNotFoundException: p4bridge
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client, System.String cwd) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.internal.cs:294)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.cs:196)
Perforce.P4.Connection.Connect (Perforce.P4.Options options) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/Connection.cs:238)
UnityEngine.Debug:LogException(Exception)
P4Connect.VerifySettings:CheckProjectRoot() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.VerifySettings.cs:234)
P4Connect.Config:UpdateConfigState(Boolean) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:484)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:376)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

P4Connect - Perforce integration is enabled but inactive. Go to Edit->Perforce Settings to update your settings
UnityEngine.Debug:LogWarning(Object)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:384)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

Closed PendingChanges window because Connection is invalid
UnityEngine.Debug:Log(Object)
P4Connect.PendingChanges:Update() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:211)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

P4CLIENT=plolley (set)
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4PORT=freenas:1666 (set)
P4USER=plolley (set)
P4_freenas:1666_CHARSET=none (set)


#57 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 29 May 2015 - 01:06 AM

Hi Plolly,

Could you try installing the VS2013 redistributable package, and see if that fixes your DllNotFoundException?

https://www.microsof...s.aspx?id=40784

Thanks,

-Norman

View Postplolley, on 28 May 2015 - 04:45 PM, said:

I'm using the p4connect2.7DebugGA.3 build and still have the following errors (after cleaning out my library folder).

DllNotFoundException: p4bridge
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client, System.String cwd) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.internal.cs:294)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.cs:196)
Perforce.P4.Connection.Connect (Perforce.P4.Options options) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/Connection.cs:238)
UnityEngine.Debug:LogException(Exception)
P4Connect.VerifySettings:CheckProjectRoot() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.VerifySettings.cs:234)
P4Connect.Config:UpdateConfigState(Boolean) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:484)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:376)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

P4Connect - Perforce integration is enabled but inactive. Go to Edit->Perforce Settings to update your settings
UnityEngine.Debug:LogWarning(Object)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:384)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

Closed PendingChanges window because Connection is invalid
UnityEngine.Debug:Log(Object)
P4Connect.PendingChanges:Update() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:211)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

P4CLIENT=plolley (set)
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4PORT=freenas:1666 (set)
P4USER=plolley (set)
P4_freenas:1666_CHARSET=none (set)


#58 Ezzerland

Ezzerland

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 29 May 2015 - 10:54 PM

@plolly:
Just throwing it out there, but make sure when you're installing the package that you either install P4Connect/Editor/x86 OR P4Connect/Editor/x86_64 and not both. Installing both will install p4bridge.dll twice and cause this error also.

Regards,

#59 plolley

plolley

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 02 June 2015 - 11:52 PM

View PostEzzerland, on 29 May 2015 - 10:54 PM, said:

@plolly:
Just throwing it out there, but make sure when you're installing the package that you either install P4Connect/Editor/x86 OR P4Connect/Editor/x86_64 and not both. Installing both will install p4bridge.dll twice and cause this error also.

Regards,

I tried this and it didn't help.  This was a problem when I first tried the early beta versions of P4Connect for Unity 5 but hasn't been a problem for a long time.

View PostP4Norman, on 29 May 2015 - 01:06 AM, said:

Hi Plolly,

Could you try installing the VS2013 redistributable package, and see if that fixes your DllNotFoundException?

https://www.microsof...s.aspx?id=40784

Thanks,

-Norman

I already had that installed, tried running a repair and it doesn't solve my problem.

HOWEVER, installing the latest package no longer gives me the missing DLL error but I still can't connect.

P4Exception: Connect to server failed; check $P4PORT.
TCP connect to localhost:1666 failed.
connect: 127.0.0.1:1666: WSAECONNREFUSED
Perforce.P4.P4Exception.Throw (Perforce.P4.P4ClientError error) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Exception.cs:315)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client, System.String cwd) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.internal.cs:335)
Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/P4Server.cs:196)
Perforce.P4.Connection.Connect (Perforce.P4.Options options) (at c:/workshop/guest/perforce_software/p4connect/src/P4Bridge/p4api.net/Connection.cs:238)
UnityEngine.Debug:LogException(Exception)
P4Connect.VerifySettings:CheckProjectRoot() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.VerifySettings.cs:234)
P4Connect.Config:UpdateConfigState(Boolean) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:484)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:376)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

P4Connect - Perforce integration is enabled but inactive. Go to Edit->Perforce Settings to update your settings
UnityEngine.Debug:LogWarning(Object)
P4Connect.Config:CheckSettings() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:384)
P4Connect.Config:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:352)
P4Connect.Config:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Config.cs:279)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:79)
P4Connect.Main:Initialize() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:57)
P4Connect.Main:.cctor() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Main.cs:45)
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

And when I try to open the window I get:
Closed PendingChanges window because Connection is invalid
UnityEngine.Debug:Log(Object)
P4Connect.PendingChanges:Update() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:211)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Are there some registry settings I can clear out somewhere?  I had an old version installed and it seems like this is what's causing problems.

#60 StuartHarrisonSumo

StuartHarrisonSumo

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 03 June 2015 - 11:15 AM

Hi, I've just come back to P4Connect to see if it's in a healthy state.  While it appears to be a lot better than it was previously, I'm getting a consistent NullReferenceException on startup and in other situations.  While this doesn't appear to affect use of perforce, it's clearly quite annoying and would be good to fix.

In order to try and fix it manually, I've done the steps noted above (clearing the Library folder, Clearing the Editor Prefs) without noting any change in behaviour.

Unity: 5.0.2f1, 64 bit
P4Connect: 2.7 GA.3.R.1062935 (from Asset Store)
Server version: P4D/NTX64/2014.2/978861 (2014/12/19)
P4V version: Perforce Visual Client/NTX64/2014.2/959839
OS: Windows 8.1 Enterprise.
Workspace is using Streams

2015-06-03 11:59:38,190 ERROR P4Connect.Engine.PerformOperation - ... Exception
System.NullReferenceException: Object reference not set to an instance of an object
  at Perforce.P4.Changelist.FromChangeCmdTaggedOutput (Perforce.P4.TaggedObject objectInfo, Boolean GetShelved, System.String offset, Boolean dst_mismatch) [0x00241] in c:\tmp\53044412\depot\main\p4-connect\src\P4Bridge\p4api.net\Changelist.cs:235
  at Perforce.P4.Changelist.FromChangeCmdTaggedOutput (Perforce.P4.TaggedObject objectInfo, System.String offset, Boolean dst_mismatch) [0x00000] in c:\tmp\53044412\depot\main\p4-connect\src\P4Bridge\p4api.net\Changelist.cs:153
  at Perforce.P4.Repository.GetChangelists (Perforce.P4.Options options, Perforce.P4.FileSpec[] files) [0x000c5] in c:\tmp\53044412\depot\main\p4-connect\src\P4Bridge\p4api.net\Repository.Changelist.cs:1303
  at P4Connect.ChangeManager.RefreshChangeLists (P4Connect.PerforceConnection p4conn, Boolean all) [0x00077] in c:\tmp\53044412\depot\main\p4-connect\src\P4Connect\P4Connect\P4Connect.ChangeManager.cs:198
  at P4Connect.ChangeManager.RefreshDefaultChange (P4Connect.PerforceConnection p4conn) [0x0004f] in c:\tmp\53044412\depot\main\p4-connect\src\P4Connect\P4Connect\P4Connect.ChangeManager.cs:253
  at P4Connect.ChangeManager.RefreshChange (P4Connect.PerforceConnection p4conn, Int32 changeId) [0x00012] in c:\tmp\53044412\depot\main\p4-connect\src\P4Connect\P4Connect\P4Connect.ChangeManager.cs:223
  at P4Connect.ChangeManager.OnEngineOperationPerformed (P4Connect.PerforceConnection aConnection, System.Collections.Generic.List`1 aFilesAndMetas) [0x00000] in c:\tmp\53044412\depot\main\p4-connect\src\P4Connect\P4Connect\P4Connect.ChangeManager.cs:40
  at (wrapper delegate-invoke) P4Connect.Engine/OnOperationPerformedDelegate:invoke_void__this___PerforceConnection_List`1<FileAndMeta> (P4Connect.PerforceConnection,System.Collections.Generic.List`1<P4Connect.FileAndMeta>)
  at P4Connect.Engine.PerformOperation (System.String[] arPaths, System.String[] arMoveToPaths, AssetOperation aDesiredOp) [0x0005f] in c:\tmp\53044412\depot\main\p4-connect\src\P4Connect\P4Connect\P4Connect.Engine.cs:931





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users