icsharpcode / AvaloniaILSpy

Avalonia-based .NET Decompiler (port of ILSpy)
1.5k stars 169 forks source link

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!' #121

Open drclementshimizu opened 2 years ago

drclementshimizu commented 2 years ago

crashing on monnery. I got the ILSpy is damaged and can't be opened... I applied the permissions fix and it ran, but crashes when clicking on the window.

i re-ran from the command line and it produced this stack trace:

2022-08-29 11:53:17.735 ILSpy[50224:3473169] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001be0f41cc __exceptionPreprocess + 240
    1   libobjc.A.dylib                     0x00000001bde457b8 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001be11ee24 _CFBundleGetValueForInfoKey + 0
    3   AppKit                              0x00000001c0bf2224 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 380
    4   AppKit                              0x00000001c0bdd0cc -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 948
    5   AppKit                              0x00000001c0bdcd0c -[NSWindow initWithContentRect:styleMask:backing:defer:] + 56
    6   libAvaloniaNative.dylib             0x0000000125dc7e10 -[AvnWindow initWithParent:] + 56
    7   libAvaloniaNative.dylib             0x0000000125dc9180 _ZN14WindowBaseImplC2EP20IAvnWindowBaseEventsP13IAvnGlContext + 468
    8   libAvaloniaNative.dylib             0x0000000125dc8e2c _ZN10WindowImplC1EP16IAvnWindowEventsP13IAvnGlContext + 92
    9   libAvaloniaNative.dylib             0x0000000125dc8d90 _Z15CreateAvnWindowP16IAvnWindowEventsP13IAvnGlContext + 56
    10  libAvaloniaNative.dylib             0x0000000125dc2e38 _ZN14AvaloniaNative12CreateWindowEP16IAvnWindowEventsP13IAvnGlContextPP10IAvnWindow + 108
    11  ???                                 0x0000000282bc3e18 0x0 + 10783309336
    12  ???                                 0x0000000282bc2f58 0x0 + 10783305560
    13  ???                                 0x0000000282bc2974 0x0 + 10783304052
    14  ???                                 0x0000000282bc1fb4 0x0 + 10783301556
    15  ???                                 0x0000000282bc1ed4 0x0 + 10783301332
    16  ???                                 0x0000000282bc1e04 0x0 + 10783301124
    17  ???                                 0x0000000284b1f990 0x0 + 10816190864
    18  ???                                 0x0000000284b1f898 0x0 + 10816190616
    19  ???                                 0x0000000284b1d77c 0x0 + 10816182140
    20  ???                                 0x0000000284b1bf64 0x0 + 10816175972
    21  ???                                 0x0000000284b0dea4 0x0 + 10816118436
    22  ???                                 0x0000000284b0dbf4 0x0 + 10816117748
    23  ???                                 0x0000000284b0dbac 0x0 + 10816117676
    24  ???                                 0x0000000284b0d400 0x0 + 10816115712
    25  libcoreclr.dylib                    0x0000000104f3bac8 CallDescrWorkerInternal + 132
    26  libcoreclr.dylib                    0x0000000104dac1f0 _Z18DispatchCallSimplePmjmj + 284
    27  libcoreclr.dylib                    0x0000000104d352a0 _ZN11MethodTable13CallFinalizerEP6Object + 400
    28  libcoreclr.dylib                    0x0000000104dec60c _ZN15FinalizerThread18FinalizeAllObjectsEv + 364
    29  libcoreclr.dylib                    0x0000000104dec814 _ZN15FinalizerThread21FinalizerThreadWorkerEPv + 184
    30  libcoreclr.dylib                    0x0000000104d7708c _ZL31ManagedThreadBase_DispatchOuterP22ManagedThreadCallState + 260
    31  libcoreclr.dylib                    0x0000000104d77660 _ZN17ManagedThreadBase13FinalizerBaseEPFvPvE + 36
    32  libcoreclr.dylib                    0x0000000104dec990 _ZN15FinalizerThread20FinalizerThreadStartEPv + 88
    33  libcoreclr.dylib                    0x0000000104c899f0 _ZN7CorUnix10CPalThread11ThreadEntryEPv + 380
    34  libsystem_pthread.dylib             0x00000001bdfa9240 _pthread_start + 148
    35  libsystem_pthread.dylib             0x00000001bdfa4024 thread_start + 8
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort      ./ILSpy.app/Contents/MacOS/ILSpy
ecuzzillo commented 6 months ago

Same issue here. Is there no workaround? Is anybody using this on apple silicon?