See https://aka.ms/dotnet-discord in the #monovm channel for our primary community location.
Hello,
I am trying to compile mono-boehm (6.12) for full-aot cross-compilation.
I have ran into one issue which involves generating offsets using the offsets-tool.
The offsets tool only generates header for SGEN, and when I do not supply cross-offsets file within the CLI - compilation stops with errors like so: abi.c:36:2: error: ‘MONO_ALIGN_value_gint8’ undeclared here (not in a function); did you mean ‘MONO_ALIGN_gint8’
.
Is the offsets file required for boehm cross-compiler?
If it is, then how am I supposed to generate it?
Hello,
I'm running a C# application using Gtk#2 on a CentOS 7.9 environment which uses gnome as a window manager.
Sometimes, mono crashes with the following stacktrace:
lun. nov. 22 08:12:30 UTC 2021 [xcb] Unknown sequence number while processing queue
lun. nov. 22 08:12:30 UTC 2021 [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
lun. nov. 22 08:12:30 UTC 2021 [xcb] Aborting, sorry about that.
lun. nov. 22 08:12:30 UTC 2021 mono: xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
lun. nov. 22 08:12:30 UTC 2021
lun. nov. 22 08:12:30 UTC 2021 =================================================================
lun. nov. 22 08:12:30 UTC 2021 Native Crash Reporting
lun. nov. 22 08:12:30 UTC 2021 =================================================================
lun. nov. 22 08:12:30 UTC 2021 Got a SIGABRT while executing native code. This usually indicates
lun. nov. 22 08:12:30 UTC 2021 a fatal error in the mono runtime or one of the native libraries
lun. nov. 22 08:12:30 UTC 2021 used by your application.
lun. nov. 22 08:12:30 UTC 2021 =================================================================
lun. nov. 22 08:12:30 UTC 2021
lun. nov. 22 08:12:30 UTC 2021 =================================================================
lun. nov. 22 08:12:30 UTC 2021 Native stacktrace:
lun. nov. 22 08:12:30 UTC 2021 =================================================================
lun. nov. 22 08:12:30 UTC 2021 0x6cbaab - mono :
lun. nov. 22 08:12:30 UTC 2021 0x6cbe19 - mono :
lun. nov. 22 08:12:30 UTC 2021 0x6555bf - mono :
lun. nov. 22 08:12:30 UTC 2021 0x6cb0cf - mono :
lun. nov. 22 08:12:30 UTC 2021 0x7fd332d42630 - /usr/lib64/libpthread.so.0 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd33217b3d7 - /usr/lib64/libc.so.6 : gsignal
lun. nov. 22 08:12:30 UTC 2021 0x7fd33217cac8 - /usr/lib64/libc.so.6 : abort
lun. nov. 22 08:12:30 UTC 2021 0x7fd3321741a6 - /usr/lib64/libc.so.6 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd332174252 - /usr/lib64/libc.so.6 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd31bd0485a - /usr/lib64/libX11.so.6 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd31bd0490c - /usr/lib64/libX11.so.6 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd31bd04bfd - /usr/lib64/libX11.so.6 : _XEventsQueued
lun. nov. 22 08:12:30 UTC 2021 0x7fd31bcf66dd - /usr/lib64/libX11.so.6 : XPending
lun. nov. 22 08:12:30 UTC 2021 0x7fd32289be3c - /usr/lib64/libgdk-x11-2.0.so.0 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd320686e09 - /usr/lib64/libglib-2.0.so.0 : g_main_context_check
lun. nov. 22 08:12:30 UTC 2021 0x7fd320687300 - /usr/lib64/libglib-2.0.so.0 :
lun. nov. 22 08:12:30 UTC 2021 0x7fd3206874ac - /usr/lib64/libglib-2.0.so.0 : g_main_context_iteration
lun. nov. 22 08:12:30 UTC 2021 0x7fd31845326d - /usr/lib64/libgtk-x11-2.0.so.0 : gtk_main_iteration_do
Does anybody have an idea on what causes this crash of mono. It is mono v6.12.0.107.
Thanks bunch
I have a Docker Image running into EC2 Instance. My Docker Image have installed mono project and when
My program is using Amazon.SDK and when I executing my program I get this error:
Exception: : Unable to get IAM security credentials from EC2 Instance Metadata Service.
Stack trace: at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.FetchCredentials () [0x00013] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.GetCredentials () [0x00069] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.GetCredentialsAsync () [0x00000] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0005c] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0013c] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0021d] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007e] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0007e] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x0008f] in <b517d67c336446ca8d77abeb68bfc4a7>:0
at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T] (Amazon.Runtime.IExecutionContext executionContext) [0x000ab] in <b517d67c336446ca8d77abeb68bfc4a7>:0
I think this error is about to permissions from library mono to get MetaData EC2
I use mono_set_dirs and mono_set_assemblies_path to set asm dir with "/data/user/0/com.test.test1/files/assets/bin/Data/Managed"
And i'm sure the mscorlib.dll is in the ‘Managed' folder.
But mono_assembly_load_corlib failed with error:
D/mono: Mono: Assembly Loader probing location: '/data/data/com.test.test1/files/assets/bin/Data/Managed/mscorlib.dll'.
D/mono: Mono: Assembly Loader probing location: '/data/data/com.test.test1/files/assets/bin/Data/Managed/mono/2.0/mscorlib.dll'.
D/mono: Mono: Assembly Loader probing location: '/data/data/com.test.test1/files/assets/bin/Data/Managed/mono/2.0/mscorlib.dll'.
Why "/data/user/0/com.test.test1/files/assets/bin/Data/Managed" become '/data/data/com.test.test1/files/assets/bin/Data/Managed"???
mono
(version 6.12) it runs fine. But when I try to run it with the VS Code Mono Debug debugger, I get this exception: System.MissingMethodException: Method not found: int Mono.Unix.Native.Syscall.fcntl(int,Mono.Unix.Native.FcntlCommand,int)
mono foo.exe
my program runs with no issues, but if I execute /Library/Frameworks/Mono.framework/Versions/Current/bin/mono-sgen64 foo.exe
(the absolute path Jetbrains Rider uses), then my application gets a native crash. The funny thing is that mono
is an alias to /Library/Frameworks/Mono.framework/Versions/Current/bin/mono-sgen64
. Does it make any sense to any of you?