[AC-6354] titanium sdk 8.1.1.GA crashing ios with uncaught exception 'NSInvalidArgumentException' error
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-10-19T23:12:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Luke Lu |
Assignee | Shak Hossain |
Created | 2019-09-04T06:01:26.000+0000 |
Updated | 2019-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
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?
@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?
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.
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]
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
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
Hello, with