tryphotino / photino.Blazor

https://tryphotino.io
Apache License 2.0
332 stars 62 forks source link

Beyond HelloWorld - native exception an macOS while trying to make Photino work with 'real' Blazor application #10

Closed ChristianWeyer closed 2 years ago

ChristianWeyer commented 3 years ago

Hey all,

thanks for starting Photino :-)

I am trying to evaluate the current version and went to host one of my Blazor sample applications in Photino.Blazor. You can find it here: https://github.com/thinktecture/ttconftool-blazor

When running the app, I get this exception (in VSfor Mac):

2021-03-10 11:09:26.597 dotnet[47003:11639333] *** Assertion failure in -[_NSAlertPanel setTitle:], NSWindow.m:2490
2021-03-10 11:09:26.599 dotnet[47003:11639333] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff206e46af __exceptionPreprocess + 242
        1   libobjc.A.dylib                     0x00007fff2041c3c9 objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff2070d512 +[NSException raise:format:arguments:] + 88
        3   Foundation                          0x00007fff214c96c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
        4   AppKit                              0x00007fff22ed3551 -[NSWindow setTitle:] + 142
        5   Photino.Native.dylib                0x000000010fec42ac ___ZN7Photino11ShowMessageEPcS0_j_block_invoke + 172
        6   libdispatch.dylib                   0x00007fff203c65dd _dispatch_call_block_and_release + 12
        7   libdispatch.dylib                   0x00007fff203c77c7 _dispatch_client_callout + 8
        8   libdispatch.dylib                   0x00007fff203d3b86 _dispatch_main_queue_callback_4CF + 940
        9   CoreFoundation                      0x00007fff206a7970 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
        10  CoreFoundation                      0x00007fff20669852 __CFRunLoopRun + 2731
        11  CoreFoundation                      0x00007fff206686ce CFRunLoopRunSpecific + 563
        12  HIToolbox                           0x00007fff288f0630 RunCurrentEventLoopInMode + 292
        13  HIToolbox                           0x00007fff288f042c ReceiveNextEventCommon + 709
        14  HIToolbox                           0x00007fff288f014f _BlockUntilNextEventMatchingListInModeWithFilter + 64
        15  AppKit                              0x00007fff22e889b1 _DPSNextEvent + 883
        16  AppKit                              0x00007fff22e87177 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
        17  AppKit                              0x00007fff22e7968a -[NSApplication run] + 586
        18  Photino.Native.dylib                0x000000010fec4096 _ZN7Photino11WaitForExitEv + 38
        19  Photino.Native.dylib                0x000000010fec5a45 Photino_WaitForExit + 21
        20  ???                                 0x0000000116fbf289 0x0 + 4680577673
        21  ???                                 0x0000000116fb777f 0x0 + 4680546175
        22  ???                                 0x0000000116fb5d03 0x0 + 4680539395
        23  libcoreclr.dylib                    0x00000001104853b9 CallDescrWorkerInternal + 124
        24  libcoreclr.dylib                    0x00000001102da09f _ZN18MethodDescCallSite16CallTargetWorkerEPKmPmi + 1519
        25  libcoreclr.dylib                    0x00000001101b577a _Z7RunMainP10MethodDescsPiPP8PtrArray + 746
        26  libcoreclr.dylib                    0x00000001101b5ab3 _ZN8Assembly17ExecuteMainMethodEPP8PtrArrayi + 387
        27  libcoreclr.dylib                    0x00000001101f263d _ZN8CorHost215ExecuteAssemblyEjPKDsiPS1_Pj + 509
        28  libcoreclr.dylib                    0x000000011019efe2 coreclr_execute_assembly + 242
        29  libhostpolicy.dylib                 0x000000010fdeb923 _Z19run_app_for_contextRK20hostpolicy_context_tiPPKc + 1443
        30  libhostpolicy.dylib                 0x000000010fdecc2a corehost_main + 234
        31  libhostfxr.dylib                    0x000000010fd7715e _ZN10fx_muxer_t24handle_exec_host_commandERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERK19host_startup_info_tS8_RKNS0_13unordered_mapI13known_optionsNS0_6vectorIS6_NS4_IS6_EEEE18known_options_hashNS0_8equal_toISD_EENS4_INS0_4pairIKSD_SG_EEEEEEiPPKci11host_mode_tPciPi + 1550
        32  libhostfxr.dylib                    0x000000010fd75fd3 _ZN10fx_muxer_t7executeENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEiPPKcRK19host_startup_info_tPciPi + 611
        33  libhostfxr.dylib                    0x000000010fd737b8 hostfxr_main_startupinfo + 152
        34  dotnet                              0x000000010fd28d37 _Z9exe_startiPPKc + 1191
        35  dotnet                              0x000000010fd28eff main + 143
        36  libdyld.dylib                       0x00007fff2058d621 start + 1
        37  ???                                 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException

If you need more info, let me know :-)

Thanks!

ChristianWeyer commented 3 years ago

FYI: this is now superseded by this issue: https://github.com/tryphotino/photino.Blazor/issues/12

MikeYeager commented 2 years ago

Photino.Blazor is now updated to use .NET 6 @ChristianWeyer Please give this a try and let us know if this is still an issue.