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

Issue 662179 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

DCHECK hit when opening chrome while signed in with a work account

Project Member Reported by dgn@chromium.org, Nov 3 2016

Issue description

[FATAL:ntp_snippets_service.cc(1080)] Check failed: IsCategoryStatusAvailable(content.status)

ntp_snippets::NTPSnippetsService::NotifyNewSuggestions(ntp_snippets::Category)  ntp_snippets_service.cc:1080
ntp_snippets::NTPSnippetsService::FinishInitialization()                        ntp_snippets_service.cc:994
ntp_snippets::NTPSnippetsService::OnDatabaseLoaded()                            ntp_snippets_service.cc:640


Repro:
- Use a DEBUG build
- Sign out, or sign in with a regular account
- Obtain snippets
- Sign in with work account
- Kill and reopen Chrome

=> Crash

I didn't look too much into it, but I think what happens is: We disable Articles for work accounts, but we have some remaining in the database, and when trying to add them to an explicitly disabled category we hit the DCHECK.

 
tombstone.txt
711 KB View Download

Comment 1 by fi...@chromium.org, Nov 4 2016

Labels: M-56 zine-triaged
I had a quick look and it seems the CHECK has been in there before.
I believe this is not a real problem for opt-builds but we need to verify.


@Marc: A quick fix for the particular problem (which should be also easy to merge), would simply to not notify about new suggestions for categories which are not available.

For the proper fix, I'd like to clean up the logic inside NTPSnippetsService::OnFetchFinished() more and also propagate errors from the snippets fetcher so that we know how to handle empty results.
With that, we can better separate category handling from suggestions handling and could simply drop suggestions from disabled categories.

Comment 3 by treib@chromium.org, Nov 14 2016

Labels: zine-16-11-14
Status: Started (was: Assigned)

Comment 5 by treib@chromium.org, Nov 15 2016

Status: Fixed (was: Started)

Sign in to add a comment