Crashed by Mono 4.0.5

Bug reports and questions about running Virtual Radar Server on Linux
Post Reply
Sergey_Babakov
Posts: 6
Joined: Wed Jan 14, 2015 9:16 am
Location: Moscow, Russia

Crashed by Mono 4.0.5

Post by Sergey_Babakov » Tue Nov 17, 2015 1:07 pm

Hi! I tried to run VRS version 2.2 under Mono on Debian 8. It’s crashed with error: mono VirtualRadar.exe WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00000] in <filename unknown>:0
at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Size newSize) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.Drawing.Image,System.Drawing.Size)
at System.Windows.Forms.XplatUIX11.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Cursor.CreateCursor (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Cursor..ctor (System.Type type, System.String resource) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Cursors.get_SizeNWSE () [0x00000] in <filename unknown>:0
at System.Windows.Forms.SizeGrip..ctor (System.Windows.Forms.Control CapturedControl) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.SizeGrip:.ctor (System.Windows.Forms.Control)
at System.Windows.Forms.ScrollableControl.CreateScrollbars () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
at VirtualRadar.WinForms.BaseForm..ctor () [0x00000] in <filename unknown>:0
at VirtualRadar.WinForms.SplashView..ctor () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
at InterfaceFactory.ClassFactory+Implementation.CreateInstance () [0x00000] in <filename unknown>:0
at InterfaceFactory.ClassFactory.Resolve (System.Type interfaceType) [0x00000] in <filename unknown>:0
at InterfaceFactory.ClassFactory.Resolve[ISplashView] () [0x00000] in <filename unknown>:0
at VirtualRadar.Program.StartApplication (System.String[] args) [0x00000] in <filename unknown>:0
at VirtualRadar.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

That does it mean? Is it bug of VRS or of my system? I use Mono JIT compiler version 4.0.5 (Stable 4.0.5.1/1d8d582 Thu Nov 12 12:03:50 UTC 2015).

Thanks for answer. Sergey Babakov

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Crashed by Mono 4.0.5

Post by agw » Sat Nov 21, 2015 11:37 pm

It's something that Mono or the libraries that it's calling doesn't like. Are you running this over an SSH / telnet console to the machine or directly on the desktop? If it doesn't have a desktop then it won't work, unless you run it in headless mode (-nogui switch, but you will need to have configured by running on the desktop, you can't configure it in -nogui mode).

Sergey_Babakov
Posts: 6
Joined: Wed Jan 14, 2015 9:16 am
Location: Moscow, Russia

Re: Crashed by Mono 4.0.5

Post by Sergey_Babakov » Mon Nov 23, 2015 7:40 am

I’am running VRS directly on the desktop. In headless mode it run’s successfully, but I need to configure this. Which version of Mono have you tested? May be I need to rebuild VRS with my version of Mono?

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Crashed by Mono 4.0.5

Post by agw » Tue Nov 24, 2015 12:15 am

You don't need to rebuild VRS with any version of Mono - .NET programs compile down to bytecode and the Mono runtime JIT-compiles that to native on the fly. The VRS build that runs on Mono is the same as the one that runs on Windows.

Do you have X Windows installed? Mono relies on X Windows for its WinForms implementation.

Sergey_Babakov
Posts: 6
Joined: Wed Jan 14, 2015 9:16 am
Location: Moscow, Russia

Re: Crashed by Mono 4.0.5

Post by Sergey_Babakov » Tue Nov 24, 2015 4:28 pm

Yes, I have X Window installed. I use Gnome desktop.

Post Reply