[TIMOB-27930] iOS: iPad crashing intermittently during unit test suite
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-08-11T12:47:30.000+0000 |
Affected Version/s | Release 9.1.0 |
Fix Version/s | Release 9.1.0 |
Components | iPad |
Labels | engSchedule |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2020-06-03T13:31:16.000+0000 |
Updated | 2020-08-11T12:47:30.000+0000 |
Description
When the test suite runs on iPad, it tends to crash around the Ti.UI.iOS.WebViewConfiguration tests (not one specific test, though). i.e.
Please see the attached crash logs.
Looks like perhaps TiViewController's underlying _proxy pointer is null?
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_START: #createWebViewProcessPool()
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_END: {"state":"passed","duration":16,"suite":"Titanium.UI.iOS","title":"#createWebViewProcessPool()","message":""}
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_START: #createWebViewConfiguration()
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_END: {"state":"passed","duration":0,"suite":"Titanium.UI.iOS","title":"#createWebViewConfiguration()","message":""}
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_START: allowsPictureInPictureMediaPlayback
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_END: {"state":"passed","duration":337,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"allowsPictureInPictureMediaPlayback","message":""}
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_START: suppressesIncrementalRendering
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_END: {"state":"passed","duration":6,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"suppressesIncrementalRendering","message":""}
[2020-06-03T13:01:33.689Z] [INFO] : !TEST_START: allowsAirPlayMediaPlayback
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_END: {"state":"passed","duration":5,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"allowsAirPlayMediaPlayback","message":""}
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_START: allowsInlineMediaPlayback
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_END: {"state":"passed","duration":8,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"allowsInlineMediaPlayback","message":""}
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_START: selectionGranularity
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_END: {"state":"passed","duration":4,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"selectionGranularity","message":""}
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_START: mediaTypesRequiringUserActionForPlayback
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_END: {"state":"passed","duration":7,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"mediaTypesRequiringUserActionForPlayback","message":""}
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_START: preferences
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_END: {"state":"passed","duration":7,"suite":"Titanium.UI.iOS.WebViewConfiguration","title":"preferences","message":""}
[2020-06-03T13:01:33.690Z] [INFO] : !TEST_START: Should pass
[2020-06-03T13:01:33.690Z] [WARN] : Ti.UI.iOS.NavigationWindow DEPRECATED in 8.0.0, in favor of Ti.UI.NavigationWindow
[2020-06-03T13:01:33.690Z] [WARN] : 3DTouch is not available on this device.
[2020-06-03T13:01:33.690Z] [WARN] : Ti.UI.iOS.StatusBar.GRAY DEPRECATED in 9.1.0, in favor of Ti.UI.iOS.StatusBar.DEFAULT
[2020-06-03T13:01:33.690Z] [WARN] : Ti.UI.iOS.StatusBar.GREY DEPRECATED in 9.1.0, in favor of Ti.UI.iOS.StatusBar.DEFAULT
[2020-06-03T13:01:33.690Z] [ERROR] : Application received error: signal error code: 11
[2020-06-03T13:01:33.690Z] [ERROR] : (null)
Attachments
File | Date | Size |
---|---|---|
mocha_2020-06-02-150546_macos-feldman.crash | 2020-06-03T13:29:18.000+0000 | 195734 |
mocha_2020-06-03-060205_slapchop-macos.crash | 2020-06-03T13:29:19.000+0000 | 196040 |
mocha_2020-06-03-063834_ginsu-macos06.crash | 2020-06-03T17:51:49.000+0000 | 191857 |
mocha_2020-06-03-065153_slapchop-macos.crash | 2020-06-04T12:42:00.000+0000 | 195303 |
I run unit test 10+ times on iPad but didn't get any crash. I suspect [Titanium.UI.iPad.Popover](https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/8cbbda6f03577d4804ba2c917c9d4430c6419fd8/Resources/ti.ui.ipad.popover.test.js#L43) might be the causing the crash. This is only iPad specific test case which is executing. [~cwilliams] Can we temporarily stop executing this test case to narrow down the cause of crash? PR to comment out test case - https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/262 Note- Above PR need to be reverted after deciding.
I don't know that it's iPad specific anymore. Just saw this crash on iPhone: https://jenkins.appcelerator.org/blue/organizations/jenkins/titanium-sdk%2Ftitanium_mobile/detail/master/1049/artifacts I'll attach that crash log as well - seems to be the same stack trace natively.
My best guess here is that the
Ti.UI.iOS.createPreviewContext()
test may be the trigger? I see it registers for the app's top controller a delegate, but never unregisters. But it does deallocate the underlying preview property which is the proxy that the TiViewController is trying to operate on.Nevermind, we guard on non-3DTouch, so probably not that. Ti.UI.iOS.NavigationWindow?
https://github.com/appcelerator/titanium_mobile/pull/11753
FR Passed: Waiting on Jenkins build.
merged to master for 9.1.0 target
Closing ticket, Test suite is no longer crashing.