Jump to content


P4Connect Error when Creating a New Folder

P4Connect Unity Exception

  • Please log in to reply
2 replies to this topic

#1 rtande

rtande

    Member

  • Members
  • PipPip
  • 19 posts
  • LocationBay Area, California

Posted 22 October 2015 - 06:29 AM

I see the following error when creaitng a subfolder (through the right-click menu in Unity: Create->Folder) even though the folder name doesn't contain wildcards.


P4Exception: Can't add filenames containing the ellipsis wildcard (...).

Perforce.P4.P4Exception.Throw (System.String cmd, System.String[] args, Perforce.P4.P4ClientErrorList errors, Perforce.P4.P4ClientInfoMessageList details) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Bridge/p4api.net/P4Exception.cs:376)
Perforce.P4.P4Server.RunCommand (System.String cmd, UInt32 cmdId, Boolean tagged, System.String[] args, Int32 argc) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Bridge/p4api.net/P4Server.cs:1368)
Perforce.P4.P4Command.RunInt (Perforce.P4.StringList flags) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Bridge/p4api.net/P4Command.cs:411)
UnityEngine.Debug:LogException(Exception)
P4Connect.Engine:LogP4Exception(Exception) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:2014)
P4Connect.Engine:PerformOperation(String[], String[], AssetOperation) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1039)
P4Connect.Engine:CreateAssets(String[]) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:504)
P4Connect.AssetPostProcessor:OnPostprocessAllAssets(String[], String[], String[], String[]) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.AssetPostProcessor.cs:58)
UnityEditor.DockArea:OnGUI()


The exception doesn't seem fatal but when the folder is opened via the right-click menu the following error is shown though it opens fine if it's double-clicked



NullReferenceException: Object reference not set to an instance of an object
P4Connect.Engine.GetFileState (Perforce.P4.FileSpec aFile, P4Connect.PerforceConnection aConnection) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:703)
P4Connect.Engine.GetFileState (System.String arPath, P4Connect.PerforceConnection aConnection) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:690)
P4Connect.Queries+<>c__DisplayClass2.<GetFileState>b__0 (P4Connect.PerforceConnection con) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Queries.cs:21)
P4Connect.Engine.PerformConnectionOperation (System.Action`1 aConnectionOperation) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:826)
UnityEngine.Debug:LogException(Exception)
P4Connect.Engine:LogP4Exception(Exception) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:2014)
P4Connect.Engine:PerformConnectionOperation(Action`1) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:831)
P4Connect.Queries:GetFileState(String) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Queries.cs:21)
P4Connect.AssetBridge:OpenFile(Int32, Int32) (at c:/tmp/57805486/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.AssetBridge.cs:130)


The exceptions are reproducible on both PC and Mac using Unity 5.2.2f and P4Connect 2015.2.124.5673-Release

#2 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 28 October 2015 - 05:12 PM

Hi rtande,

I just found this bug and have a Development release available with the fix.

Please download it from here:  

https://swarm.worksh.../main/releases/p4Connect15_2_dev.unitypackage

If this doesn't work for you, please email support@perforce.com to let me know.

#3 rtande

rtande

    Member

  • Members
  • PipPip
  • 19 posts
  • LocationBay Area, California

Posted 30 October 2015 - 06:27 PM

Hi Norman,

Thanks for posting this fix. I've downloaded and tested and it fixes the bug when creating a folder.

Looking forward to the next P4Connect release. Thanks for all your work on this

Rajan





Also tagged with one or more of these keywords: P4Connect, Unity, Exception

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users