Start VRS problem under Linux

Bug reports and questions about running Virtual Radar Server on Linux
Post Reply
Flugel
Posts: 3
Joined: Fri May 10, 2013 8:41 am

Start VRS problem under Linux

Post by Flugel » Fri May 10, 2013 8:56 am

Hello Andrew!

First of all, just want to thank you for your great and brilliant work on VRS!

I tried VRS with mono on Ubuntu 12.10 and Lubuntu 13.04 VRS doesn't work and I always got something like this:

[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
mono: ../../src/xcb_io.c:735: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.
Stacktrace:

at (wrapper managed-to-native) System.Windows.Forms.X11Keyboard.XCreateFontSet (intptr,string,intptr&,int&,intptr) <0xffffffff>
at System.Windows.Forms.X11Keyboard.CreateOverTheSpotXic (intptr,intptr) <0x000af>
at System.Windows.Forms.X11Keyboard.CreateXic (intptr,intptr) <0x000c7>
at System.Windows.Forms.X11Keyboard.CreateXicForWindow (intptr) <0x00023>
at System.Windows.Forms.X11Keyboard.FocusIn (intptr) <0x0008f>
at System.Windows.Forms.XplatUIX11.SetFocus (intptr) <0x000a3>
at System.Windows.Forms.XplatUI.SetFocus (intptr) <0x0001a>
at System.Windows.Forms.Control.Select (System.Windows.Forms.Control) <0x00267>
at System.Windows.Forms.Control.FocusInternal (bool) <0x0005b>
at System.Windows.Forms.Form.FocusInternal (bool) <0x00047>
at System.Windows.Forms.Control.Focus () <0x00018>
at System.Windows.Forms.Form.SetVisibleCore (bool) <0x005ab>
at System.Windows.Forms.Control.set_Visible (bool) <0x00029>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0xffffffff>
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x001ef>
at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) <0x006eb>
at System.Windows.Forms.Form.ShowDialog () <0x00013>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog () <0xffffffff>
at VirtualRadar.Program.StartApplication (string[]) <0x000b3>
at VirtualRadar.Program.Main (string[]) <0x002f7>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

mono() [0x80e6431]
[0xb770340c]
[0xb7703424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f) [0xb74feb1f]
/lib/i386-linux-gnu/libc.so.6(abort+0x143) [0xb75020b3]
/lib/i386-linux-gnu/libc.so.6(+0x27877) [0xb74f7877]
/lib/i386-linux-gnu/libc.so.6(+0x27927) [0xb74f7927]
/usr/lib/i386-linux-gnu/libX11.so.6(_XRead+0x123) [0xb5bffb33]
/usr/lib/i386-linux-gnu/libX11.so.6(XListFontsWithInfo+0x24d) [0xb5be11ad]
/usr/lib/i386-linux-gnu/libX11.so.6(+0x760a0) [0xb5c3b0a0]
/usr/lib/i386-linux-gnu/libX11.so.6(XCreateOC+0x66) [0xb5bede16]
/usr/lib/i386-linux-gnu/libX11.so.6(XCreateFontSet+0x7c) [0xb5be1f4c]
[0xb2faf510]
[0xb2faea90]
[0xb2fabb68]
[0xb2fab914]
[0xb2fab898]
[0xb2fab7d4]
[0xb2fab72b]
[0xb2fab438]
[0xb2fab15c]
[0xb2fab0e8]
[0xb2fab099]
[0xb34075ac]
[0xb34e55e2]
[0xb34e5584]
[0xb34d6ed0]
[0xb34d634c]
[0xb34d5c4c]
[0xb34d5c08]
[0xb3577c44]
[0xb6666238]
[0xb666649f]
mono() [0x8066dcc]

Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Please help me to fix this problem!
Thank you very much!

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

Re: Start VRS problem under Linux

Post by agw » Fri May 10, 2013 11:04 am

I've had a look around on Google - it doesn't look like there is one simple cause for the error message but the common ones seem to be:

* A background thread is trying to update the GUI
* Out-of-date nvidia drivers are being used

It wouldn't surprise me too much if I do have a background thread trying to update the GUI as the program does make use of multi-threading and you have to go out of your way to move calls from a background thread up to the GUI thread. However I would have expected to get lots of crash reports if this was the case, and while there were GUI changes in 1.2.4 there weren't very many. I've checked those and they're definitely updating the GUI on the GUI thread. So while I wouldn't rule it out I'm not convinced it's the problem here.

Out-of-date nvidia drivers were mentioned in connection with the error appearing for X-Plane, nvidia have instructions here (http://us.download.nvidia.com/XFree86/L ... index.html) on how to update them. Do you know whether you're using the vanilla display drivers that came with Ubuntu or the nvidia drivers?

Flugel
Posts: 3
Joined: Fri May 10, 2013 8:41 am

Re: Start VRS problem under Linux

Post by Flugel » Wed May 15, 2013 6:32 am

Thank you very much agw!
But I'm using an ATI adapter on that comp.
Think that I have to try VRS on another comp.

giorgiofox
Posts: 3
Joined: Tue Jun 04, 2013 8:13 pm

Re: Start VRS problem under Linux

Post by giorgiofox » Fri Jun 07, 2013 12:15 pm

I have the same problem on my raspberry.
I've installed mono, and patched it.. any idea?

thanks
Giorgio

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

Re: Start VRS problem under Linux

Post by agw » Sat Jun 08, 2013 6:21 pm

giorgiofox wrote:I've installed mono, and patched it.. any idea?
The "patch" isn't really a patch, it's a complete build of mono for the Raspberry. I think the best approach is to start with a fresh install of Raspbian Wheezy, configure it to boot to desktop and then (without installing mono) follow the instructions on this page: http://www.raspberrypi.org/phpBB3/viewt ... 34&t=37174. In short they involve opening a terminal prompt and doing:

Code: Select all

wget https://www.dropbox.com/s/sask17flot3zqlg/mono_2_11_4_armv6hf_binary.tgz
cd /
sudo tar zxvf /home/pi/mono_2_11_4_armv6hf_binary.tgz
sudo apt-get install libgdiplus
After that if you do mono --version you should get version information for the mono that it's installed and VRS should run. It does not run very quickly though, you might want to try experimenting with overclocking it.

giorgiofox
Posts: 3
Joined: Tue Jun 04, 2013 8:13 pm

Re: Start VRS problem under Linux

Post by giorgiofox » Sun Jun 09, 2013 9:54 am

Now seem to start, but I cant go to the option, because I have not the file configuration.xml.
If I try to import from my window installation, I receive many errors...
Can you please post a valid configuration.xml file?

thaks in advance
Giorgio

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

Re: Start VRS problem under Linux

Post by agw » Sun Jun 09, 2013 11:07 am

giorgiofox wrote:I have not the file configuration.xml
If you take a look here: http://forum.virtualradarserver.co.uk/v ... rt=20#p750

Post Reply