Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6354] titanium sdk 8.1.1.GA crashing ios with uncaught exception 'NSInvalidArgumentException' error

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-10-19T23:12:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLuke Lu
AssigneeShak Hossain
Created2019-09-04T06:01:26.000+0000
Updated2019-10-19T23:12:18.000+0000

Description

so, we moved up from sdk 8.0.1.GA to 8.1.1.GA, Android: All good now ios: crashes more often, in almost next button click. On investigation, we get this crash logs. Not sure what it is about, no problem on the previous version though Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[TiUIViewProxy unboundBridge:]: unrecognized selector sent to class 0x10ee35440' terminating with uncaught exception of type NSException abort() called CoreSimulator 587.35 - Device: iPhone 7 Plus (99B6CB8F-AB02-4B2B-B9E5-3A798024C1FB) - Runtime: iOS 12.2 (16E226) - DeviceType: iPhone 7 Plus

Attachments

FileDateSize
build_iphone.log2019-09-19T00:38:42.000+00003084296
log2019-09-19T00:39:57.000+0000115820
Lucidity_2019-09-04-154819_Suchans-MacBook-Pro.crash2019-09-04T06:01:10.000+0000143027

Comments

  1. Rakhi Mitro 2019-09-04

    Hello, Thanks for reaching out to us. It would be great if you can attach a simple test project to reproduce the issue on our end. Can you please test it for a new project?
  2. Luke Lu 2019-09-04

    @Rakhi Mitro yeah, that was the hard part, I cannot pinpoint an exact code that triggers the crash. For a new project, I cannot replicate that but tbh it won't be as complex as the current project. P.S. It was easier to find an issue on android, with ti-shadow I could use "Pause on exception" on Chrome dev tool. but it doesn't work on ios. Is there any similar way for ios?
  3. Sharif AbuDarda 2019-09-18

    Hello, Can you share a trace log on the crash, Run the project in terminal mode with -l trace tag. And send the log here. Thanks.
  4. Luke Lu 2019-09-19

    Sure, here is the log copied from the terminal (attached full). Let me know if it stored in any log file. Also attached build_iphone.log. "[TRACE] Window is not open. Ignoring this close call" is normally around when the crash happens, is that anything? [^build_iphone.log]
        [^log] 
       [TRACE] Preparing to send logs
       [INFO]  [2019-09-19T10:30:21+10:00] [16] Form Record: Opened form record with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Record: Took 85 ms to set up form with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Widget: open callback
       [WARN]  Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please modify the property in standard JS style: obj.enabled = value; or obj['enabled'] = value;
       [WARN]  Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please modify the property in standard JS style: obj.enabled = value; or obj['enabled'] = value;
       [WARN]  Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please modify the property in standard JS style: obj.title = value; or obj['title'] = value;
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Widget: There are now (1) registered callback(s) for event: app:deleteTableRow with uuid: 38f7add2-236c-4b20-a10f-da733a2d0965
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Edit: stopping loading overlay with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Widget: There are now (2) registered callback(s) for event: app:formElementUpdated with uuid: 38f7add2-236c-4b20-a10f-da733a2d0965
       [DEBUG] [2019-09-19T10:30:21+10:00] Form Widget: There are now (1) registered callback(s) for event: app:formElementFocus with uuid: 38f7add2-236c-4b20-a10f-da733a2d0965
       [TRACE] Successfully sent logs
       [TRACE] Successfully sent logs
       [TRACE] Successfully sent logs
       [DEBUG] [2019-09-19T10:30:22+10:00] Network Call: Received response of size 0 KB for call to https://ci-integ11000informrecordsync.luciditysoftware.com.au/api/v3/app/lucidity/inform with uuid: undefined and Transaction uuid 59f3e8a9-a972-4359-9928-dc00f8f70a50
       [DEBUG] [2019-09-19T10:30:22+10:00] System: Server version: 14.10.0, Required version: 11.0.0, Minimum server requirement Met with reason: Determine which fetch data API to use
       [DEBUG] [2019-09-19T10:30:22+10:00] System: test that feature exists 'app_enable_api_pagination_and_searching' is 'false'
       [TRACE] [2019-09-19T10:30:22+10:00] System: requirementsMet with result : false
       [DEBUG] [2019-09-19T10:30:22+10:00] Inform Record Service: Refreshing form records
       [DEBUG] [2019-09-19T10:30:22+10:00] Inform Record Service: Saved to network with remote id:32 with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:22+10:00] Inform Record Service: save record data: {"id":"32","uuid":"23f20e49-5e1c-4840-ad3b-92e88d62e599","status":"NOT_STARTED","respondent_id":1,"division_id":null,"business_unit_id":null,"location_id":null,"department_id":null,"project_id":null,"form_version_id":2,"score":null,"total_score":null,"created_at":"2019-09-19 10:30:20","updated_at":"2019-09-19 10:30:20","responses":null,"requires_sync":0,"company_id":null,"office_id":null,"identifier":null,"score_percent":null,"search_terms":null,"deleted":null,"form_name":"Field Duty Time Card","last_modified_at":"2019-09-19 10:30:20"}
       [DEBUG] [2019-09-19T10:30:22+10:00] System: Server version: 14.10.0, Required version: 11.0.0, Minimum server requirement Met with reason: Determine which fetch data API to use update Form Counter
       [DEBUG] [2019-09-19T10:30:22+10:00] System: test that feature exists 'app_enable_api_pagination_and_searching' is 'false'
       [TRACE] [2019-09-19T10:30:22+10:00] System: requirementsMet with result : false
       [DEBUG] [2019-09-19T10:30:22+10:00] Agenda: Updating outstanding form count
       [TRACE] [2019-09-19T10:30:22+10:00] Agenda: count 18 event: {"action":"init","number":17}
       [WARN]  Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please modify the property in standard JS style: obj.text = value; or obj['text'] = value;
       [DEBUG] [2019-09-19T10:30:22+10:00] Agenda: Updating outstanding form count
       [TRACE] [2019-09-19T10:30:22+10:00] Agenda: count 17 event: {"action":"init","number":17}
       [WARN]  Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please modify the property in standard JS style: obj.text = value; or obj['text'] = value;
       [DEBUG] [2019-09-19T10:30:23+10:00] Photo Gallery: is dirty false
       [DEBUG] [2019-09-19T10:30:23+10:00] Photo Gallery: is dirty false
       [DEBUG] [2019-09-19T10:30:23+10:00] Form Edit: testing if from needs saving: false
       [DEBUG]         photogalary is dirty: false 
       [DEBUG]         form isDirty: false 
       [DEBUG]         admin form isDirty: false
       [DEBUG]          was triggered by: saveFormRecord
       [DEBUG]  with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:23+10:00] Photo Gallery: is dirty false
       [DEBUG] [2019-09-19T10:30:23+10:00] Form Edit: stopping loading overlay with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [TRACE] [2019-09-19T10:30:23+10:00] Form Edit: closing window with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [DEBUG] [2019-09-19T10:30:23+10:00] Form Edit: stopping loading overlay with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [TRACE] [2019-09-19T10:30:23+10:00] Form Edit: cleaning up with uuid: 23f20e49-5e1c-4840-ad3b-92e88d62e599
       [TRACE] [2019-09-19T10:30:23+10:00] Form Widget: removing global listener for : app:formElementUpdated
       [TRACE] [2019-09-19T10:30:23+10:00] Form Widget: removing global listener for : app:formElementUpdated
       [TRACE] [2019-09-19T10:30:23+10:00] Form Widget: removing global listener for : app:deleteTableRow
       [TRACE] [2019-09-19T10:30:23+10:00] Form Widget: removing global listener for : app:formElementFocus
       [TRACE] [2019-09-19T10:30:23+10:00] Time Element Widget: cleanup
       [TRACE] [2019-09-19T10:30:23+10:00] Time Element Widget: cleanup
       [TRACE] [2019-09-19T10:30:23+10:00] Date Element Widget: cleanup
       [TRACE] Window is not open. Ignoring this close call
       -- End application log -------------------------------------------------------
       
  5. Sharif AbuDarda 2019-09-19

    Hello [~luke_lu], It was found that when opening a second window within an app, calling the close() method will actually close both windows. I believe you are doing such a task in your app? This only occurs when is set to TRUE, which is the default configuration. Try to set this to false in tiapp.xml and see what happens? This should fix it. Let us know. Thanks.
  6. Luke Lu 2019-09-19

    Hi Sharif, Thanks for helping out, Yeah it's related to close mostly. so, I cleaned everything and started over from installing appcelerator/alloys... changed tiapp.xml false Output: - Still the same, the crash does happen again - Weird thing on UI, UI kinda zoomed (?) so, back to true , also there wont be this issue on 8.0.1.GA Let me know what else we could do ?
  7. Sharif AbuDarda 2019-09-23

    Hello, with false the crash should be reduced than before? Also, Can you share the zoomed behavior? Hello, we need a sample test case that demonstrates the behavior in SDK 8.1.1.GA. Right not it's working fine in SDK 8.0.1.GA? We need a sample code to verify the difference between the two SDK. Thanks.

JSON Source