Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 07 2019 17:29
    @directhex banned @CharlieIsHere
  • Oct 11 2018 17:23
    @directhex banned @deleteaccount1234567890
ArsenShnurkov
@ArsenShnurkov
ArsenShnurkov
@ArsenShnurkov
And I need C# 9 to compile NpgSql conenctor
ArsenShnurkov
@ArsenShnurkov
ArsenShnurkov
@ArsenShnurkov
Damian Korczowski
@Erdroy

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?

1 reply
0x1074
@0x1074
Zup
LiteWait
@LiteWait
I have inherited an old ASP.NET Webservices (non-WCF SOAP) application that is running on a very old mono-asp-net-server implementation on Linux. Wondering how difficult it will be migrate to the latest version of Mono or ASP.NET Core. There are only 20 or so endpoints.
Pierre-Louis Prevost
@plprevost

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

Ofir Green
@ogreenz
Any chance for a CppSharp room?
I'd love to be able to discuss his project with someone :)
this*
Alejandro Tortolero
@ajtortolero
Hello to all
Alejandro Tortolero
@ajtortolero

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

Can anybaody help me?
ifeuille
@ifeuille

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"???

This is test on android platform
David Fernández
@dfernandezramos
Hi there! I am trying to debug a Mono issue and I was wondering if any of you could give me a hint with it. The issue is that my app is loading a library from a wrong path but I don't know which library is referencing this one in order to fix the dynamic linking. Is there a way to know which library depends on the actual wrong loaded library?
"Mono: DllImport attempting to load: '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/../lib/libcairo.2.dylib'". All my libraries that depend on libcairo have the rpaths well configured at first sight. It would be very useful a message like "... referenced by foo.dylib"
copygirl
@copygirl
Running into a strange issue. I'm trying to help with an indie game targeting .NET 4.6.1 that runs on Linux with Mono. The released game runs fine. If I build it in debug configuration and run it using 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)
1 reply
Andres G. Aragoneses
@knocte
I'd recommend posting this question in stackoverflow
@copygirl ^
russDevAcc
@russDevAcc
is it possible to sandbox mono?
Alexander Köplinger
@akoeplinger
nothing in mono is specifically made for sandboxing
David Fernández
@dfernandezramos
Hello, I am experiencing a weird situation with Mono. If I execute 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?
Alexander Köplinger
@akoeplinger
no that makes no sense
David Fernández
@dfernandezramos
This is happening since I updated my macOS to the new Ventura beta version. It's like executing mono from an alias works, but executing mono from the binary doesn't
frek818
@frek818
I am interested in running some legacy WCF application in a mono docker container to nudge out deployments towards containers. Can anyone recommend any resources and examples to kick start my exploration? Thanks!