Search Unity

Some scenes load empty with unity cloud build.

Discussion in 'Unity Build Automation' started by Ra_, Nov 2, 2018.

  1. Ra_

    Ra_

    Joined:
    Feb 16, 2010
    Posts:
    67
    I'm currently only testing with Android builds. When I build directly to my phone, everything works just like it did in the editor, but in cloud build some of my scenes just load blank.

    I have added the scenes to my build setting. Whats odd is I have 2 formats of scene names, one name format is L0001, L0002 and so on. the other is MAX0001, MAX0002, and so on. The Ls work fine, but the MAX scenes just load blank. Everything works fine when i build locally so I'm not sure how to debug this. as far as I can tell all scenes get treated the same in the cloud build logs.

    I am loading scene by name, I've ready somewhere it is better to load them by index, but that would definitely be a big pain with how I currently have my level indexes built.

    Any ideas on how to debug this?
     
  2. Ra_

    Ra_

    Joined:
    Feb 16, 2010
    Posts:
    67
    Update: I've tried loading these levels by scene index. That didn't help at all.

    While I'm not sure I'm on the right track to fix this I am trying to clean up an error I have in my build logs. This seems to indicate a package isn't there or linked properly. Any ideas on how to clear this up?

    I kind of doubt this error is causing some scenes to load and others not too.

    Does unity have support for cloud build? Or do you have to purchase a support package? This issue is really become a major roadblock for me. I really love cloud build and don't want to ditch it, but I'm not sure what else to do


    312: [Unity] - Completed reload, in 0.846 seconds
    313: [Unity] Initializing Unity.PackageManager (PackageManager) v5.6.6 for Unity v5.6.6f2
    314: [Unity] Error enumerating assemblies looking for package manager. System.NullReferenceException: Object reference not set to an instance of an object
    315: [Unity] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Unity.PackageManager.Ivy.IvyModule].MoveNext () [0x00000] in <filename unknown>:0
    316: [Unity] at System.Linq.Enumerable.ToArray[IvyModule] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
    317: [Unity] at System.Linq.QuickSort`1[Unity.PackageManager.Ivy.IvyModule]..ctor (IEnumerable`1 source, System.Linq.SortContext`1 context) [0x00000] in <filename unknown>:0
    318: [Unity] at System.Linq.QuickSort`1+<Sort>c__Iterator21[Unity.PackageManager.Ivy.IvyModule].MoveNext () [0x00000] in <filename unknown>:0
    319: [Unity] at System.Linq.Enumerable.ToLookup[IvyModule,String,IvyModule] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
    320: [Unity] at System.Linq.Enumerable.ToLookup[IvyModule,String] (IEnumerable`1 source, System.Func`2 keySelector) [0x00000] in <filename unknown>:0
    321: [Unity] Platform assembly: /UNITY_PATH/Unity/Unity-5_6_6f2/Unity.app/Contents/PackageManager/Unity/PackageManager/5.6.6/Unity.PackageManager.dll (this message is harmless)
    322: [Unity] Loading /UNITY_PATH/Unity/Unity-5_6_6f2/Unity.app/Contents/PackageManager/Unity/PackageManager/5.6.6/Unity.PackageManager.dll into Unity Child Domain
    323: [Unity] Error initializing package manager. System.NullReferenceException: Object reference not set to an instance of an object
    324: [Unity] at System.Collections.Generic.HashSet`1[Unity.PackageManager.Ivy.IvyModule].GetItemHashCode (Unity.PackageManager.Ivy.IvyModule item) [0x00000] in <filename unknown>:0
    325: [Unity] at System.Collections.Generic.HashSet`1[Unity.PackageManager.Ivy.IvyModule].Remove (Unity.PackageManager.Ivy.IvyModule item) [0x00000] in <filename unknown>:0
    326: [Unity] at System.Linq.Enumerable+<CreateIntersectIterator>c__IteratorA`1[Unity.PackageManager.Ivy.IvyModule].MoveNext () [0x00000] in <filename unknown>:0
    327: [Unity] Initializing Package Manager with no module information. This should only happen during testing.
    328: [Unity] NullReferenceException: Object reference not set to an instance of an object
    329: [Unity] at System.Linq.Enumerable.First[IGrouping`2] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
    330: [Unity] at System.Linq.Enumerable.FirstOrDefault[IGrouping`2] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
    331: [Unity] Reloading assemblies after script compilation.
    332: [Unity] Begin MonoManager ReloadAssembly
    333: [Unity] Platform assembly: /UNITY_PATH/Unity/U
     
  3. Ra_

    Ra_

    Joined:
    Feb 16, 2010
    Posts:
    67
    I resolved the issue. I didn't realize I had to select the unity version on cloud build.