Initial setup

Are you having trouble getting Virtual Radar Server installed and running? If so then this is the place to ask about it.
Post Reply
leviticus49
Posts: 1
Joined: Thu Aug 10, 2017 8:14 pm

Initial setup

Post by leviticus49 » Thu Aug 10, 2017 8:20 pm

Can anyone 'walk me through' the setting up of the program Please? Don't class myself as a dumpling but it's beyond me at the moment.

Datamix
Posts: 43
Joined: Thu Aug 10, 2017 7:36 pm

Re: Initial setup

Post by Datamix » Sat Aug 12, 2017 10:18 am

Can you provide more information about your setup?
vrs: 12-MAY-2018

ACW342
Posts: 1
Joined: Fri Mar 16, 2018 7:36 pm

Re: Initial setup

Post by ACW342 » Fri Mar 16, 2018 8:19 pm

This is the perfect place for me to leap in screaming for help. Like leviticus49 I don't classify my self as a dumpling or, in britspeak a thicko but I have been left struggling as if wading in a real tarball. I'm new to this ADS-B lark and am finding it not only interesting but also educational. I decided recently that, rather than just look at FR24, or if interested in military, 360Radar, I would get a SDR dongle (the Jet Vision one).

I got all the download instructions from the gentleman at 360radar, Phil, and got the system up and running on a RaspPi I had in my "box of things" and located it in my shed, with a spare apple keyboard and an old monitor connected. It is connected to my network via a PowerLine adaptor. Long story short, I have built three different antennae and would like to see the output of each on screen to check their responsiveness. I have downloaded sbsplotter1 from Güenter Köllner at jetvision.de and with which I had no problem running on a Dell mini10V via Win XP.

I was advised by 360Radar to try VRS so I looked at the website and it looks like I could run it on my iMac sooo.. I downloaded a thing called a mono tarball and now have a folder called Virtual Radar 1 and haven't the foggiest as to why to do next: Run the installer what installer? the only thing in there that you can try is an exe file that when you double click on it opens up a clone asking to be extracted so I do, and what do I get? Folder Virtual Radar 2. Moving on, "Run The Server" Yeah, ok, server ? So I need help, being a newbie in Linux, and a total klutz in the environment of SDR. Once upon a time though I'd give you good run for your Money on Windows 3.1.1 r Amiga OS. I await your replies and welcome fun, but not flaming, that's not very nice :lol:

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

Re: Initial setup

Post by agw » Mon Mar 19, 2018 1:07 am

The installer is only available on Windows - under Linux you need to unpack the archive manually. Do you have your heart set on running it on the Mac? You could just install it on your Dell as long as it's running XP SP2 or better.

Otherwise the steps to get it running on the Mac are:

1. Install Mono - the installer for it is here: http://www.mono-project.com/download/st ... wnload-mac
2. Download and unpack the tarballs from the VRS site - sounds like you've already done that.

You'll want to download the server tarball (http://www.virtualradarserver.co.uk/Download.aspx#body) and the web admin plugin tarball (http://www.virtualradarserver.co.uk/Dow ... -web-admin). Unpack them both into the same folder - if things have been unpacked correctly you should see an executable called VirtualRadar.exe plus a bunch of files and folders. One of the folders will be called Plugins, under that you should have a folder called WebAdmin.

Next you need to create an admin user. Type this from the command-line, substituting username and password with something more appropriate:

Code: Select all

mono VirtualRadar.exe -nogui -createAdmin:username -password:password
Note that there are no spaces after the colons in -createAdmin and -password. So for example, -createAdmin:andrew -password:whatever#1 would create an admin user called andrew with the password whatever#1.

I can't remember if the server will start up or whether it'll quit after it's created the user. Once you have the user created you would normally start it with this command:

Code: Select all

mono VirtualRadar.exe -nogui
If you miss out the -nogui flag then it probably won't work unless you have an X-Windows server installed. Mono uses X-Windows for its implementation of Microsoft's WinForms framework and Apple stopped shipping X-Windows on OSX years ago. You can install open-source X-Windows servers if you want to give it a try but Mono's WinForms implementation isn't great at the best of times, I think you'll find life easier with the web admin plugin.

To configure the server open a web browser on the mac and point it at http://127.0.0.1:8080/VirtualRadar/WebAdmin/Index.html. Enter the username and password you created above and then go to Options and add a receiver.

garylovesbeer
Posts: 3
Joined: Tue Dec 15, 2015 6:34 am

Re: Initial setup

Post by garylovesbeer » Mon Jun 04, 2018 11:37 pm

I'm trying to get VR to run on mono in OS X. Installed mono via brew. Gets to this point in terminal.

