0 Replies
      Latest reply on Jul 23, 2019 3:25 PM by thomasfromoakland
      thomasfromoakland Level 1 Level 1 (0 points)

        I get the following error message when I instanciate my mlmodel:

         

        [espresso] [Espresso::handle_ex_plan] exception=ANECF error:
        [coreml] Error plan build: -1.

         

        And in the device log I found the following crash in the ANECompiler:

         

        Thread 1 name:  Dispatch queue: com.apple.compilerService.csQueue
        Thread 1 Crashed:
        0   libsystem_kernel.dylib         0x0000000192cb00cc __pthread_kill + 8
        1   libsystem_pthread.dylib       0x0000000192d26a88 pthread_kill + 300
        2   libsystem_c.dylib             0x0000000192c0914c abort + 144
        3   libsystem_c.dylib             0x0000000192bd62d0 basename_r + 0
        4   ANECompiler                   0x00000001bc35da5c ZinIrLocalRegAlloc+ 322140 (ZinIrContext*) + 5068
        5   ANECompiler                   0x00000001bc36ad04 ZinAneCoreCompile+ 376068 (ZinIrContext*, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > > > > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > > > > const&, ZinIrCompilationStatus&) + 912
        6   ANECompiler                   0x00000001bc39acf0 ANECCompileProcedure+ 572656 (__CFDictionary const*, __CFDictionary const*, ZinIrCompilerParameters&, ZinIrContext*&, ZinIrConstManager&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > > > > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator > > > > const&, ZinIrCompilationStatus&) + 576
        7   ANECompiler                   0x00000001bc398e90 ANECCompile + 876
        8   ANECompilerService             0x0000000104d081c8 0x104d00000 + 33224
        9   ANECompilerService             0x0000000104d08aa8 0x104d00000 + 35496
        10  ANECompilerService             0x0000000104d09730 0x104d00000 + 38704
        11  libdispatch.dylib             0x0000000192b2c884 _dispatch_client_callout + 20
        12  libdispatch.dylib             0x0000000192b39404 _dispatch_lane_barrier_sync_invoke_and_complete + 60
        13  ANECompilerService             0x0000000104d09254 0x104d00000 + 37460
        14  CoreFoundation                 0x0000000193124d04 __invoking___ + 148
        15  CoreFoundation                 0x0000000193000ea8 -[NSInvocation invoke] + 324
        16  Foundation                     0x0000000193cbffd8 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT__ + 24
        17  Foundation                     0x0000000193ad7208 -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 1484
        18  Foundation                     0x0000000193cc017c message_handler + 228
        19  libxpc.dylib                   0x0000000192d61470 _xpc_connection_call_event_handler + 80
        20  libxpc.dylib                   0x0000000192d617e0 _xpc_connection_mach_event + 864
        21  libdispatch.dylib             0x0000000192b2c950 _dispatch_client_callout4 + 20
        22  libdispatch.dylib             0x0000000192b42eac _dispatch_mach_msg_invoke + 336
        23  libdispatch.dylib             0x0000000192b33ca8 _dispatch_lane_serial_drain + 252
        24  libdispatch.dylib             0x0000000192b43e68 _dispatch_mach_invoke2 + 256
        25  libdispatch.dylib             0x0000000192b43abc _dispatch_mach_invoke + 424
        26  libdispatch.dylib             0x0000000192b33ca8 _dispatch_lane_serial_drain + 252
        27  libdispatch.dylib             0x0000000192b34954 _dispatch_lane_invoke + 424
        28  libdispatch.dylib             0x0000000192b3ccc0 _dispatch_workloop_worker_thread + 588
        29  libsystem_pthread.dylib       0x0000000192d27a98 _pthread_wqthread + 308
        30  libsystem_pthread.dylib       0x0000000192d2ddc4 start_wqthread + 4

        This error goes away if I do not use the neural engine.

        Is there any more information I could find on why this model crashes?

        It seems to be relared to the model size even though it is limited (47Mb).