New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 716349 link

Starred by 9 users

Issue metadata

Status: Verified
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug



Sign in to add a comment

Searching on History consistently crashes the app on M58 Stable

Project Member Reported by cma...@chromium.org, Apr 28 2017

Issue description

Chrome Version: 58.0.3029.83
OS: 10.2

What steps will reproduce the problem?
(1)Open the app
(2)Browse to some page to populate your history entries if any
(3)Go to History tab and search

What is the expected result?
App should not crash

What happens instead?
App consistently crashes


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 

Comment 1 by cma...@chromium.org, Apr 28 2017

Cc: sczs@chromium.org lpromero@chromium.org
Owner: sczs@chromium.org
Status: Assigned (was: Untriaged)
I don't repro. Can you attach a crash report ID?
Sergio, could you have a look?
Annnd… reproed. Crash ID: https://crash.corp.google.com/browse?stbtiq=13897efd90000000

-[HistoryCollectionViewController historyServiceFacade:didReceiveQueryResult:]
We might reopen issue 707241 then.

Comment 5 by pkl@chromium.org, Apr 28 2017

The problem is not on trunk. I can't repro on a recent local build.
Can we check branch M58 to make sure that cherrypick happened correctly?

Comment 6 by cma...@chromium.org, Apr 28 2017

The crash with signature -[HistoryCollectionViewController historyServiceFacade:didReceiveQueryResult:] was only reproducible on M57 before M58 went to the public. So you might not be able to see it on trunk.
Cc: mard...@chromium.org
Cc: linds...@chromium.org
Should this be duped against issue 707241 or should we keep this tracker open as well?
Project Member

Comment 10 by sheriffbot@chromium.org, Apr 28 2017

Labels: FoundIn-M-58 Fracas
Users experienced this crash on the following builds:

Ios Beta 58.0.3029.82 -  133.73 CPM, 5 reports, 5 clients (signature -[HistoryCollectionViewController historyServiceFacade:didReceiveQueryResult:])

If this update was incorrect, please add "Fracas-Wrong" label to prevent future updates.

- Go/Fracas
Cc: shbarezer@chromium.org
Good Version 58.0.3029.64 #f53c1c3
Bad Version 58.0.3029.65 #8b4fbd3

This issue is also reproduced on M60.0.3083.0 canary.

Also note from shbarezer@, This issue is only reproduced If the user is signed into Chrome. If the user is not signed into Chrome, the searching through History works fine.
Note: This issue appears only with account with no passphrase, Account with Passphrase works fine
Project Member

Comment 14 by sheriffbot@chromium.org, Apr 29 2017

Labels: FoundIn-M-59
Users experienced this crash on the following builds:

Ios Beta 59.0.3071.27 -  247.77 CPM, 1 reports, 1 clients (signature -[HistoryCollectionViewController historyServiceFacade:didReceiveQueryResult:])

If this update was incorrect, please add "Fracas-Wrong" label to prevent future updates.

- Go/Fracas

Comment 15 by sczs@chromium.org, Apr 29 2017

Status: Started (was: Assigned)
Project Member

Comment 16 by sheriffbot@chromium.org, Apr 30 2017

Labels: FoundIn-M-60
Users experienced this crash on the following builds:

Ios Dev 60.0.3080.0 -  253.23 CPM, 5 reports, 2 clients (signature -[HistoryCollectionViewController historyServiceFacade:didReceiveQueryResult:])

If this update was incorrect, please add "Fracas-Wrong" label to prevent future updates.

- Go/Fracas
 Issue 716928  has been merged into this issue.

Comment 18 by sczs@chromium.org, May 1 2017

Cc: -mard...@chromium.org ramyasharma@chromium.org
ccing: ramyasharma 

Using the same completion blocker for updating and deleting as I proposed on https://codereview.chromium.org/2800473004/ increased the crash rate under these circumstances (No passphrase and signed in). I'm also not sure if the passphrase related fixes we made had some effect on this, though I doubt it. 

If the crash ratio is getting pretty bad I guess we can revert https://codereview.chromium.org/2800473004/, but I will still take a look at a new fix now that we have more information.
 Issue 717185  has been merged into this issue.
Cc: mard...@chromium.org

Comment 21 by sczs@chromium.org, May 2 2017

Just as an FYI: Some changes were made to the sync_service in the same time as well, though after some testing I highly doubt these are related: 
https://codereview.chromium.org/2790483002

I've created a revert for this issue and I'm still looking at the root cause:
https://codereview.chromium.org/2855883002/
Labels: Hotlist-ConOps
Crash ID : a97618c350000000
please let me know if I can get any other info from the device.
Project Member

Comment 23 by bugdroid1@chromium.org, May 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4575e0c18c3fea30e4f59ccc4c00fca6e6014698

commit 4575e0c18c3fea30e4f59ccc4c00fca6e6014698
Author: sczs <sczs@chromium.org>
Date: Wed May 03 01:21:21 2017

[ios] Revert of History didReceiveQueryResult performBatchUpdates.

This reverts: https://codereview.chromium.org/2800473004/
Since it increased the crash rate as in  bug 716349 .

