Forum Xamarin Cross Platform with Xamarin

Newbie - program runs on PC but not on Mac

I've been a windows programmer forever, but have very little knowledge of Macs.
Downloaded and installed Xamarin Studio on my Windows PC and created a test solution (Gtk#)
Running it in the IDE (Run With Mono) works.
Going to the command prompt outside the IDE and typing mono test.exe works.

Downloaded and installed both the MRE and MDK versions of the mono platform on my Mac, running 10.6.3. (I have no idea what the difference is between the MRE and MDK and I googled the hell out of that and still don't know, so I just downloaded and installed both)

I then copied the test.exe file to my mac and in terminal type mono test.exe
Here's what happens:

Andys-MacBook:test andy$ mono test.exe
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) Gtk.Application.gtk_init (int&,intptr&) <0xffffffff>
at Gtk.Application.Init () <0x0003b>
at Test.MainClass.Main (string[]) <0x0000b>
at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

0   mono                                0x4ec0d4f4 mono_handle_native_sigsegv + 292
1   mono                                0x4ec62cbd sigabrt_signal_handler + 109
2   libSystem.B.dylib                   0x91b6e42b _sigtramp + 43
3   ???                                 0xffffffff 0x0 + 4294967295
4   libSystem.B.dylib                   0x91bfb8e5 raise + 26
5   libSystem.B.dylib                   0x91c1199c abort + 93
6   libintl.8.dylib                     0x005dbe3a _nl_load_domain + 106
7   libintl.8.dylib                     0x005db03c _nl_find_domain + 780
8   libintl.8.dylib                     0x005e0235 libintl_dcigettext + 1925
9   libintl.8.dylib                     0x005dac99 libintl_dcgettext + 73
10  libintl.8.dylib                     0x005dad17 libintl_gettext + 39
11  libglib-2.0.0.dylib                 0x0364ea6f _g_dgettext_should_translate + 127
12  libglib-2.0.0.dylib                 0x0364eb8f g_dgettext + 31
13  libgtk-quartz-2.0.0.dylib           0x0293732a gtk_get_option_group + 90
14  libgtk-quartz-2.0.0.dylib           0x02937596 gtk_parse_args + 150
15  libgtk-quartz-2.0.0.dylib           0x02937654 gtk_init_check + 36
16  libgtk-quartz-2.0.0.dylib           0x029376bd gtk_init + 45
17  ???                                 0x000b20b8 0x0 + 729272
18  ???                                 0x000a8f54 0x0 + 692052
19  ???                                 0x000a8dfc 0x0 + 691708
20  ???                                 0x000a8f03 0x0 + 691971
21  mono                                0x4eb734a5 mono_jit_runtime_invoke + 741
22  mono                                0x4ed2a6ce mono_runtime_invoke + 126
23  mono                                0x4ed2ec44 mono_runtime_exec_main + 420
24  mono                                0x4ed2efb5 mono_runtime_run_main + 725
25  mono                                0x4ebddf25 mono_jit_exec + 149
26  mono                                0x4ebe045f mono_main + 9519
27  mono                                0x4eb66c1e main + 558
28  mono                                0x4eb669e5 start + 53
29  ???                                 0x00000002 0x0 + 2

Debug info from gdb:

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

Abort trap

Any suggestions on how to fix this?

Posts

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    Hi mr.X,

    Could you send a test project that recreates this issue to [email protected]? IDE version information and build logs would also be helpful for our support team to take a look at the issue. Version information in Visual Studio can be copied from: Help -> About Microsoft Visual Studio -> Copy Info button

  • Mr.XMr.X CAMember ✭✭

    Done.

Sign In or Register to comment.