[AC-6404] iOS 13 crashes sporadically
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2019-10-13T06:17:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Jerod Fritz |
Assignee | Shak Hossain |
Created | 2019-10-11T15:05:52.000+0000 |
Updated | 2019-10-13T06:17:48.000+0000 |
Description
This error occurs randomly often throughout our app and every user who has updated to the latest iOS is reporting crashes. Any suggestions on how I may be able to track this down or what is causing it. Here is the exception thrown just before the crash:
*** Terminating app due to uncaught exception 'org.appcelerator.TiUIViewProxy', reason: 'Value was not the value expected'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 TitaniumKit 0x000000010cbf4bf9 JavascriptNameForClass + 0
3 TitaniumKit 0x000000010cc29c1c -[TiViewProxy childWillResize:] + 172
4 TitaniumKit 0x000000010cc28e89 -[TiViewProxy refreshView:] + 592
5 TitaniumKit 0x000000010cc29b19 -[TiViewProxy layoutChildrenIfNeeded] + 141
6 TitaniumKit 0x000000010cc481d2 performLayoutRefresh + 272
7 CoreFoundation 0x00007fff23afc1e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
8 CoreFoundation 0x00007fff23afbed2 __CFRunLoopDoTimer + 1026
The error suggests that a child view is not actually part of the parent view anymore. Likely something is wrong with your view hierarchy and has now been causing issues with newer iOS versions.
I see. Thank you for the hint.
[~jerodfritz] Did you try the [~hknoechel] suggestion? Please let us know with some reproducible test cases if you still having this issue. Thanks!
Thank you for checking in. You can close this. It took some digging but ultimately Hans was correct. I was trying to alter a textfield while it was not part of the view hierarchy.