Search Unity

Android Cloud Build Failing - Not sure I understand the issue (also my first post :-))

Discussion in 'Unity Build Automation' started by timmetim, Mar 23, 2017.

  1. timmetim

    timmetim

    Joined:
    Nov 6, 2013
    Posts:
    8
    My android target in cloud build is suddenly not working. I have only made a few changes to some texture code that I could see having an impact but the log really isn't showing me anything other than a handful of warnings.

    I have reviewed all known issues, done a significant amount of digging and I am at a loss...

    I recently added:


    1. Audio Mixer for my UI, Player and SFX mix.
    2. Added the following code to clone a texture and grayscale it so to speak:

    Code (CSharp):
    1. Texture2D cloneTexture = Instantiate (chrProperty.origTexture);
    2. chrProperty.modelOne.GetComponent<MeshRenderer> ().material.mainTexture = cloneTexture;
    3. MakeGrayscale (cloneTexture);
    4.  
    5.   private void MakeGrayscale (Texture2D tex) {
    6.         Color[] texColors = tex.GetPixels ();
    7.         for (int i = 0; i < texColors.Length; i++) {
    8.             float grayValue = texColors [i].grayscale;
    9.             texColors [i] = new Color (grayValue, grayValue, grayValue, texColors [i].a);
    10.         }
    11.         tex.SetPixels (texColors);
    12.         tex.Apply ();
    13.    }
    Log file:

    2495: [Unity] Registered platform support modules in: 0.149847s.
    2496: [Unity] Native extension for OSXStandalone target not found
    2497: [Unity] Native extension for WindowsStandalone target not found
    2498: [Unity] Native extension for LinuxStandalone target not found
    2499: [Unity] Native extension for WebGL target not found
    2500: [Unity] Native extension for SamsungTV target not found
    2501: [Unity] Native extension for Tizen target not found
    2502: [Unity] Native extension for tvOS target not found
    2503: [Unity] Native extension for iOS target not found
    2504: [Unity] Native extension for Android target not found
    2505: [Unity] Refreshing native plugins compatible for Editor in 1.43 ms, found 3 plugins.
    2506: [Unity] Preloading 0 native plugins for Editor in 0.00 ms.
    2507: [Unity] ----- Total AssetImport time: 16.597277s, AssetImport time: 16.529907s, Asset hashing: 0.001434s [0.5 MB, 350.769257 mb/s]
    2508: [Unity] Warming cache for 2864 main assets: 0.016150 seconds elapsed
    2509: [Unity] Initializing Unity extensions:
    2510: [Unity] Receiving unhandled NULL exception
    2511: [Unity] Obtained 28 stack frames.
    2512: [Unity] #0 0x000001023d3c33 in AssetImporter::GetAssetPathName() const
    2513: [Unity] #1 0x00000100e2f030 in UnityExtensions::Initialize()
    2514: [Unity] #2 0x00000102640223 in Application::InitializeProject()
    2515: [Unity] #3 0x000001026d4615 in -[EditorApplication applicationDidFinishLaunching:]
    2516: [Unity] #4 0x007fff8c5edb1c in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
    2517: [Unity] #5 0x007fff8c5edaaf in ___CFXRegistrationPost_block_invoke
    2518: [Unity] #6 0x007fff8c5eda27 in _CFXRegistrationPost
    2519: [Unity] #7 0x007fff8c5ed792 in ___CFXNotificationPost_block_invoke
    2520: [Unity] #8 0x007fff8c5aa542 in -[_CFXNotificationRegistrar find:eek:bject:eek:bserver:enumerator:]
    2521: [Unity] #9 0x007fff8c5a9795 in _CFXNotificationPost
    2522: [Unity] #10 0x007fff90a4c17a in -[NSNotificationCenter postNotificationName:eek:bject:userInfo:]
    2523: [Unity] #11 0x007fff94533355 in -[NSApplication _postDidFinishNotification]
    2524: [Unity] #12 0x007fff945330bf in -[NSApplication _sendFinishLaunchingNotification]
    2525: [Unity] #13 0x007fff943edd99 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
    2526: [Unity] #14 0x007fff943ed843 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
    2527: [Unity] #15 0x007fff90a9a72d in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
    2528: [Unity] #16 0x007fff90a9a5a7 in _NSAppleEventManagerGenericHandler
    2529: [Unity] #17 0x007fff9250f261 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*)
    2530: [Unity] #18 0x007fff9250efe8 in dispatchEventAndSendReply(AEDesc const*, AEDesc*)
    2531: [Unity] #19 0x007fff9250ef04 in aeProcessAppleEvent
    2532: [Unity] #20 0x007fff94064af9 in AEProcessAppleEvent
    2533: [Unity] #21 0x007fff943e9290 in _DPSNextEvent
    2534: [Unity] #22 0x007fff943e8226 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    2535: [Unity] #23 0x007fff943dcd80 in -[NSApplication run]
    2536: [Unity] #24 0x007fff943a6368 in NSApplicationMain
    2537: [Unity] #25 0x000001026ee058 in EditorMain(int, char const**)
    2538: [Unity] #26 0x000001026ee869 in main
    2539: [Unity] #27 0x000001000023e4 in start
    2540: /BUILD_PATH/.mason/buildpacks/unity/bin/compile: line 30: 2676 Abort trap: 6 "${unity_args[@]}"
    2541: ! Unity player export failed!
    2542: ! build of 'android' failed. compile failed
    2543: Publishing build 98 of timmetim/xxxxxxxxxx for target 'android'...
    2544: publishing finished successfully.
    2545: done.
    2546: Build step 'Execute shell' marked build as failure
    2547: postbuildstatus finished successfully.
    2548: Finished: FAILURE

    My Observation:

    2510: [Unity] Receiving unhandled NULL exception

    The above is obviously the issue but I don't seem to see where this exception is coming from as there is not stack trace.

    UPDATE :

    I removed the texture code above and still failing.
     
    Last edited: Mar 23, 2017