pleonex/tinke

error running compiled build with `mono32` on Mac

Closed this issue · 1 comments

Installed mono and msbuild, got Tinke to compile, failed on run of the .exe.
Running macOS Monterey v12.3.1, Intel processor
I tried all combinations of Release/Debug and x86/x64 builds.
Seems like this is due to macOS dropping 32-bit support as of Catalina. I know the readme says support is discontinued but is there any way to modify the build so that it outputs something that newer versions of macOS can use?

~ mono32 build/Tinke.exe
=> zsh: bad CPU type in executable: mono32

And for good measure I ran just mono
~ mono build/Tinke.exe

=================================================================
	Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
	Native stacktrace:
=================================================================
	0x10528a7c9 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_dump_native_crash_info
	0x10522269e - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_handle_native_crash
	0x105284946 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : altstack_handle_and_restore
	0x7ff80c487c31 - /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight : SLDisplayBounds
	0x109ac0568 - Unknown
	0x1057e9c86 - Unknown
	0x10517f962 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_runtime_invoke
	0x105390972 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_runtime_try_invoke
	0x10538f598 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_runtime_class_init_full
	0x10517743c - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_compile_method_inner
	0x10517aeba - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_compile_method_with_opt
	0x1052251ae - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : common_call_trampoline
	0x105224c00 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_magic_trampoline
	0x10576c393 - Unknown
	0x109abfaeb - Unknown

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x123145462865920x from 0x4479813120x
Entering thread summarizer pause from 0x4479813120x
Finished thread summarizer pause from 0x4479813120x.
Failed to create breadcrumb file (null)/crash_hash_0x7a9c1e1fc

Waiting for dumping threads to resume

=================================================================
	External Debugger Dump:
=================================================================

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7ff80c487c31):0x7ff80c487c21  89 fb 48 8b 05 06 c7 ff 3a 0f 10 00 0f 10 48 10  ..H.....:.....H.
0x7ff80c487c31  0f 11 4f 10 0f 11 07 89 f7 48 89 de e8 9d 00 fb  ..O......H......
0x7ff80c487c41  ff 48 89 d8 48 83 c4 08 5b 5d c3 55 48 89 e5 53  .H..H...[].UH..S
0x7ff80c487c51  48 83 ec 28 48 8b 05 4c d9 ff 3a 48 8b 00 48 89  H..(H..L..:H..H.

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Windows.Forms.XplatUICarbon:CGDisplayBounds <0x000b7>
	  at System.Windows.Forms.XplatUICarbon:get_WorkingArea <0x00072>
	  at System.Windows.Forms.XplatUICarbon:get_VirtualScreen <0x00043>
	  at System.Windows.Forms.XplatUI:get_VirtualScreen <0x00048>
	  at System.Windows.Forms.Screen:.cctor <0x0017a>
	  at System.Object:runtime_invoke_void <0x000a5>
	  at <unknown> <0xffffffff>
	  at System.Windows.Forms.Hwnd:GetNextStackedFormLocation <0x001aa>
	  at System.Windows.Forms.XplatUICarbon:CreateWindow <0x0046a>
	  at System.Windows.Forms.XplatUI:CreateWindow <0x00047>
	  at System.Windows.Forms.NativeWindow:CreateHandle <0x0006a>
	  at System.Windows.Forms.Control:CreateHandle <0x000b8>
	  at System.Windows.Forms.Form:CreateHandle <0x00052>
	  at System.Windows.Forms.Control:CreateControl <0x000c6>
	  at System.Windows.Forms.Control:SetVisibleCore <0x00112>
	  at System.Windows.Forms.Form:SetVisibleCore <0x00252>
	  at System.Windows.Forms.Control:set_Visible <0x00052>
	  at System.Windows.Forms.Control:set_Visible <0x000aa>
	  at System.Windows.Forms.Application:RunLoop <0x00412>
	  at System.Windows.Forms.Application:Run <0x00092>
	  at System.Windows.Forms.Application:Run <0x0007a>
	  at Tinke.Program:Main <0x002ba>
	  at <Module>:runtime_invoke_void_object <0x000b0>
=================================================================
[1]    6247 abort      mono build/Tinke.exe```

Never mind. Looked deeper into other issues and looks like this is unfixable. :(