Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity Remote. Error message pops up when I hit Play.

Discussion in 'Android' started by georgeq, Dec 15, 2019.

  1. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    660
    I'm trying to use Unity Remote 5 with Unity 2019.2.16f1, but when I hit play I get this message:


    ArgumentException: The specified path is not of a legal form (empty).
    System.IO.Path.InsecureGetFullPath (System.String path) (at <567df3e0919241ba98db88bec4c6696f>:0)
    System.IO.Path.GetFullPathInternal (System.String path) (at <567df3e0919241ba98db88bec4c6696f>:0)
    System.IO.FileInfo.Init (System.String fileName, System.Boolean checkHost) (at <567df3e0919241ba98db88bec4c6696f>:0)
    System.IO.FileInfo..ctor (System.String fileName) (at <567df3e0919241ba98db88bec4c6696f>:0)
    (wrapper remoting-invoke-with-check) System.IO.FileInfo..ctor(string)
    UnityEditor.VisualStudioIntegration.SolutionSynchronizer.ShouldSyncOnReimportedAsset (System.String asset) (at C:/buildslave/unity/build/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:224)
    System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    UnityEditor.VisualStudioIntegration.SolutionSynchronizer.SyncIfNeeded (System.Collections.Generic.IEnumerable`1[T] affectedFiles, System.Collections.Generic.IEnumerable`1[T] reimportedFiles) (at C:/buildslave/unity/build/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:213)
    UnityEditor.SyncVS.PostprocessSyncProject (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at C:/buildslave/unity/build/Editor/Mono/SyncProject.cs:165)
    UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at C:/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:159)
    UnityEditor.SceneManagement.EditorSceneManager:SaveOpenScenes()
    AprilGames.Autosave:SaveBeforeRun(PlayModeStateChange) (at Assets/Project/Scripts/Editor/Autosave.cs:23)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    I guess the solution for this, is to setup an environment variable on Windows, but I just have no idea of what the name of such variable should be. Any help will be appreciated.
     
    KappKee likes this.
  2. Teucer

    Teucer

    Joined:
    Dec 23, 2018
    Posts:
    1
    I'm getting the same error. I just updated from version 2019.1.4f1 to 2019.2.16f1, and it happens whenever I hit the play button
     
  3. Revinder

    Revinder

    Joined:
    Mar 24, 2019
    Posts:
    1
    Same here. Unity 2019.2.16f1. Currently is happening on entirely blank project.
     
  4. KappKee

    KappKee

    Joined:
    Nov 12, 2019
    Posts:
    1
    Same problem. Unity 2019.2.16f1.
     
    Revinder likes this.
  5. DonnaAG

    DonnaAG

    Joined:
    Jan 20, 2019
    Posts:
    1
    Same problem. Unit 2019.2.16f1
     
    Revinder likes this.
  6. Stefferp

    Stefferp

    Joined:
    Nov 18, 2018
    Posts:
    4
    Upgraded from 2019.2.8f to 17f and I'm getting the same problem now. Is this a known issue yet?
     
    SergioAlonso likes this.
  7. DavidZobrist

    DavidZobrist

    Joined:
    Sep 3, 2017
    Posts:
    201
    Unity 2019.2.15f1 to 2019.2.17f1

    Also getting something similar

    Code (CSharp):
    1. ArgumentException: The specified path is not of a legal form (empty).
    2. System.IO.Path.InsecureGetFullPath (System.String path) (at <567df3e0919241ba98db88bec4c6696f>:0)
    3. System.IO.Path.GetFullPathInternal (System.String path) (at <567df3e0919241ba98db88bec4c6696f>:0)
    4. System.IO.FileInfo.Init (System.String fileName, System.Boolean checkHost) (at <567df3e0919241ba98db88bec4c6696f>:0)
    5. System.IO.FileInfo..ctor (System.String fileName) (at <567df3e0919241ba98db88bec4c6696f>:0)
    6. (wrapper remoting-invoke-with-check) System.IO.FileInfo..ctor(string)
    7. VSCodeEditor.ProjectGeneration.ShouldSyncOnReimportedAsset (System.String asset) (at Library/PackageCache/com.unity.ide.vscode@1.1.3/Editor/ProjectGeneration/ProjectGeneration.cs:200)
    8. System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    9. VSCodeEditor.ProjectGeneration.HasFilesBeenModified (System.Collections.Generic.IEnumerable`1[T] affectedFiles, System.Collections.Generic.IEnumerable`1[T] reimportedFiles) (at Library/PackageCache/com.unity.ide.vscode@1.1.3/Editor/ProjectGeneration/ProjectGeneration.cs:195)
    10. VSCodeEditor.ProjectGeneration.SyncIfNeeded (System.Collections.Generic.IEnumerable`1[T] affectedFiles, System.Collections.Generic.IEnumerable`1[T] reimportedFiles) (at Library/PackageCache/com.unity.ide.vscode@1.1.3/Editor/ProjectGeneration/ProjectGeneration.cs:181)
    11. VSCodeEditor.VSCodeScriptEditor.SyncIfNeeded (System.String[] addedFiles, System.String[] deletedFiles, System.String[] movedFiles, System.String[] movedFromFiles, System.String[] importedFiles) (at Library/PackageCache/com.unity.ide.vscode@1.1.3/Editor/VSCodeScriptEditor.cs:139)
    12. UnityEditor.CodeEditorProjectSync.PostprocessSyncProject (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at C:/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditorProjectSync.cs:35)
    13. UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at C:/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:154)
    14. UnityEditor.AssetDatabase:SaveAssets()
    15. GitHub.Unity.ExtensionLoader:Initialize() (at Assets/Plugins/GitHub/Editor/ExtensionLoader.cs:57)
    16. UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:303)
     
    SergioAlonso likes this.
  8. emadkh

    emadkh

    Joined:
    Aug 23, 2013
    Posts:
    21
    I am getting the same error on Unity 2019.3.0f1, every time I hit Play in Editor.
    Code (CSharp):
    1. ArgumentException: The specified path is not of a legal form (empty).
    2. System.IO.Path.InsecureGetFullPath (System.String path) (at <437ba245d8404784b9fbab9b439ac908>:0)
    3. System.IO.Path.GetFullPathInternal (System.String path) (at <437ba245d8404784b9fbab9b439ac908>:0)
    4. System.IO.FileInfo.Init (System.String fileName, System.Boolean checkHost) (at <437ba245d8404784b9fbab9b439ac908>:0)
    5. System.IO.FileInfo..ctor (System.String fileName) (at <437ba245d8404784b9fbab9b439ac908>:0)
    6. (wrapper remoting-invoke-with-check) System.IO.FileInfo..ctor(string)
    7. Packages.Rider.Editor.ProjectGeneration.ShouldSyncOnReimportedAsset (System.String asset) (at Library/PackageCache/com.unity.ide.rider@1.2.1/Rider/Editor/ProjectGeneration/ProjectGeneration.cs:264)
    8. System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    9. Packages.Rider.Editor.ProjectGeneration.HasFilesBeenModified (System.Collections.Generic.IEnumerable`1[T] affectedFiles, System.Collections.Generic.IEnumerable`1[T] reimportedFiles) (at Library/PackageCache/com.unity.ide.rider@1.2.1/Rider/Editor/ProjectGeneration/ProjectGeneration.cs:259)
    10. Packages.Rider.Editor.ProjectGeneration.SyncIfNeeded (System.Collections.Generic.IEnumerable`1[T] affectedFiles, System.Collections.Generic.IEnumerable`1[T] reimportedFiles) (at Library/PackageCache/com.unity.ide.rider@1.2.1/Rider/Editor/ProjectGeneration/ProjectGeneration.cs:248)
    11. Packages.Rider.Editor.RiderScriptEditor.SyncIfNeeded (System.String[] addedFiles, System.String[] deletedFiles, System.String[] movedFiles, System.String[] movedFromFiles, System.String[] importedFiles) (at Library/PackageCache/com.unity.ide.rider@1.2.1/Rider/Editor/RiderScriptEditor.cs:251)
    12. UnityEditor.CodeEditorProjectSync.PostprocessSyncProject (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at <3b74787e58694cdda2c241162159b3b7>:0)
    13. UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at <3b74787e58694cdda2c241162159b3b7>:0)
    14. UnityEditor.AssetDatabase:SaveAssets()
    15. FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/Editor/FMOD/EventManager.cs:632)
    16. FMODUnity.EventManager:Update() (at Assets/Plugins/Editor/FMOD/EventManager.cs:694)
    17. UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
    18.  
     
  9. xiahvc_unity

    xiahvc_unity

    Joined:
    May 11, 2018
    Posts:
    11
    I am getting the same error on Unity 2019.3.2f1, every time I hit Play in Editor. too
     
  10. trumpets

    trumpets

    Joined:
    Mar 1, 2013
    Posts:
    9
    Open the ProjectGeneration.cs file from the vscode package and change the body for this method
    static bool ShouldSyncOnReimportedAsset(string asset)


    to:

    Code (CSharp):
    1. return k_ReimportSyncExtensions.Contains(Path.GetExtension(asset));
    On that note, can someone point me to the dev team which maintains this package so I can let them know of this issue and fix?
     
    Last edited: Aug 7, 2020