The following error is randomly occurring with Duplicati 2.4.1.0 - 2.4.1.0_stable_2026-10-29 on Windows 11, which is up to date with maintenance. The error occurs generally during startup, but can happen during a backup:
Thanks for the report. That dialog is not one Duplicati produces; it is the Windows “hard error” box for an access violation (0xC0000005) in native code inside the TrayIcon process. Because it happens outside the .NET runtime, nothing about it ends up in Duplicati’s logs, so I need a bit more from your machine to narrow it down.
Could you post the following?
-
The Event Viewer entries for the crash. Open Event Viewer, go to Windows Logs → Application, and look for entries from “Application Error” (and possibly “.NET Runtime”) with Duplicati.GUI.TrayIcon.exe at the time of the dialog. The “Faulting module name” and “Fault offset” lines are the important ones.
-
Whether it still happens if the tray icon does not host the server. On Windows the tray icon runs the whole backup engine in the same process, so the crash could be in the engine, in the tray icon layer, or in a DLL another program injects. To separate those, start the server on its own, then run the tray icon against it:
"C:\Program Files\Duplicati 2\Duplicati.Server.exe"
"C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe" --no-hosted-server --hosturl=http://localhost:8200
If the dialog then names Duplicati.Server.exe, the problem is in the engine; if it still names TrayIcon.exe, it is in the tray layer.
- Whether disabling any other screen-capture, overlay or security tools that hook into running programs for a while changes anything. Those tools load their own DLLs into other processes, and that is a common source of this exact dialog.
With the faulting module name I can dig a bit further to see what causes it.
Log Name: Application
Source: .NET Runtime
Date: 4/11/2026 5:14:09 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DESKTOP-GD33L11
Description:
Application: Duplicati.GUI.TrayIcon.exe
CoreCLR Version: 10.0.125.57005
.NET Version: 10.0.1
Description: The process was terminated due to an unhandled exception.
Stack:
at SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_step(SQLitePCL.sqlite3_stmt)
at SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_step(SQLitePCL.sqlite3_stmt)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(System.Data.CommandBehavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.ExtensionMethods+d__33.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.ExtensionMethods+d__33, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__33 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Database.ExtensionMethods+<ExecuteScalarInt64Async>d__33, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<ExecuteScalarInt64Async>d__33 ByRef) at Duplicati.Library.Main.Database.ExtensionMethods.ExecuteScalarInt64Async(Microsoft.Data.Sqlite.SqliteCommand, Boolean, System.String, System.Collections.Generic.Dictionary2<System.String,System.Object>, Int64, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.ExtensionMethods.ExecuteScalarInt64Async(Microsoft.Data.Sqlite.SqliteCommand, Int64, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.Local.LocalDatabase+d__86.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__86, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__86 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__86, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__86 ByRef)
at Duplicati.Library.Main.Database.Local.LocalDatabase.VerifyConsistencyInnerAsync(Int64, Int64, Boolean, Boolean, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.Local.LocalDatabase+d__84.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__84, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__84 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__84, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__84 ByRef)
at Duplicati.Library.Main.Database.Local.LocalDatabase.VerifyConsistencyAsync(Int64, Int64, Boolean, System.Threading.CancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler+d__14.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Operation.BackupHandler+d__14, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__14 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Operation.BackupHandler+<PreBackupVerifyAsync>d__14, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<PreBackupVerifyAsync>d__14 ByRef) at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerifyAsync(Duplicati.Library.Main.Options, Duplicati.Library.Main.BackupResults, Duplicati.Library.Main.IBackendManager) at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__22 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__22 ByRef) at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(System.String[], Duplicati.Library.Main.IBackendManager, Duplicati.Library.Utility.IFilter) at Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<<BackupAsync>b__27_0>d ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<<BackupAsync>b__27_0>d ByRef) at Duplicati.Library.Main.Controller+<>c.<BackupAsync>b__27_0(RunActionData2<Duplicati.Library.Main.BackupResults,<>f__AnonymousType21<System.DateTime>>) at Duplicati.Library.Main.Controller+<RunActionAsync>d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunActionAsync>d__622<System.__Canon,System.__Canon> ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Controller+<RunActionAsync>d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__622<System.__Canon,System.__Canon> ByRef) at Duplicati.Library.Main.Controller.RunActionAsync[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon, System.String[], Duplicati.Library.Utility.IFilter, System.__Canon, System.Func2<RunActionData2<System.__Canon,System.__Canon>,System.Threading.Tasks.Task>) at Duplicati.Library.Main.Controller+<BackupAsync>d__27.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+<BackupAsync>d__27, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<BackupAsync>d__27 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Controller+d__27, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__27 ByRef)
at Duplicati.Library.Main.Controller.BackupAsync(System.String, Duplicati.Library.Utility.IFilter)
at Duplicati.Server.Runner+d__26.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Server.Runner+d__26, Duplicati.Library.RestAPI, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__26 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Server.Runner+<RunInternalAsync>d__26, Duplicati.Library.RestAPI, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunInternalAsync>d__26 ByRef) at Duplicati.Server.Runner.RunInternalAsync(Duplicati.Server.Database.Connection, Duplicati.Server.EventPollNotify, Duplicati.Library.RestAPI.INotificationUpdateService, Duplicati.WebserverCore.Abstractions.IProgressStateProviderService, Duplicati.WebserverCore.Abstractions.IApplicationSettings, IRunnerData, Boolean) at Duplicati.Server.Runner.RunAsync(Duplicati.Server.Database.Connection, Duplicati.Server.EventPollNotify, Duplicati.Library.RestAPI.INotificationUpdateService, Duplicati.WebserverCore.Abstractions.IProgressStateProviderService, Duplicati.WebserverCore.Abstractions.IApplicationSettings, Duplicati.Server.Serialization.Interface.IQueuedTask, Boolean) at Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24, Duplicati.WebserverCore, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunTaskAsync>d__24 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24, Duplicati.WebserverCore, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunTaskAsync>d__24 ByRef) at Duplicati.WebserverCore.Services.QueueRunnerService.RunTaskAsync(Duplicati.Server.Serialization.Interface.IQueuedTask) at Duplicati.WebserverCore.Services.QueueRunnerService+<>c__DisplayClass23_0.<StartNextTask>b__0() at System.Threading.Tasks.Task1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
Event Xml:
1026
0
2
0
0
0x80000000000000
132468
Application
DESKTOP-GD33L11
Application: Duplicati.GUI.TrayIcon.exe
CoreCLR Version: 10.0.125.57005
.NET Version: 10.0.1
Description: The process was terminated due to an unhandled exception.
Stack:
at SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_step(SQLitePCL.sqlite3_stmt)
at SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_step(SQLitePCL.sqlite3_stmt)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(System.Data.CommandBehavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.ExtensionMethods+d__33.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.ExtensionMethods+d__33, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__33 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Database.ExtensionMethods+<ExecuteScalarInt64Async>d__33, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<ExecuteScalarInt64Async>d__33 ByRef) at Duplicati.Library.Main.Database.ExtensionMethods.ExecuteScalarInt64Async(Microsoft.Data.Sqlite.SqliteCommand, Boolean, System.String, System.Collections.Generic.Dictionary2<System.String,System.Object>, Int64, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.ExtensionMethods.ExecuteScalarInt64Async(Microsoft.Data.Sqlite.SqliteCommand, Int64, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.Local.LocalDatabase+d__86.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__86, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__86 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__86, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__86 ByRef)
at Duplicati.Library.Main.Database.Local.LocalDatabase.VerifyConsistencyInnerAsync(Int64, Int64, Boolean, Boolean, System.Threading.CancellationToken)
at Duplicati.Library.Main.Database.Local.LocalDatabase+d__84.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__84, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__84 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Database.Local.LocalDatabase+d__84, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__84 ByRef)
at Duplicati.Library.Main.Database.Local.LocalDatabase.VerifyConsistencyAsync(Int64, Int64, Boolean, System.Threading.CancellationToken)
at Duplicati.Library.Main.Operation.BackupHandler+d__14.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Operation.BackupHandler+d__14, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__14 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Operation.BackupHandler+<PreBackupVerifyAsync>d__14, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<PreBackupVerifyAsync>d__14 ByRef) at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerifyAsync(Duplicati.Library.Main.Options, Duplicati.Library.Main.BackupResults, Duplicati.Library.Main.IBackendManager) at Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__22 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Operation.BackupHandler+<RunAsync>d__22, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__22 ByRef) at Duplicati.Library.Main.Operation.BackupHandler.RunAsync(System.String[], Duplicati.Library.Main.IBackendManager, Duplicati.Library.Utility.IFilter) at Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<<BackupAsync>b__27_0>d ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.Library.Main.Controller+<>c+<<BackupAsync>b__27_0>d, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<<BackupAsync>b__27_0>d ByRef) at Duplicati.Library.Main.Controller+<>c.<BackupAsync>b__27_0(RunActionData2<Duplicati.Library.Main.BackupResults,<>f__AnonymousType21<System.DateTime>>) at Duplicati.Library.Main.Controller+<RunActionAsync>d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunActionAsync>d__622<System.__Canon,System.__Canon> ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Controller+<RunActionAsync>d__622[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__622<System.__Canon,System.__Canon> ByRef) at Duplicati.Library.Main.Controller.RunActionAsync[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon, System.String[], Duplicati.Library.Utility.IFilter, System.__Canon, System.Func2<RunActionData2<System.__Canon,System.__Canon>,System.Threading.Tasks.Task>) at Duplicati.Library.Main.Controller+<BackupAsync>d__27.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Library.Main.Controller+<BackupAsync>d__27, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<BackupAsync>d__27 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Library.Main.Controller+d__27, Duplicati.Library.Main, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__27 ByRef)
at Duplicati.Library.Main.Controller.BackupAsync(System.String, Duplicati.Library.Utility.IFilter)
at Duplicati.Server.Runner+d__26.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.Server.Runner+d__26, Duplicati.Library.RestAPI, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](d__26 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Duplicati.Server.Runner+<RunInternalAsync>d__26, Duplicati.Library.RestAPI, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunInternalAsync>d__26 ByRef) at Duplicati.Server.Runner.RunInternalAsync(Duplicati.Server.Database.Connection, Duplicati.Server.EventPollNotify, Duplicati.Library.RestAPI.INotificationUpdateService, Duplicati.WebserverCore.Abstractions.IProgressStateProviderService, Duplicati.WebserverCore.Abstractions.IApplicationSettings, IRunnerData, Boolean) at Duplicati.Server.Runner.RunAsync(Duplicati.Server.Database.Connection, Duplicati.Server.EventPollNotify, Duplicati.Library.RestAPI.INotificationUpdateService, Duplicati.WebserverCore.Abstractions.IProgressStateProviderService, Duplicati.WebserverCore.Abstractions.IApplicationSettings, Duplicati.Server.Serialization.Interface.IQueuedTask, Boolean) at Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24, Duplicati.WebserverCore, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunTaskAsync>d__24 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Duplicati.WebserverCore.Services.QueueRunnerService+<RunTaskAsync>d__24, Duplicati.WebserverCore, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null]](<RunTaskAsync>d__24 ByRef) at Duplicati.WebserverCore.Services.QueueRunnerService.RunTaskAsync(Duplicati.Server.Serialization.Interface.IQueuedTask) at Duplicati.WebserverCore.Services.QueueRunnerService+<>c__DisplayClass23_0.<StartNextTask>b__0() at System.Threading.Tasks.Task1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
Thanks, that is exactly what was needed. The stack shows the crash happens inside the native SQLite library (e_sqlite3.dll), while Duplicati runs the database consistency check at the start of a backup. So the tray icon is only the host process here; the problem is in SQLite itself or the database.
That fits with what changed in 2.4.1.0: the native SQLite library was updated from 3.53.4 to 3.54.0. SQLite 3.54.0 turned out to have a number of bugs and 3.54.1 was released a week later with fixes, and 3.54.0 also changed how SQLite’s internal locking works on Windows specifically. A crash on a plain read query on Windows right after that update points at the library.
Two things would help confirm it:
-
Try the 3.54.1 build of the library. Stop Duplicati, then in the install folder (usually C:\Program Files\Duplicati 2) rename e_sqlite3.dll to e_sqlite3.dll.bak. Download the official package from NuGet Gallery | SQLite 3.54.1 (the “Download package” link gives a .nupkg, which is a zip file), and copy runtimes\win-x64\native\e_sqlite3.dll from it into the install folder. If your machine is an ARM64 PC, use the win-arm64 folder instead. Then start Duplicati again and see whether the crash comes back.
-
Rule out a damaged database, since SQLite can also crash on a corrupt file. Open the job’s database (the path is shown under the job’s Database menu) with DB Browser for SQLite or the sqlite3 command line tool and run:
PRAGMA integrity_check;
It should answer “ok”.
Could you also say whether this is an x64 or ARM64 machine, and whether the crash happens on every backup or only now and then?
I will update the bundled SQLite to 3.54.1 in the next canary/stable release regardless.
