~emersion/goguma#121: 
DatabaseException(UNIQUE constraint failed: Buffer.name, Buffer.network (code 2067 SQLITE_CONSTRAINT_UNIQUE))

Clicking a notification sometimes triggers this error. Closing and re-opening Goguma fixes it.

Seems to happen because our in-memory state goes out-of-sync with our DB state.

SqfliteDatabaseException:DatabaseException(UNIQUE constraint failed: Buffer.name, Buffer.network (code 2067 SQLITE_CONSTRAINT_UNIQUE)) sql 'INSERT INTO Buffer (id, name, network, last_read_time, pinned, muted, topic, realname, archived) VALUES (NULL, ?, ?, NULL, ?, ?, NULL, NULL, ?)' args [XXX, 5, 0, 0, 0]
File "exception_impl.dart", line 11, in wrapDatabaseException
?
File "database_mixin.dart", line 463, in SqfliteDatabaseMixin.txnRawInsert.<fn>
?
File "basic_lock.dart", line 33, in BasicLock.synchronized
?
File "database_mixin.dart", line 392, in SqfliteDatabaseMixin.txnSynchronized
?
File "database.dart", line 585, in DB.storeBuffer
?
File "buffer.dart", line 42, in BufferPage.open
Status
REPORTED
Submitter
~emersion
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
1 year, 4 months ago
Labels
bug