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

Issue 657038 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

DCHECK in NTPSnippetsService::GetCategoryStatus: unregistered category

Project Member Reported by dgn@chromium.org, Oct 18 2016

Issue description

[FATAL:ntp_snippets_service.cc(308)] Check failed: base::ContainsKey(categories_, category)

Repro:

1. Load the NTP with multiple sections.
2. Ensure you have articles and  debug sections
3. Sign in (or sign out) => Crash

NTPSnippetsService::NukeAllSnippets() remove all the categories, but for some reason ContentSuggestionsService::GetCategories returns more categories than expected (I can log [2, 10001, 10002]).

When the front end queries for the status of 10002, we get a crash because the snippets service does not have this category anymore.


 

Comment 1 by dgn@chromium.org, Oct 18 2016

Labels: zine-client-v1

Comment 2 by treib@chromium.org, Oct 20 2016

Cc: -treib@chromium.org ntp-dev+bugs@chromium.org
Owner: treib@chromium.org
Status: Started (was: Available)
Huh, I had to explicitly refresh the NTP to trigger this - that should happen automatically on sign-out. Yet another bug?

Comment 3 by dgn@chromium.org, Oct 20 2016

We currently only refresh the category for which we received a sign out status change, not the whole NTP. I don't really remember the rationale for that. I think something like "bookmarks are not cleared when you sign out". But even if we refresh the bookmark section should follow the bookmark manager behaviour so... bug maybe yes.

Comment 4 by treib@chromium.org, Oct 20 2016

Labels: M-55
Found it.
Bad news: It's an actual bug, and it's already in M55.
Good news: As far as I can tell, it shouldn't be a big issue - at worst, the supposedly nuked category might show up again (empty).

Comment 6 by treib@chromium.org, Oct 20 2016

Status: Fixed (was: Started)
Re comment 2/3: Seems to be a different bug; I filed issue 657936.

Comment 7 by dgn@chromium.org, Oct 24 2016

Cc: dgn@chromium.org
 Issue 655972  has been merged into this issue.

Sign in to add a comment