gary@MacbookAir 👍 ~ mono /Users/gary/Desktop/VirtualRadar/VirtualRadar.exe -nogui
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Parsing command-line parameters
Initialising the log
Initialising user manager
Loading the configuration
Starting picture folder cache
Opening the BaseStation database
Loading standing data
Initialising air pressure manager
Connecting to data feed
Starting web server
Starting rebroadcast servers
Initialising UPnP manager
Initialising online lookup manager
Starting plugins
Local address: http://127.0.0.1:8081/VirtualRadar
Network address: http://192.168.0.121:8081/VirtualRadar
Press Q to quit


As soon as I access http://127.0.0.1:8081/VirtualRadar in a browser I get this (lengthy) message.

Unhandled Exception Caught
Unhandled Exception Caught
VirtualRadar.Interface.WebServer.RequestException: Exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.} caught during request for {/VirtualRadar/images/Rotate-120.1/Compass.png} - see inner exception for details
No stack trace
-- INNER EXCEPTION --
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <6e9b92f0d119424382ef180639777acb>:0
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <6e9b92f0d119424382ef180639777acb>:0
at System.Reflection.MonoCMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <6e9b92f0d119424382ef180639777acb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke (System.Object target, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject (System.Object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00059] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject (System.Runtime.Serialization.ObjectHolder holder) [0x00088] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.ObjectManager.DoFixups () [0x0005a] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00077] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceReader.DeserializeObject (System.Int32 typeIndex) [0x00019] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceReader._LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x0035c] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceReader.LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceReader.LoadObject (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00022] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase, System.Boolean isString) [0x000be] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x0008e] in <6e9b92f0d119424382ef180639777acb>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in <6e9b92f0d119424382ef180639777acb>:0
at VirtualRadar.Resources.InternalResources.get_Compass () [0x00005] in <6087d888f38d4703a089cd9b22cb2553>:0
at VirtualRadar.Resources.Images.get_Compass () [0x00009] in <6087d888f38d4703a089cd9b22cb2553>:0
at VirtualRadar.Resources.Images.Clone_Compass () [0x0000c] in <6087d888f38d4703a089cd9b22cb2553>:0
at VirtualRadar.WebSite.ImagePage.BuildInitialImage (VirtualRadar.WebSite.ImagePage+ImageRequest imageRequest, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args, System.Drawing.Image& stockImage, System.Drawing.Image& tempImage) [0x00913] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.DoHandleRequest (VirtualRadar.Interface.WebServer.IWebServer server, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x0002f] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.Page.HandleRequest (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00008] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.RequestContent (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00043] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.Server_RequestReceived (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at (wrapper delegate-invoke) System.EventHandler`1[VirtualRadar.Interface.WebServer.RequestReceivedEventArgs]:invoke_void_object_TEventArgs (object,VirtualRadar.Interface.WebServer.RequestReceivedEventArgs)
at VirtualRadar.Interface.EventHelper.RaiseQuickly[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs args) [0x00003] in <ec7488d8fad648efac721c573cba8ee4>:0
at VirtualRadar.WebServer.WebServer.OnRequestReceived (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
at VirtualRadar.WebServer.WebServer.GetContextHandler (System.IAsyncResult asyncResult) [0x000e8] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
-- INNER EXCEPTION --
System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
at System.Drawing.Image.Finalize () [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
-- INNER EXCEPTION --
System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0

Unhandled Exception Caught
VirtualRadar.Interface.WebServer.RequestException: Exception {System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.} caught during request for {/VirtualRadar/images/File-7C7AA5%7CB738/Type.png} - see inner exception for details
No stack trace
-- INNER EXCEPTION --
System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at System.Drawing.Bitmap..ctor (System.Int32 width, System.Int32 height, System.Drawing.Imaging.PixelFormat format) [0x00006] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat)
at VirtualRadar.WebSite.WebSiteGraphics.CreateBlankImage (System.Int32 width, System.Int32 height) [0x0000a] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.CreateLogoImage (System.String logo, System.String folder) [0x000d4] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.BuildInitialImage (VirtualRadar.WebSite.ImagePage+ImageRequest imageRequest, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args, System.Drawing.Image& stockImage, System.Drawing.Image& tempImage) [0x00b49] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.DoHandleRequest (VirtualRadar.Interface.WebServer.IWebServer server, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x0002f] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.Page.HandleRequest (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00008] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.RequestContent (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00043] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.Server_RequestReceived (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at (wrapper delegate-invoke) System.EventHandler`1[VirtualRadar.Interface.WebServer.RequestReceivedEventArgs]:invoke_void_object_TEventArgs (object,VirtualRadar.Interface.WebServer.RequestReceivedEventArgs)
at VirtualRadar.Interface.EventHelper.RaiseQuickly[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs args) [0x00003] in <ec7488d8fad648efac721c573cba8ee4>:0
at VirtualRadar.WebServer.WebServer.OnRequestReceived (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
at VirtualRadar.WebServer.WebServer.GetContextHandler (System.IAsyncResult asyncResult) [0x000e8] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
-- INNER EXCEPTION --
System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0

System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
at System.Drawing.Image.Finalize () [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
-- INNER EXCEPTION --
System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0

Unhandled Exception Caught
VirtualRadar.Interface.WebServer.RequestException: Exception {System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.} caught during request for {/VirtualRadar/images/File-7C6CA6%7CA320/Type.png} - see inner exception for details
No stack trace
-- INNER EXCEPTION --
System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at System.Drawing.Bitmap..ctor (System.Int32 width, System.Int32 height, System.Drawing.Imaging.PixelFormat format) [0x00006] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat)
at VirtualRadar.WebSite.WebSiteGraphics.CreateBlankImage (System.Int32 width, System.Int32 height) [0x0000a] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.CreateLogoImage (System.String logo, System.String folder) [0x000d4] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.BuildInitialImage (VirtualRadar.WebSite.ImagePage+ImageRequest imageRequest, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args, System.Drawing.Image& stockImage, System.Drawing.Image& tempImage) [0x00b49] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.ImagePage.DoHandleRequest (VirtualRadar.Interface.WebServer.IWebServer server, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x0002f] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.Page.HandleRequest (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00008] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.RequestContent (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00043] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at VirtualRadar.WebSite.WebSite.Server_RequestReceived (System.Object sender, VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <f54c27fe8a4b4337ac2be09ade065c1d>:0
at (wrapper delegate-invoke) System.EventHandler`1[VirtualRadar.Interface.WebServer.RequestReceivedEventArgs]:invoke_void_object_TEventArgs (object,VirtualRadar.Interface.WebServer.RequestReceivedEventArgs)
at VirtualRadar.Interface.EventHelper.RaiseQuickly[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs args) [0x00003] in <ec7488d8fad648efac721c573cba8ee4>:0
at VirtualRadar.WebServer.WebServer.OnRequestReceived (VirtualRadar.Interface.WebServer.RequestReceivedEventArgs args) [0x00000] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
at VirtualRadar.WebServer.WebServer.GetContextHandler (System.IAsyncResult asyncResult) [0x000e8] in <bcf9b8afcfb44ba2a9334b03ab2bdc75>:0
-- INNER EXCEPTION --
System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
at System.Drawing.Image.Finalize () [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0
0b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0

Unhandled Exception Caught
gary@MacbookAir 👍 ~


Knowing nothing of the .net world does not help.

If anyone could assist that would be fantastic.

Information that might help.

gary@MacbookAir 👍 ~ mono --version
Mono JIT compiler version 5.4.1.6 (tarball Mon Dec 11 14:59:42 GMT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
gary@MacbookAir 👍 ~

gary@MacbookAir 👍 ~ which mono
/usr/local/bin/mono
gary@MacbookAir 👍 ~ which mcs
/usr/local/bin/mcs
gary@MacbookAir 👍 ~


My VirtualRadar.exe.config contains the following text

<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Mono.Data.Sqlite"
publicKeyToken="0738eb9f132ed756"
culture="neutral" />
<bindingRedirect oldVersion="2.0.0.0"
newVersion="4.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>


The browser initially, for seconds, shows the trails on the map but no aircraft thumbnails or flags.

Thanks in advance.

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

Re: Initial setup

Post by agw » Sat Jun 09, 2018 1:44 pm

I think you (or Mono) might have repeated the stack trace a couple of times there :) But the important bit is towards the bottom of the trace:

Code: Select all

-- INNER EXCEPTION --
System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0 
at System.Drawing.Image.Finalize () [0x00000] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0 
-- INNER EXCEPTION --
System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in <d9f0e675dc254b0b9d2aaa7bb1c90304>:0 
System.Drawing.GDIPlus is a Mono library, it handles drawing graphics. It, in turn, is trying to load a native library called libgdiplus.dylib but it's failing to do so. It's reporting that it can't find it.

Looking around on Google it appears that you're not alone with this. Skimming this page here:

http://www.mono-project.com/docs/advanc ... exception/

it's likely that the library exists on a path that Mono doesn't know about. The official solution is to find the library and then add its path to some configuration file (the instructions are towards the bottom of that page) but I also saw a search result where someone just found the file and copied it into the binaries folder for the application :) I imagine either approach would work but adding paths to Mono's configuration files is going to be the safest.

garylovesbeer
Posts: 3
Joined: Tue Dec 15, 2015 6:34 am

Re: Initial setup

Post by garylovesbeer » Tue Jun 12, 2018 9:58 pm

Absolute genius, agw! :D

The solution was to install mono-libgdiplus - brew install mono-libgdiplus - and !BOOM! it works!

Thanks for the solution and your time and expertise.

Must learn how to read log files...

Post Reply