Skip to content

Resonite hangs indefinitely on exit. Thread abort is not supported on this platform. #5

@Nytra

Description

@Nytra

When using this mod and trying to close Resonite sometimes there will be an error like this:

ℹ️04:58:37.981 (FPS: 12):	Exception when Updating object: Element: ID11B000, Type: FrooxEngine.AppEnder, World: Nytra World 1, IsRemoved: False, IsDestroyed: False, IsDisposed: False, Enabled: True
Element: ID11A500, Type: FrooxEngine.Slot, World: Nytra World 1, IsRemoved: False, Ender (ID11A500) <T: [0; 0; 0], R: [0; 0; 0; 1], S: [1; 1; 1], IsActive: True, ActiveSelf: True, Started: True, Destroyed: False, Disposed: False, Local: False, RenderableCount: 0> Parent: Root
Element: ID2300, Type: FrooxEngine.Slot, World: Nytra World 1, IsRemoved: False, Root (ID2300) <T: [0; 0; 0], R: [0; 0; 0; 1], S: [1; 1; 1], IsActive: True, ActiveSelf: True, Started: True, Destroyed: False, Disposed: False, Local: False, RenderableCount: 4> Parent: <null>
Element: ID0, Type: FrooxEngine.World, World: Nytra World 1, IsRemoved: False


Exception:
System.PlatformNotSupportedException: Thread abort is not supported on this platform.
   at void System.Threading.Thread.Abort()
   at void VDFaceTracking.VDProxy.Teardown()
   at void VDFaceTracking.VDFaceTracking+<>c.<OnEngineInit>b__17_1(?)+() => { }
   at void FrooxEngine.Engine.RequestShutdown()
   at void FrooxEngine.AppEnder.OnCommonUpdate()
   at bool FrooxEngine.UpdateManager.RunUpdates()

This appears to be because .NET Core does not let you abort threads like this. https://stackoverflow.com/questions/53465551/net-core-equivalent-to-thread-abort

This leads to the Resonite processes staying open and memory leaking.

DESKTOP-H976HO2 - 2025.8.20.1298 - 2025-08-21 04_35_49.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions