Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27930] iOS: iPad crashing intermittently during unit test suite

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2020-08-11T12:47:30.000+0000
Affected Version/sRelease 9.1.0
Fix Version/sRelease 9.1.0
ComponentsiPad
LabelsengSchedule
ReporterChristopher Williams
AssigneeChristopher Williams
Created2020-06-03T13:31:16.000+0000
Updated2020-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

FileDateSize
mocha_2020-06-02-150546_macos-feldman.crash2020-06-03T13:29:18.000+0000195734
mocha_2020-06-03-060205_slapchop-macos.crash2020-06-03T13:29:19.000+0000196040
mocha_2020-06-03-063834_ginsu-macos06.crash2020-06-03T17:51:49.000+0000191857
mocha_2020-06-03-065153_slapchop-macos.crash2020-06-04T12:42:00.000+0000195303

Comments

  1. Vijay Singh 2020-06-03

    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.
  2. Christopher Williams 2020-06-04

    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.
  3. Christopher Williams 2020-06-04

    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.
  4. Christopher Williams 2020-06-04

    Nevermind, we guard on non-3DTouch, so probably not that. Ti.UI.iOS.NavigationWindow?
  5. Christopher Williams 2020-06-04

    https://github.com/appcelerator/titanium_mobile/pull/11753
  6. Samir Mohammed 2020-07-02

    FR Passed: Waiting on Jenkins build.
  7. Christopher Williams 2020-07-06

    merged to master for 9.1.0 target
  8. Samir Mohammed 2020-08-11

    Closing ticket, Test suite is no longer crashing.

JSON Source