duplicati / duplicati

Store securely encrypted backups in the cloud!
Other
10.57k stars 879 forks source link

Tray icon disappears when backup starts #5224

Open DeflateAwning opened 1 month ago

DeflateAwning commented 1 month ago

Environment info

Description

As of the latest update, when a backup starts after unpausing the paused-on-start state, the tray icon disappears. It also appears that they backups do not actually start/work, also.

Steps to reproduce

  1. Start duplicati such that it's paused.
  2. Unpause it via the tray icon.
  3. Tray icon disappears.
Jojo-1000 commented 1 month ago

This is suspected to be a bug with the new Tray icon on Mini-Windows platforms. It also happens for me on Linux, however I am unable to get any logs from the library.

The backup process and web UI still work, even if the icon isn't shown.

Jojo-1000 commented 3 weeks ago

I finally managed to get what I think should be the exception that causes this:

``` stopped, reason: exception received, name: System.Net.Sockets.SocketException, exception: Connection reset by peer, stage: throw, category: clr, thread id: 5569, stopped-threads: all, frame={System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException()} #0: 0x00007f02cce93f76 System.Net.Sockets.dll` System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException() #1: 0x00007f02cce93c7e System.Net.Sockets.dll` System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult() #2: 0x00007f02cfad852c Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__11.MoveNext() #3: 0x00007f02cfadb501 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__11>.ExecutionContextCallback() #4: 0x00007f02d0634d9a System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunInternal() #5: 0x00007f02cfadade3 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__11>.MoveNext() #6: 0x00007f02cfadacda System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__11>.MoveNext() #7: 0x00007f02cebdf5d5 System.Private.CoreLib.dll` System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore.SetResult() #8: 0x00007f02cce96826 System.Net.Sockets.dll` System.Net.Sockets.SocketAsyncEventArgs.TransferCompletionCallbackCore() #9: 0x00007f02d0668cc2 System.Net.Sockets.dll` System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute() #10: 0x00007f02d0666c3d System.Private.CoreLib.dll` System.Threading.ThreadPoolWorkQueue.Dispatch() #11: 0x00007f02cba730e6 System.Private.CoreLib.dll` System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ``` followed by ``` stopped, reason: exception received, name: System.Net.Sockets.SocketException, exception: Broken pipe, stage: throw, category: clr, thread id: 5584, stopped-threads: all, frame={System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()} #0: 0x00007f02cec017ba System.Private.CoreLib.dll` System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() #1: 0x00007f02cbac260f System.Private.CoreLib.dll` System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess() #2: 0x00007f02cbac2521 System.Private.CoreLib.dll` System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification() #3: 0x00007f02d066eb9b System.Private.CoreLib.dll` System.Threading.Tasks.ValueTask.get_Result() #4: 0x00007f02d066eaff System.Private.CoreLib.dll` System.Runtime.CompilerServices.ValueTaskAwaiter.GetResult() #5: 0x00007f02d066e851 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.SocketExtensions.d__3.MoveNext() #6: 0x00007f02d066e5d4 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__3>() #7: 0x00007f02d066e52c System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__3>() #8: 0x00007f02d066e4d3 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.SocketExtensions.SendAsync() #9: 0x00007f02d066e3fc Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.SocketExtensions.SendAsync() #10: 0x00007f02d0670a0b Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__12.MoveNext() #11: 0x00007f02d0675551 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.ExecutionContextCallback() #12: 0x00007f02d0634d9a System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunInternal() #13: 0x00007f02d067546b System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.MoveNext() #14: 0x00007f02d067536a System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.MoveNext() #15: 0x00007f02d06751c0 System.Threading.Channels.dll` System.Threading.Channels.AsyncOperation.SignalCompletion() #16: 0x00007f02d0674aab System.Threading.Channels.dll` System.Threading.Channels.SingleConsumerUnboundedChannel.UnboundedChannelWriter.TryWrite() #17: 0x00007f02d06744b2 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__21.MoveNext() #18: 0x00007f02d0674324 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__21>() #19: 0x00007f02d067427c System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__21>() #20: 0x00007f02d06741e0 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.TrySendMessageAsync() #21: 0x00007f02d03a87ae Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.d__51.MoveNext() #22: 0x00007f02d03a8684 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__51>() #23: 0x00007f02d03a85dc System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Startd__51>() #24: 0x00007f02d03a859b Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.SendMessage() #25: 0x00007f02d03a8366 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.Connection.TrySendMessage() #26: 0x00007f02d03cdc36 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MethodContext.Reply() #27: 0x00007f02d03c39d8 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.<>c__DisplayClass21_0.g__Reply|13() #28: 0x00007f02d03c254b Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.d__21.MoveNext() #29: 0x00007f02d03c1525 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__21>() #30: 0x00007f02d03c147c System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__21>() #31: 0x00007f02d03c1422 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.HandleMethodAsync() #32: 0x00007f02cfaebd8f Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.d__33.MoveNext() #33: 0x00007f02cfaeb77d System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__33>() #34: 0x00007f02cfaeb6dc System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Startd__33>() #35: 0x00007f02cfaeb69c Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.HandleMessages() #36: 0x00007f02cfaeb5fe Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.<>c.b__31_0() #37: 0x00007f02cfae1d73 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__13.MoveNext() #38: 0x00007f02cfae8543 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecutionContextCallback() #39: 0x00007f02cba62f62 System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop() #40: 0x00007f02cfae8286 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.MoveNext() #41: 0x00007f02cfae7f30 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecuteFromThreadPool() #42: 0x00007f02d0666c2a System.Private.CoreLib.dll` System.Threading.ThreadPoolWorkQueue.Dispatch() #43: 0x00007f02cba730e6 System.Private.CoreLib.dll` System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() stopped, reason: exception received, name: System.Net.Sockets.SocketException, exception: Broken pipe, stage: throw, category: clr, thread id: 5584, stopped-threads: all, frame={System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()} #0: 0x00007f02cec017ba System.Private.CoreLib.dll` System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() #1: 0x00007f02cbac260f System.Private.CoreLib.dll` System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess() #2: 0x00007f02cbac2521 System.Private.CoreLib.dll` System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification() #3: 0x00007f02d0670b28 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__12.MoveNext() #4: 0x00007f02d0675551 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.ExecutionContextCallback() #5: 0x00007f02d0634d9a System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunInternal() #6: 0x00007f02d067546b System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.MoveNext() #7: 0x00007f02d067536a System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__12>.MoveNext() #8: 0x00007f02d06751c0 System.Threading.Channels.dll` System.Threading.Channels.AsyncOperation.SignalCompletion() #9: 0x00007f02d0674aab System.Threading.Channels.dll` System.Threading.Channels.SingleConsumerUnboundedChannel.UnboundedChannelWriter.TryWrite() #10: 0x00007f02d06744b2 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__21.MoveNext() #11: 0x00007f02d0674324 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__21>() #12: 0x00007f02d067427c System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__21>() #13: 0x00007f02d06741e0 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.TrySendMessageAsync() #14: 0x00007f02d03a87ae Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.d__51.MoveNext() #15: 0x00007f02d03a8684 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__51>() #16: 0x00007f02d03a85dc System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Startd__51>() #17: 0x00007f02d03a859b Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.SendMessage() #18: 0x00007f02d03a8366 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.Connection.TrySendMessage() #19: 0x00007f02d03cdc36 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MethodContext.Reply() #20: 0x00007f02d03c39d8 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.<>c__DisplayClass21_0.g__Reply|13() #21: 0x00007f02d03c254b Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.d__21.MoveNext() #22: 0x00007f02d03c1525 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__21>() #23: 0x00007f02d03c147c System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__21>() #24: 0x00007f02d03c1422 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.HandleMethodAsync() #25: 0x00007f02cfaebd8f Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.d__33.MoveNext() #26: 0x00007f02cfaeb77d System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__33>() #27: 0x00007f02cfaeb6dc System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Startd__33>() #28: 0x00007f02cfaeb69c Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.HandleMessages() #29: 0x00007f02cfaeb5fe Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.<>c.b__31_0() #30: 0x00007f02cfae1d73 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__13.MoveNext() #31: 0x00007f02cfae8543 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecutionContextCallback() #32: 0x00007f02cba62f62 System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop() #33: 0x00007f02cfae8286 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.MoveNext() #34: 0x00007f02cfae7f30 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecuteFromThreadPool() #35: 0x00007f02d0666c2a System.Private.CoreLib.dll` System.Threading.ThreadPoolWorkQueue.Dispatch() #36: 0x00007f02cba730e6 System.Private.CoreLib.dll` System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() stopped, reason: exception received, name: System.Net.Sockets.SocketException, exception: Connection reset by peer, stage: throw, category: clr, thread id: 5584, stopped-threads: all, frame={System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()} #0: 0x00007f02cec017ba System.Private.CoreLib.dll` System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() #1: 0x00007f02cff28101 System.IO.Pipelines.dll` System.IO.Pipelines.Pipe.GetReadResult() #2: 0x00007f02cff278ae System.IO.Pipelines.dll` System.IO.Pipelines.Pipe.ReadAsync() #3: 0x00007f02cfae1b85 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__13.MoveNext() #4: 0x00007f02cfae8543 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecutionContextCallback() #5: 0x00007f02cba62f62 System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop() #6: 0x00007f02cfae8286 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.MoveNext() #7: 0x00007f02cfae7f30 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecuteFromThreadPool() #8: 0x00007f02d0666c2a System.Private.CoreLib.dll` System.Threading.ThreadPoolWorkQueue.Dispatch() #9: 0x00007f02cba730e6 System.Private.CoreLib.dll` System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ```

