Bug 208144 - Assertion failed: currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)
Summary: Assertion failed: currentSchema == createV1ObjectStoreInfoSchema(objectStoreI...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sihui Liu
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-24 10:43 PST by Sihui Liu
Modified: 2020-02-25 15:28 PST (History)
9 users (show)

See Also:


Attachments
Patch (2.31 KB, patch)
2020-02-24 10:51 PST, Sihui Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sihui Liu 2020-02-24 10:43:47 PST
Replace the release assertion to release logging to gather information about the bug. Crashing network process for failing to open a database seems too aggressive.
Comment 1 Sihui Liu 2020-02-24 10:44:20 PST
<rdar://problem/59687897>
Comment 2 Sihui Liu 2020-02-24 10:51:14 PST
Created attachment 391557 [details]
Patch
Comment 3 Ryosuke Niwa 2020-02-24 19:11:54 PST
Comment on attachment 391557 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391557&action=review

> Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {

Don't we also want to log objectStoreInfoTableName and objectStoreInfoTableNameAlternate?
Comment 4 Sihui Liu 2020-02-25 08:53:36 PST
(In reply to Ryosuke Niwa from comment #3)
> Comment on attachment 391557 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=391557&action=review
> 
> > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> > -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> > +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {
> 
> Don't we also want to log objectStoreInfoTableName and
> objectStoreInfoTableNameAlternate?

objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants.
Comment 5 WebKit Commit Bot 2020-02-25 09:37:58 PST
Comment on attachment 391557 [details]
Patch

Clearing flags on attachment: 391557

Committed r257361: <https://trac.webkit.org/changeset/257361>
Comment 6 WebKit Commit Bot 2020-02-25 09:38:00 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Ryosuke Niwa 2020-02-25 15:28:33 PST
(In reply to Sihui Liu from comment #4)
> (In reply to Ryosuke Niwa from comment #3)
> > Comment on attachment 391557 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=391557&action=review
> > 
> > > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> > > -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> > > +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {
> > 
> > Don't we also want to log objectStoreInfoTableName and
> > objectStoreInfoTableNameAlternate?
> 
> objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants.

Ah, ok.