Open in TheBrain

TheBrain Log file from Earl #96771

https://thebrain.zendesk.com/agent/tickets/96771

Hello Earl,

Thank you for reaching out and for providing the context on what led up to the crash, we appreciate you taking the time to share those details.

I’ll review the log file with our team and follow up with you shortly. If we need any additional information or once we’ve identified a solution, I’ll be sure to let you know.

Thank you for your patience in the meantime!

Best regards,

John


MESSAGE TO CHASE:


Hello Chase!

This points to a meta.db reset. (SQLite Error 19: 'UNIQUE constraint failed: ClientSyncJobs.Id'.)

Correct? Waiting for confirmation 🙂

Thank you!

~ Yahya



Unhandled exception

TheBrain 14.0.102.0 Windows - Microsoft Windows 11 Pro

2025-04-09 13:33:22

Origin: XWT Terminal: False

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.

---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: ClientSyncJobs.Id'.

at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)

at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)

at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)

at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)

--- End of inner exception stack trace ---

at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)

at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList1 entriesToSave)

at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess)

at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)

at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)

at TheBrain.Client.Data.ClientDataConnection.SaveChanges() in C:\Build\20241103_002842\TheBrainNetCore\src\TheBrain.Client\Data\ClientDataConnection.cs:line 162

at TheBrain.Client.Sync.ClientSyncJobDataStore.TryInsertNew(ExtendedBrainInfo brain, SyncJobType assumedJobType, Boolean isAutoSync, Boolean isLightSync, ClientSyncJob& job) in C:\Build\20241103_002842\TheBrainNetCore\src\TheBrain.Client\Sync\ClientSyncJobDataStore.cs:line 170

at TheBrain.Client.Sync.ClientSyncOrchestrator.RequestSync(ExtendedBrainInfo brain, Boolean isAutoSync, Boolean isLightSync, Nullable`1 openBrainToThoughtAfterSync) in C:\Build\20241103_002842\TheBrainNetCore\src\TheBrain.Client\Sync\ClientSyncOrchestrator.cs:line 326

at TheBrain.Desktop.Commands.SyncCommand.Sync(ExtendedBrainInfo brain) in C:\Build\20241103_002842\TheBrainDesktop\Source\Commands\Brain\SyncCommand.cs:line 57

at TheBrain.Desktop.Commands.SyncCommand.Execute(CommandInfo info) in C:\Build\20241103_002842\TheBrainDesktop\Source\Commands\Brain\SyncCommand.cs:line 13

at TheBrain.Desktop.Commands.CommandBase.VerifyAndExecute(CommandInfo info) in C:\Build\20241103_002842\TheBrainDesktop\Source\CommandManager\CommandBase.cs:line 172

at TheBrain.Desktop.ToolbarButtonInfo.<>cDisplayClass22_1.<.ctor>b0(Object sender, EventArgs e) in C:\Build\20241103_002842\TheBrainDesktop\Source\Controls\ToolbarButtonInfo.cs:line 174

at TheBrain.Desktop.ToolbarImageButton.OnButtonReleased(ButtonEventArgs args) in C:\Build\20241103_002842\TheBrainDesktop\Source\Controls\ToolbarImageButton.cs:line 199

at Xwt.Widget.WidgetBackendHost.Xwt.Backends.IWidgetEventSink.OnButtonReleased(ButtonEventArgs args) in C:\Build\20241103_002842\XWT\Xwt\Xwt\Widget.cs:line 222

at Xwt.WPFBackend.WidgetBackend.<>cDisplayClass104_0.b0() in C:\Build\20241103_002842\XWT\Xwt.WPF\Xwt.WPFBackend\WidgetBackend.cs:line 740

at Xwt.Toolkit.Invoke(Action a) in C:\Build\20241103_002842\XWT\Xwt\Xwt\Toolkit.cs:line 490