BUG= 716349 

Review-Url: https://codereview.chromium.org/2855883002
Cr-Commit-Position: refs/heads/master@{#468856}

[modify] https://crrev.com/4575e0c18c3fea30e4f59ccc4c00fca6e6014698/ios/chrome/browser/ui/history/history_collection_view_controller.mm

Comment 24 by sczs@chromium.org, May 3 2017

Labels: Merge-Request-59 Merge-Request-58
Status: Fixed (was: Started)
I've committed the revert and I'm still looking into the root cause. 

Using the same performBatchUpdates block made the crash more apparent since sync can add items to the model (that weren't there on the first place) while filtering, thats why when we delete something the model complains about inconsistency. 

I have more idea of what's going on and right now I don't think the root cause fix will be trivial, so I still think we should revert first. Especially after the high number of crashes this is causing. 

Will mark this as Fixed in order to cherry pick into M-58 and M-59
Project Member

Comment 25 by sheriffbot@chromium.org, May 3 2017

Labels: -Merge-Request-59 Merge-Review-59 Hotlist-Merge-Review
This bug requires manual review: Reverts referenced in bugdroid comments after merge request.
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), gkihumba@(ChromeOS), Abdul Syed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Can this be tested in M60 to make sure we are back to what we used to be before  and searching on history does not consistently crash the app anymore?
App crashes on performing search in history.
Retested the issue on 59.0.3071.30 beta and 60.0.3088.0 canary tested on iPhone5(iOS 9.3.5).

App is still crashing as of 60.0.3088.0 build. We will wait till next canary and try to verify in there.
Status: Verified (was: Fixed)
Looks good on M60.0.3089.0 canary
No crashes when searching History.
Verified on iPhone7, iPad Pro.
iOS: 10.3.2, 10.1.1
Labels: -Hotlist-Merge-Review -Merge-Request-58 -FoundIn-M-59 -Merge-Review-59 merge-ap Merge-Approved-59 Merge-Approved-58
Project Member

Comment 31 by bugdroid1@chromium.org, May 4 2017

Labels: -merge-approved-58 merge-merged-3029
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ec201b43f4c8b52349267a54f249b846eab72db2

commit ec201b43f4c8b52349267a54f249b846eab72db2
Author: sczs <sczs@chromium.org>
Date: Thu May 04 17:44:28 2017

[ios] Revert of History didReceiveQueryResult performBatchUpdates.

This reverts: https://codereview.chromium.org/2800473004/
Since it increased the crash rate as in  bug 716349 .

BUG= 716349 

Review-Url: https://codereview.chromium.org/2855883002
Cr-Commit-Position: refs/heads/master@{#468856}
(cherry picked from commit 4575e0c18c3fea30e4f59ccc4c00fca6e6014698)

Review-Url: https://codereview.chromium.org/2862653003 .
Cr-Commit-Position: refs/branch-heads/3029@{#796}
Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471}

[modify] https://crrev.com/ec201b43f4c8b52349267a54f249b846eab72db2/ios/chrome/browser/ui/history/history_collection_view_controller.mm

Project Member

Comment 32 by bugdroid1@chromium.org, May 4 2017

Labels: -merge-approved-59 merge-merged-3071
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c380e4fa56ed29a200ff6fcdf34a67e4477cd3d6

commit c380e4fa56ed29a200ff6fcdf34a67e4477cd3d6
Author: sczs <sczs@chromium.org>
Date: Thu May 04 17:59:45 2017

[ios] Revert of History didReceiveQueryResult performBatchUpdates.

This reverts: https://codereview.chromium.org/2800473004/
Since it increased the crash rate as in  bug 716349 .

BUG= 716349 

Review-Url: https://codereview.chromium.org/2855883002
Cr-Commit-Position: refs/heads/master@{#468856}
(cherry picked from commit 4575e0c18c3fea30e4f59ccc4c00fca6e6014698)

Review-Url: https://codereview.chromium.org/2860893005 .
Cr-Commit-Position: refs/branch-heads/3071@{#405}
Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641}

[modify] https://crrev.com/c380e4fa56ed29a200ff6fcdf34a67e4477cd3d6/ios/chrome/browser/ui/history/history_collection_view_controller.mm

Comment 33 by sczs@chromium.org, May 5 2017

Issue 718115 has been merged into this issue.
Sergio, is it possible to an EG test to prevent this type of regression?
 Issue 719184  has been merged into this issue.
Verified in 59.0.3071.50 beta, iPhone 6 plus iOS 10.2.1, iPad mini 10.3 beta 7

No crashes when searching History.
Verified the issue on the build 58.0.3029.113 dev tested on iPhone7+(iOS 10.3.1).
App doesn't crashes on performing search in history
 Issue 721683  has been merged into this issue.
Hi Sergio,
Have you already started a postmortem for this?
Thanks,
Hi Sergio,
Any news on the postmortem?
Thanks,

Comment 42 by sczs@chromium.org, May 25 2017

Hi Lindsay!

Yes, I'm just waiting too se if someone else wants to add something to it, if not I think I'll share today. PTAL here: go/chromepostmortem449


Thank you!

Sign in to add a comment