Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6404] iOS 13 crashes sporadically

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2019-10-13T06:17:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJerod Fritz
AssigneeShak Hossain
Created2019-10-11T15:05:52.000+0000
Updated2019-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

Comments

  1. Hans Knöchel 2019-10-11

    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.
  2. Jerod Fritz 2019-10-11

    I see. Thank you for the hint.
  3. Motiur Rahman 2019-10-13

    [~jerodfritz] Did you try the [~hknoechel] suggestion? Please let us know with some reproducible test cases if you still having this issue. Thanks!
  4. Jerod Fritz 2019-10-13

    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.

JSON Source