Skip to content

App crashes silently on startup when internet is connected (System.InvalidOperationException: Call from invalid thread) #1608

@compulsive603

Description

@compulsive603

What happened?

StabilityMatrix Version: 2.15.7.0
OS: Windows 11 24H2
Install type: Portable

Description

The app crashes silently a few seconds after launch with no error dialog. The mouse shows a loading cursor briefly before the app closes itself. This happens consistently when the internet is connected. When internet is disconnected, the app launches and runs fine.

Steps to Reproduce

  1. Launch StabilityMatrix with internet connected
  2. App appears to load normally
  3. After a few seconds, app silently closes itself

Expected Behavior

App should stay open and run normally.

Actual Behavior

App crashes silently after a few seconds.

Workaround

Launching with internet disabled prevents the crash. App can be used normally after it fully loads.

Error Log (Windows Event Viewer → Windows Logs → Application)

Application: StabilityMatrix.exe
CoreCLR Version: 9.0.1426.11910
.NET Version: 9.0.14
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException: Call from invalid thread
   at Avalonia.Threading.Dispatcher.<VerifyAccess>g__ThrowVerifyAccess|16_0()
   at Avalonia.Controls.Notifications.WindowNotificationManager.Show(Object content, NotificationType type, Nullable`1 expiration, Action onClick, Action onClose, String[] classes)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Additional Notes

This issue started occurring around the time of the recent Patreon disruption. It is possible a background network request is failing and triggering a notification from a non-UI thread, causing the crash. The issue persists on both 2.15.6.0 and 2.15.7.0.

Exception Details

No response

Version

2.15.7

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashBugs involving the app crashing to desktop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions