[TIMOB-28458] iOS: Hyperloop defineClass() method crashes as of Titanium 10.0.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-06-17T19:46:50.000+0000 |
Affected Version/s | Release 10.0.0 |
Fix Version/s | Release 10.0.1 |
Components | iOS |
Labels | hyperloop, ios, regression |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-05-21T03:21:53.000+0000 |
Updated | 2021-06-17T19:46:50.000+0000 |
Description
*Summary:*
As of Titanium 10.0.0, the
Hyperloop.defineClass()
method will crash the app.
*Steps to reproduce:*
Build and run [hyperloop-examples](https://github.com/appcelerator/hyperloop-examples) for iOS.
Notice the app crashes on app startup.
[ERROR] -[KrollBridge require:path:]: unrecognized selector sent to instance 0x600000c24d20
[ERROR] -[__NSCFString count]: unrecognized selector sent to instance 0x7f9e4e04ce00
[ERROR] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x7f9e4e04ce00'
[ERROR] *** First throw call stack:
[ERROR] (
[ERROR] 0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
[ERROR] 1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
[ERROR] 2 CoreFoundation 0x00007fff204306f7 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
[ERROR] 3 CoreFoundation 0x00007fff20426036 ___forwarding___ + 1489
[ERROR] 4 CoreFoundation 0x00007fff20428068 _CF_forwarding_prep_0 + 120
[ERROR] 5 TitaniumKit 0x000000010f2803f5 -[TiScriptError formattedNativeStack] + 133
[ERROR] 6 TitaniumKit 0x000000010f2802fb -[TiScriptError description] + 1127
[ERROR] 7 Foundation 0x00007fff2084c37a _NSDescriptionWithLocaleFunc + 82
[ERROR] 8 CoreFoundation 0x00007fff203bae0d __CFStringAppendFormatCore + 12102
[ERROR] 9 CoreFoundation 0x00007fff203bc8a1 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 145
[ERROR] 10 CoreFoundation 0x00007fff203bc80a _CFStringCreateWithFormatAndArgumentsAux2 + 20
[ERROR] 11 TitaniumKit 0x000000010f2426dd TiLogMessage + 175
[ERROR] 12 TitaniumKit 0x000000010f27f8b0 -[TiExceptionHandler reportScriptError:] + 74
[ERROR] 13 JavaScriptCore 0x00007fff3186d50b -[JSContext(Internal) valueFromNotifyException:] + 27
[ERROR] 14 JavaScriptCore 0x00007fff31874155 -[JSValue invokeMethod:withArguments:] + 661
[ERROR] 15 TitaniumKit 0x000000010f256129 -[KrollBridge evalFileOnThread:context:] + 449
[ERROR] 16 TitaniumKit 0x000000010f28d29c -[KrollInvocation invoke:] + 58
[ERROR] 17 TitaniumKit 0x000000010f28dc23 -[KrollContext invoke:] + 109
[ERROR] 18 TitaniumKit 0x000000010f2562a5 -[KrollBridge evalFile:callback:selector:] + 55
[ERROR] 19 TitaniumKit 0x000000010f256e8c -[KrollBridge didStartNewContext:] + 2283
[ERROR] 20 TitaniumKit 0x000000010f28e338 -[KrollContext main] + 1014
[ERROR] 21 libdispatch.dylib 0x00007fff2010532f _dispatch_call_block_and_release + 12
[ERROR] 22 libdispatch.dylib 0x00007fff20106508 _dispatch_client_callout + 8
[ERROR] 23 libdispatch.dylib 0x00007fff20112ff7 _dispatch_main_queue_callback_4CF + 1045
[ERROR] 24 CoreFoundation 0x00007fff2038fdbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
[ERROR] 25 CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685
[ERROR] 26 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567
[ERROR] 27 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139
[ERROR] 28 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912
[ERROR] 29 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101
[ERROR] 30 Hyperloop_Sample 0x000000010e985fd6 main + 1174
[ERROR] 31 libdyld.dylib 0x00007fff2025a3e9 start + 1
[ERROR] )
PR (master): https://github.com/appcelerator/titanium_mobile/pull/12829 PR (hyperloop-examples): https://github.com/appcelerator/hyperloop-examples/pull/90
master and 10_0_X backport merged