VRS on OSX with Mono - Crash on Startup

Bug reports and questions about running Virtual Radar Server on Linux
Post Reply
guzbikes
Posts: 4
Joined: Sat Aug 09, 2014 11:46 am

VRS on OSX with Mono - Crash on Startup

Post by guzbikes » Sat Aug 09, 2014 11:54 am

I'm trying to get VRS running on OSX under Mono and I can't get past the splash screen. It hangs on "Loading standing data" and the .local/share/VirtualRadar/VirtualRadarLog.txt looks like this:

[2014-08-09 08:30:48.758 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 08:30:48.770 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 08:30:48.851 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 08:48:36.434 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 08:48:36.444 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 08:48:36.510 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:07:58.834 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:07:58.842 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:07:58.927 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:07:59.125 UTC] [t4] An unhandled exception was caught: Object reference not set to an instance of an object
Full message:System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon:SetWindowBounds (intptr,uint,System.Windows.Forms.CarbonInternal.Rect&)
at System.Windows.Forms.XplatUICarbon.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.set_Location (Point value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.set_Location (Point value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.CenterToScreen () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.OnCreateControl () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

[2014-08-09 09:07:59.139 UTC] [t4] Caught exception while trying to show a previous exception: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon:CreateNewWindow (System.Windows.Forms.CarbonInternal.WindowClass,System.Windows.Forms.CarbonInternal.WindowAttributes,System.Windows.Forms.CarbonInternal.Rect&,intptr&)
at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.CreateHandle () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.ShowDialog (IWin32Window owner) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form.ShowDialog () [0x00000] in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox/MessageBoxForm:RunDialog ()
at System.Windows.Forms.MessageBox.Show (System.String text, System.String caption) [0x00000] in <filename unknown>:0
at VirtualRadar.Program.ShowException (System.Exception ex) [0x00000] in <filename unknown>:0
[2014-08-09 09:09:52.542 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:09:52.549 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:09:52.617 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:17:38.708 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:17:38.716 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:17:38.764 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:23:12.145 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:23:12.153 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:23:12.217 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:26:57.795 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:26:57.803 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:26:57.847 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:29:57.983 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:29:57.992 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:29:58.050 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x0009e] in /Volumes/build-root-ramdisk/mono-3.4.0/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs:143
at Mono.Data.Sqlite.SqliteConnection.Open () [0x002aa] in /Volumes/build-root-ramdisk/mono-3.4.0/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteConnection.cs:888
[2014-08-09 09:37:17.385 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:37:17.393 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:37:17.449 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:44:35.080 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:44:35.088 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:44:35.137 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 09:59:06.145 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 09:59:06.153 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 09:59:06.212 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:00:10.603 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:00:10.611 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:00:10.660 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:23:35.410 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:23:35.417 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:23:35.464 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:30:54.427 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:30:54.435 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:30:54.483 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:31:46.880 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:31:46.887 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:31:46.945 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:39:12.994 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:39:13.001 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:41:20.689 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:41:20.697 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:41:20.755 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0
[2014-08-09 10:43:12.887 UTC] [t4] Program started, version 2.0.2.23431
[2014-08-09 10:43:12.896 UTC] [t4] Working folder /Users/rguzy/.local/share/VirtualRadar
[2014-08-09 10:43:12.948 UTC] [t4] Exception caught during load of standing data: Mono.Data.Sqlite.SqliteException: Unable to open the database file
at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00000] in <filename unknown>:0
at Mono.Data.Sqlite.SqliteConnection.Open () [0x00000] in <filename unknown>:0

Any ideas what might cause that error? Do I need to install something more?

Thanks!

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

Re: VRS on OSX with Mono - Crash on Startup

Post by agw » Mon Aug 11, 2014 12:53 am

The exceptions regarding the database may be a red herring, I wouldn't worry too much about those. It looks more like it's having problems creating a message box to tell you that the database file can't be opened:
at System.Windows.Forms.MessageBox.Show (System.String text, System.String caption) [0x00000] in <filename unknown>:0
at VirtualRadar.Program.ShowException (System.Exception ex) [0x00000] in <filename unknown>:0
(you read exception messages from the bottom up). MessageBox.Show is the standard .NET method for displaying message boxes.

Mono relies on having an X Window manager installed. I'm guessing you've got one installed, otherwise you wouldn't see the splash screen. Which one have you installed, and what version is it? Also, which version of Mono do you have installed? You can get the Mono version by typing

Code: Select all

mono --version

guzbikes
Posts: 4
Joined: Sat Aug 09, 2014 11:46 am

Re: VRS on OSX with Mono - Crash on Startup

Post by guzbikes » Fri Aug 22, 2014 4:00 pm

For XWindows I had XQuartz 2.7.6 and I'm updating to 2.7.7 as we speak, I'll let you know if that makes a difference.

When I do mono --version I get:
Mono JIT compiler version 3.4.0 ((no/d4511ef Tue Mar 25 14:35:52 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: yes(3.4svn-mono-(no/e656cac)
GC: sgen

Thanks!

guzbikes
Posts: 4
Joined: Sat Aug 09, 2014 11:46 am

Re: VRS on OSX with Mono - Crash on Startup

Post by guzbikes » Fri Aug 22, 2014 4:28 pm

Interestingly, now it's not crashing with that exception, but it isn't starting up either. Now it's stuck with a seemingly blank dialog box behind the splash screen "loading the configuration". I've attached a screenshot:
vps_hang.jpg
vps_hang.jpg (247.88 KiB) Viewed 2874 times

guzbikes
Posts: 4
Joined: Sat Aug 09, 2014 11:46 am

Re: VRS on OSX with Mono - Crash on Startup

Post by guzbikes » Fri Aug 22, 2014 5:04 pm

Actually, I think that was somewhat of a red herring. I had an empty Configuration.xml and I got that black dialog. Once I swapped in a blank one from a Windows installation I started getting the exception again.

Here's the stacktrace now:

Stacktrace:

at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.ReceiveNextEvent (uint,intptr,double,bool,intptr&) <0xffffffff>
at System.Windows.Forms.XplatUICarbon.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x00073>
at System.Windows.Forms.XplatUI.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x00026>
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x00b27>
at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) <0x007f3>
at System.Windows.Forms.Form.ShowDialog () <0x00013>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog () <0xffffffff>
at VirtualRadar.Program.StartApplication (string[]) <0x000db>
at VirtualRadar.Program.Main (string[]) <0x0038f>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Post Reply