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
Jo Shields
@directhex
looks like 6.12.0.90 should be tagged as stable
i'll try to get around to that this week
izilude
@izilude
I have kind of an interesting issue. I'm running a winforms application running on and angstrom build of mono 5.14.0.177. The application runs fine for about 60 hours then I suddenly get an unexpected crash
I got this exception log
Connection reset by peer
at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00016] in <6e364e2268ca4676b3da01fdf628abcb>:0
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, System.Boolean allowIdle) [0x0011e] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr handle, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x0001c] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x0034e] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <9cc9017571ab4df08e462767253a4a2f>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <9cc9017571ab4df08e462767253a4a2f>:0
at TSI.Air.AirSuiteEmbeddedApp.Program.Main () [0x0013c] in <26ae378f4b024c9eb877ea5832a2da30>:0
root@tsi-75802023003:/opt/save/Debug#
Seems like it is losing connection with the XServer. Does anyone know what could cause X to disconnect from a client application?
Jo Shields
@directhex
at a guess, some resource is leaking & being exhuatsed? like file descriptors or somesuch
bleh, 6.12.0.90 never got linux packages, due to a downtime issue. that complicates matters
russDevAcc
@russDevAcc
I am trying to load a dll and get a list of all classes that inherit from a certain then call the constructor. Is this even possible in mono? Been looking for an example or some docs on how to do this all day and haven't been able to find anything.
1 reply
Puto
@PutoML_twitter
https://usercontent.irccloud-cdn.com/file/DVMY2wq4/image.png since this is apparently is a warning that is being treated as an error, is there any way to like… not have it treat warnings as errors? Tried with both xsp and fastcgi-mono-server
I tried setting warningsAsErrors to false everywhere I could find on web.config and compiler settings and everything but nothing seems to work
Andoni Morales Alastruey
@ylatuya
Hi, I am bit lost in terms of how mono's CD system work. I am interested in testing a package including a fix for #18826 that has been backported to the 2020-02 branch here: mono/mono#20358 Does this merge will trigger the CD system somehow? Is there any nightly build building from release branches assuming 2020-02 is a release branch? In terms of versions, what do the 2020-20 branch equates to? Thanks!
thepra
@thepra
Hello everyone, I've been unsuccessfully looking for a way to execute commands both from windows and Linux with C#, but I can't find anything that's working, does anyone have any clue?
Alexander Köplinger
@akoeplinger
@ylatuya for osx we build packages for the 2020-02 branch here: https://jenkins.mono-project.com/job/build-package-osx-mono/job/2020-02/
though it looks like there's an issue with Signing currently
Alexander Köplinger
@akoeplinger
should be fixed now
Andres G. Aragoneses
@knocte
hey @akoeplinger: when I was about to file this bug (mono/mono#20140) you hinted there's a type/assembly whitelist somewhere?
Javi Carnero
@emepetres
Hi all, I'm getting error: use of undeclared identifier 'wasm_native_to_interp_map' when compiling pinvoke on wasm (mono/mono#20403). Anyone knows how to solve it?
John White
@johnwmts_gitlab
Hi, I'm trying to use mkbundle to build an OSX executable but it's failing when it tries to load System.CommandLine.dll with this exception
IKVM.Reflection.BadImageFormatException: Exception of type 'IKVM.Reflection.BadImageFormatException' was thrown.
  at IKVM.Reflection.Reader.MetadataReader.ReadHasCustomAttribute () [0x00130] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Metadata.CustomAttributeTable.Read (IKVM.Reflection.Reader.MetadataReader mr) [0x00004] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Reader.ModuleReader.ReadTables (System.IO.BinaryReader br) [0x000c9] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Reader.ModuleReader.Read (System.IO.Stream stream, System.Boolean mapped) [0x0027c] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Reader.ModuleReader..ctor (IKVM.Reflection.Reader.AssemblyReader assembly, IKVM.Reflection.Universe universe, System.IO.Stream stream, System.String location, System.Boolean mapped) [0x0005b] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Universe.OpenRawModule (System.IO.Stream stream, System.String location, System.Boolean mapped) [0x00028] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Universe.OpenRawModule (System.IO.Stream stream, System.String location) [0x00000] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Universe.OpenRawModule (System.String path) [0x00014] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at IKVM.Reflection.Universe.LoadFile (System.String path) [0x00000] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at MakeBundle.LoadAssembly (System.String assembly) [0x0005f] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at MakeBundle.QueueAssembly (System.Collections.Generic.List`1[T] files, System.String codebase) [0x00102] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at MakeBundle.QueueAssembly (System.Collections.Generic.List`1[T] files, System.String codebase) [0x00102] in <8408e51b25aa495ba5c404cadd2154c8>:0 
  at MakeBundle.Main (System.String[] args) [0x01110] in <8408e51b25aa495ba5c404cadd2154c8>:0
qihongw
@qihongw
I built mono 6.8.0.96 myself. Can I build the latest libgdiplus of today and install it into my mono. Do they match?
Romber
@Rombersoft

Hello everybody. Have such problem on Ubuntu 20 with mono 6.12.0.
My WinForms can not run

System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.MissingMethodException: Method not found: int Mono.Unix.Native.Syscall.fcntl(int,Mono.Unix.Native.FcntlCommand,int)
  at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <f1ad5e498d80423aab8e16dd1454bbea>:0
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <f1ad5e498d80423aab8e16dd1454bbea>:0
  at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <f1ad5e498d80423aab8e16dd1454bbea>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <f1ad5e498d80423aab8e16dd1454bbea>:0
  at Terminal.Config.Program.Main (System.String[] args) [0x00001]

How can I resolve this problem?

1 reply
Rémi Verschelde
@akien-mga
Hi there. Congrats on the stable release of 6.12.0!
I noticed that https://www.mono-project.com/download/stable/ still lists 6.12.0.90 from early September as the release, and that's also the latest tarball available. But the Ubuntu repo has 6.12.0.102 built yesterday, maybe the download page and tarball repo need an update?
qihongw
@qihongw

crash in mono 6.8, but works fine in 4.8. any idea?
`Thread 1 "mono" received signal SIGSEGV, Segmentation fault.
0x000000000065b448 in method_object_construct () at reflection.c:616
616 g_assert (refclass != NULL);
(gdb) mono_backtrace 30
[Thread 0x7f788a801700 (LWP 22707) exited]

#0 0x000000000065b448 in method_object_construct () at reflection.c:616

616 g_assert (refclass != NULL);
[Thread 0x7f788ba0a700 (LWP 22704) exited]

#1 0x000000000065b663 in check_or_construct_handle (construct=0x65b430 <method_object_construct>,

error=0x7fffffba1fb0, user_data=0x0, item=0x0, klass=0x14e0c18, domain=0x14ce1f0)
at ../../mono/metadata/reflection-cache.h:123

123 MONO_HANDLE_ASSIGN (obj, construct (domain, klass, item, user_data, error));
[Thread 0x7f7894265700 (LWP 22708) exited]

#2 mono_method_get_object_handle (domain=domain@entry=0x14ce1f0, method=0x0,

refclass=refclass@entry=0x14e0c18, error=error@entry=0x7fffffba1fb0) at reflection.c:664

664 return CHECK_OR_CONSTRUCT_HANDLE (MonoReflectionMethod, method, refclass, method_object_construct, NULL);
[Thread 0x7f78166d0700 (LWP 22706) exited]

#3 0x00000000005b0770 in set_interface_map_data_method_object (error=0x7fffffba1fb0, i=9, methods=...,

targets=..., klass=0x14e0c18, ioffset=32, iclass=0x14e1030, method=<optimized out>, domain=0x14ce1f0)
at ../../mono/metadata/class-getters.h:77

77 MONO_CLASS_GETTER(m_class_get_vtable, MonoMethod **, , MonoClass, vtable)
[Thread 0x7f783e417700 (LWP 22709) exited]

#4 ves_icall_RuntimeType_GetInterfaceMapData () at icall.c:2943

2943 if (!set_interface_map_data_method_object (domain, method, iclass, ioffset, klass, targets, methods, i, error))

#5 0x00000000005ca360 in ves_icall_RuntimeType_GetInterfaceMapData_raw (a0=<optimized out>,

a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, error=0x7fffffba1fb0)
at ../../mono/metadata/icall-def.h:880

880 HANDLES(RT_10, "GetInterfaceMapData", ves_icall_RuntimeType_GetInterfaceMapData, void, 4, (MonoReflectionType, MonoReflectionType, MonoArrayOut, MonoArrayOut))

#6 0x40f97f96 in (wrapper managed-to-native) System.RuntimeType:GetInterfaceMapData (System.Type,System.Type,System.Reflection.MethodInfo[]&,System.Reflection.MethodInfo[]&) [{0x7f784c07cc18} + 0xd6] (0x40f97ec0 0x40f98080)

#7 0x00007f78ffc534f0 in ?? ()`

Alexander Köplinger
@akoeplinger
@akien-mga the stable channel is still 6.12.0.90, only the preview channel has 6.12.0.102
qihongw
@qihongw
what option should I have for ./configure, if I want to build a debug version of mono?
Andres G. Aragoneses
@knocte
@gihongw are you sure you want a debug version of mono and not just run mono in debug mode? e.g. mono --debug yourProgram.exe
qihongw
@qihongw
@knocte with out without --debug made no difference for me. mono_backtrace only displayed functions of mono itself. When I tried to debug mono functions in gdb, eg. print a variable, gdb showed the information was optimized out. That's why I thought I need a debug build of mono.
Now I'm adding CFLAGS='-g -O0' to configure.
Andres G. Aragoneses
@knocte
ah right cause it's a native crash, nevermind
Alexander Köplinger
@akoeplinger
yeah using CFLAGS='-g -O0' is the way to go
qihongw
@qihongw
I used ./configure --prefix=.. to configure and build mono on Linux. Then I used ./configure --prefix=.. CFLAGS="-g -O0" and built again for my debugging purpose. To my surprise, the executables and libraries in the first build are larger than the second build. Gcc doc says, the default optimization level is -O0. In the second build I have -g, it should make the binaries significantly larger. But why the binaries are larger in the first build? Wondering what's the optimization level of mono when I don't add CFLAGS="-g -O0"?
Alexander Köplinger
@akoeplinger
as far as I can see we don't set any explicit option so whatever your compiler produces by default
Hussam Al-Tayeb
@hussamT
Hello. Is there some announcement email that I can subscribe to so I can know of new mono releases?
Hussam Al-Tayeb
@hussamT
@directhex hi. So there will be no more mono releases if no more branching?
Jo Shields
@directhex
Nothing after 6.12, unless plans change
Mono is just a part of .NET 5+
Hussam Al-Tayeb
@hussamT
@directhex Where can I download a tarball of .net 5 (rc?) to compile?
Hussam Al-Tayeb
@hussamT
Ultimate
@KosmicTask
We embed Mono into our macOS app and communicate with the managed code via the embedded Mono API. Will this behaviour be possible using .NET 5 or will we just have to freeze the app at Mono 6.12?
Ultimate
@KosmicTask
And hopefully Mono 6.12 will include support for Apple silicon?
Alexander Köplinger
@akoeplinger
if you compile the mono in dotnet/runtime yourself then yeah you can use the Mono embedding API, but it's not well documented yet as in .NET 5 it's only used for webassembly
as far as I know there was no decision yet whether we will support Apple Silicon with Mono 6.12
Ultimate
@KosmicTask
@akoeplinger Thanks for that. It something for us to think about. I don’t like the prospect of no offical Apple Silicon build though.
Alexander Köplinger
@akoeplinger
Rosetta2 should work, but yeah :)
Puto
@PutoML_twitter
.NET 5 doesn’t include support for asp.net webforms, right?
Alexander Köplinger
@akoeplinger
no
Puto
@PutoML_twitter
btw, a random question that you might or might not know
is it possible to run .net 4.8 stuff on windows for arm?
(under emulation if necessary)
Alexander Köplinger
@akoeplinger
no idea sorry