Bug 24237 - OpenGL server is unreachable (No connection could be made because the target machine actively refused it)
Summary: OpenGL server is unreachable (No connection could be made because the target ...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Android Player
Classification: Xamarin
Component: Player ()
Version: unspecified
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Bugzilla
URL:
: 25042 26739 28559 ()
Depends on:
Blocks:
 
Reported: 2014-11-03 21:18 UTC by cliff
Modified: 2015-07-30 15:18 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Error logs, and screenshots of OpenGL error (246.36 KB, application/zip)
2015-02-19 10:37 UTC, David Hathaway
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Comment 2 Johan Munkestam 2015-02-13 11:33:38 UTC
Have the same issue.

My log: AndroidPlayer20150213161953.log

AndroidPlayer version 0.2.5.0
Executing command: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe "showvminfo" "Nexus 5 (KitKat)"
Executing command: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe "showvminfo" "Nexus 7 (KitKat)"
Executing command: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe "showvminfo" "Nexus 4 (KitKat)"
Executing command: C:\Program Files (x86)\MSBuild\Xamarin\Android\mandroid.exe "--entitlements"
AndroidPlayer started at 13/02/2015 23:19
As supplied: name = 'Nexus 4 (KitKat)'
Extra parameters: 
Executing command: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe "guestproperty" "set" "Nexus 4 (KitKat)" "xap_pid" "6052"
Using C:\Users\jom\AppData\Local\Android\android-sdk\platform-tools\adb.exe for adb commands
Executing command: C:\Users\jom\AppData\Local\Android\android-sdk\platform-tools\adb.exe "shell" "setprop" "xapd.battery.mode" "manual"
C:\Users\jom\AppData\Local\Android\android-sdk\platform-tools\adb.exe result: 
StandardError: error: device not found
ExitCode: -1
Executing command: C:\Users\jom\AppData\Local\Android\android-sdk\platform-tools\adb.exe "shell" "setprop" "xapd.ac.online" "1"
C:\Users\jom\AppData\Local\Android\android-sdk\platform-tools\adb.exe result: 
StandardError: error: device not found
ExitCode: -1
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Root element is missing. (C:\Users\jom\AppData\Local\Xamarin_Inc.\AndroidPlayer.exe_Url_ll254h42x1foy1rb3dsuj2ugdgjjka52\0.2.5.0\user.config) ---> System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
   at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
   --- End of inner exception stack trace ---
   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
   at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
   at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
   --- End of inner exception stack trace ---
   at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
   at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)
   at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
   at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
   at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   at System.Configuration.SettingsBase.get_Item(String propertyName)
   at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
   at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   at WPFPlayer.Properties.Settings.get_Left()
   at Xamarin.AndroidPlayer.MainWindow..ctor()
   at Xamarin.AndroidPlayer.SingleInstanceApplication.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Comment 3 David Hathaway 2015-02-19 10:35:46 UTC
Attaching log files of another customer having this issue.
Comment 4 David Hathaway 2015-02-19 10:37:51 UTC
Created attachment 9923 [details]
Error logs, and screenshots of OpenGL error
Comment 5 Will Schaller 2015-05-13 09:19:28 UTC
*** Bug 28559 has been marked as a duplicate of this bug. ***
Comment 6 Will Schaller 2015-05-13 09:26:13 UTC
*** Bug 25042 has been marked as a duplicate of this bug. ***
Comment 7 Will Schaller 2015-05-13 09:27:02 UTC
*** Bug 26739 has been marked as a duplicate of this bug. ***
Comment 8 Ben Brewer 2015-07-21 11:34:08 UTC
Unable to reproduce.
Comment 9 Ram Chandra 2015-07-30 14:11:37 UTC
I was also getting the same issue with XAP-Alpha: 14.39-v0.0.21.
> https://bugzilla.xamarin.com/show_bug.cgi?id=23410

I have checked this issue with latest XAP build, i.e.  XAP:15.29-v0.4.4 and I am not able to reproduce this issue.  If you're still experiencing the issue, it may help completely clean your install and reinstall the latest XAP build.

Please follow following steps to completely clean your XAP installation:

1) Uninstall previous versions of XAP.
2) Open up VirtualBox and remove all of the XAP devices, choose to delete
files.
3) Open the VirtualBox Virtual Media Manager and ensure there are no data.vdi,
system.vdi or sdcard.vdi files remaining. If there are, release and remove
them.
4) Delete C:\ProgramData\AndroidPlayer

As of now, I am marking this issue as RESOLVED NOT_REPRODUCIBLE. Please feel free to reopen it if you will face this issue again after cleaning XAP completely.
Comment 10 David Hathaway 2015-07-30 15:18:58 UTC
This typically happens when a firewall is enabled.  The firewall blocks the host-only traffic.  I've seen this with both the built in Windows firewall, as well as Oracle firewall.

There is a whole thread here:

https://forums.xamarin.com/discussion/26181/android-player-displays-opengl-error

So, if you have to connect back to your office via VPN to access an endpoint (or source code, or any other reason), the VPN and or required firewalls might restrict that port access.

Can we document which ports would need to be whitelisted in order to allow XAP to connect to VirtualBox?  Maybe that's all that's needed here.