calabash / calabash-ios-server

An embedded HTTP server for performing queries and test automation
Other
87 stars 82 forks source link

Facing issues while building with Xcode 12 #465

Open raamojirao opened 3 years ago

raamojirao commented 3 years ago

We built the app with Xcode 12 and loaded it on phone iOS 14.2, with the dylibs from calabash-cucumber-0.22.2. It crashes when we instantiate calabash. Do we need to update anything else apart from dylibs? Please help. We have a release coming and needs to execute test suite on iOS 14. Every thing is working fine on iOS 13. Please find the crash log below

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.comcast.cim.x2>:3886 exhausted real (wall clock) time allowance of 18.90 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 49.770 (user 49.770, system 0.000), 44% CPU", | "Elapsed application CPU time (seconds): 0.085, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: LPHTTPServer
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001c549919c __psynch_cvwait + 8
1   libsystem_pthread.dylib         0x00000001e0df5550 _pthread_cond_wait + 1192
2   Foundation                      0x0000000199fd9f0c -[NSObject+ 233228 (NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 660
3   Foundation                      0x0000000199fdbd98 -[NSObject+ 241048 (NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:] + 120
4   libCalabashARM.dylib            0x000000010e85b8d4 0x10e824000 + 227540
5   libCalabashARM.dylib            0x000000010e85abcc 0x10e824000 + 224204
6   libCalabashARM.dylib            0x000000010e859eb4 0x10e824000 + 220852
7   libdispatch.dylib               0x00000001989a4ac0 _dispatch_client_callout + 20
8   libdispatch.dylib               0x00000001989b2c84 _dispatch_lane_barrier_sync_invoke_and_complete + 60
9   libCalabashARM.dylib            0x000000010e859d3c 0x10e824000 + 220476
10  libCalabashARM.dylib            0x000000010e8d90f8 0x10e824000 + 741624
11  libCalabashARM.dylib            0x000000010e8d7998 0x10e824000 + 735640
12  libCalabashARM.dylib            0x000000010e82bb5c 0x10e824000 + 31580
13  libCalabashARM.dylib            0x000000010e82bcbc 0x10e824000 + 31932
14  libCalabashARM.dylib            0x000000010e82bce0 0x10e824000 + 31968
15  libdyld.dylib                   0x00000001989f3d90 invocation function for block in dyld3::AllImages::runAllInitializersInImage+ 69008 (dyld3::closure::Image const*, dyld3::MachOLoaded const*) + 148
16  libdyld.dylib                   0x00000001989e4f90 dyld3::closure::Image::forEachInitializer(void const*, void + 8080 (void const*) block_pointer) const + 104
17  libdyld.dylib                   0x00000001989f3bbc invocation function for block in dyld3::AllImages::runInitialzersBottomUp+ 68540 (dyld3::closure::Image const*) + 324
18  libdyld.dylib                   0x00000001989e58d0 dyld3::closure::Image::forEachImageToInitBefore(void + 10448 (unsigned int, bool&) block_pointer) const + 104
19  libdyld.dylib                   0x00000001989f4650 dyld3::AllImages::loadImage+ 71248 (Diagnostics&, char const*, unsigned int, dyld3::closure::DlopenClosure const*, bool, bool, bool, bool, void const*) + 828
20  libdyld.dylib                   0x00000001989f4144 dyld3::AllImages::dlopen+ 69956 (Diagnostics&, char const*, bool, bool, bool, bool, bool, void const*, bool) + 904
21  libdyld.dylib                   0x00000001989f5fa8 dyld3::dlopen_internal+ 77736 (char const*, int, void*) + 372
22  libdyld.dylib                   0x00000001989e835c dlopen_internal+ 21340 (char const*, int, void*) + 112
JoeSSS commented 3 years ago

@AndreyMaslennikov do you have any idea what can be the cause?

raamojirao commented 3 years ago

@JoeSSS @AndreyMaslennikov We are still facing this issue. App crashes when we build the app using dylibs with Xcode 12 on iOS >= 14.0. Please help