Search Unity

Cannot Launch Local AssetBundle Server - Can't Find Process

Discussion in 'Editor & General Support' started by SimteractiveDev, Dec 13, 2016.

  1. SimteractiveDev

    SimteractiveDev

    Joined:
    Jul 9, 2014
    Posts:
    97
    Hey, I am unable to launch the local AssetBundle Server. It just throws the following error:

    Code (CSharp):
    1. ArgumentException: Can't find process with ID 12920
    2. System.Diagnostics.Process.GetProcessById (Int32 processId)
    3. AssetBundles.LaunchAssetBundleServer.IsRunning () (at Assets/AssetBundleManager/Editor/LaunchAssetBundleServer.cs:49)
    4. AssetBundles.LaunchAssetBundleServer.ToggleLocalAssetBundleServerValidate () (at Assets/AssetBundleManager/Editor/LaunchAssetBundleServer.cs:39)
    I've made sure that the IP address is correct in the AssetBundleServerURL file (and also set it to the default value specified in the AssetBundle Tutorial). Anybody got any ideas?

    I'm using Unity 5.5.0f3 on Mac OS X El Capitan (10.11.6).

    Any help is appreciated, thanks!
     
  2. Deleted User

    Deleted User

    Guest

    I think you do not need to launch the local AssetBundle Server. I have the same problem on Windows 10, just load your bundles with local filepath.
    Example:
    Code (CSharp):
    1. // Initialize the downloading url and AssetBundleManifest object.
    2.     protected IEnumerator InitManager()
    3.     {
    4.         string _url = "";
    5. #if UNITY_EDITOR
    6.         _url = "file:///";
    7. #endif
    8.         _url += Application.streamingAssetsPath + "/AssetBundles/";
    9.  
    10.         AssetBundleManager.SetSourceAssetBundleURL(_url);
    11.         var request = AssetBundleManager.Initialize();
    12.    
    13.         if (request != null)
    14.             yield return StartCoroutine(request);
    15.     }
     
    Last edited by a moderator: Dec 19, 2016
    SimteractiveDev likes this.
  3. SimteractiveDev

    SimteractiveDev

    Joined:
    Jul 9, 2014
    Posts:
    97
    Oh cool, thanks for this! :)
     
  4. Oponn

    Oponn

    Joined:
    Dec 12, 2014
    Posts:
    1
    Thanks for this workaround, I'm having trouble with this too, as I am trying to do the asset bundle tutorial.
    What would the "file:///" be? Is this the path of the project?
     
  5. Deleted User

    Deleted User

    Guest

    "file:///" - it is begin of url for the file system. Otherwise AssetBundleManager would search the path on the web.