Sometimes there is this error:

``` stopped, reason: exception received, name: System.InvalidOperationException, exception: Cannot advance before acquiring memory., stage: throw, category: clr, thread id: 4533, stopped-threads: all, frame={Nerdbank.Streams.Sequence.Advance()} #0: 0x00007f9b6e77c60c Tmds.DBus.Protocol.dll` Nerdbank.Streams.Sequence.Advance() #1: 0x00007f9b6e7b289e Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageWriter.Flush() #2: 0x00007f9b6e7b5528 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageWriter.get_Writer() #3: 0x00007f9b6e7b5ac6 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageWriter.WriteStringCore() #4: 0x00007f9b6e7b6300 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageWriter.WriteString() #5: 0x00007f9b6e50befb Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.WriterExtensions.WriteDictionary_aesv() #6: 0x00007f9b6e503c62 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.<>c__DisplayClass21_0.g__Reply|13() #7: 0x00007f9b6e501bcb Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.d__21.MoveNext() #8: 0x00007f9b6e5004c5 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__21>() #9: 0x00007f9b6e5002fc System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.Startd__21>() #10: 0x00007f9b6e500262 Avalonia.FreeDesktop.dll` Tmds.DBus.SourceGenerator.OrgKdeStatusNotifierItem.HandleMethodAsync() #11: 0x00007f9b6dd6f5af Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.d__33.MoveNext() #12: 0x00007f9b6dd6ea6d System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncMethodBuilderCore.Startd__33>() #13: 0x00007f9b6dd6e8ac System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Startd__33>() #14: 0x00007f9b6dd6e82c Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.HandleMessages() #15: 0x00007f9b6dd6e74e Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.DBusConnection.<>c.b__31_0() #16: 0x00007f9b6dd5c3e3 Tmds.DBus.Protocol.dll` Tmds.DBus.Protocol.MessageStream.d__13.MoveNext() #17: 0x00007f9b6dd68e33 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecutionContextCallback() #18: 0x00007f9b6e7c7351 System.Private.CoreLib.dll` System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop() #19: 0x00007f9b6dd683e6 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.MoveNext() #20: 0x00007f9b6dd681d0 System.Private.CoreLib.dll` System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AsyncStateMachineBoxd__13>.ExecuteFromThreadPool() #21: 0x00007f9b6e7b1578 System.Private.CoreLib.dll` System.Threading.ThreadPoolWorkQueue.Dispatch() #22: 0x00007f9b698730e6 System.Private.CoreLib.dll` System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ```

This happens immediately when I press Pause on the tray icon, every single time. The icon disappears as soon as the debugger interrupts on the first exception throw. I hope this helps somehow.

Jojo-1000 commented 3 weeks ago

This is probably an Avalonia problem and not caused by Duplicati:

https://github.com/AvaloniaUI/Avalonia/issues/13130

The example project linked there has the same problem, although it happens quite rarely: Icon disappears, but the app still continues as if it was still there.

DeflateAwning commented 3 weeks ago

While that's possible, I also want to point out that I was experiencing a crash with this release (reported in #5226). Possible that there were multiple issues.