Bug 29321 - Exception in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() on Samsung SM-G900H
Summary: Exception in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInte...
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Marek Habersack
Depends on:
Reported: 2015-04-22 13:30 UTC by Anuj Bhatia
Modified: 2017-09-14 19:12 UTC (History)
3 users (show)

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

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:

Description Anuj Bhatia 2015-04-22 13:30:17 UTC
Calling this Mono method on a Samsung SM-G900H causes an exception. The equivalent Java code does not fire an exception.

{System.SystemException: getifaddrs() failed
  at System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 
  at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 }
	Data: Count=0
	HResult: -2146233087
	HelpLink: (null)
	InnerException: (null)
	Message: "getifaddrs() failed"
	Source: "System"
	StackTrace: "  at System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 \n  at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0 "
	TargetSite: {System.Net.NetworkInformation.NetworkInterface[] ImplGetAllNetworkInterfaces()}
	Static members: 
	Non-public members:
Comment 1 Ram Chandra 2015-07-06 13:17:18 UTC
I have checked this issue with following devices:

Nexus 5 ( Android M)
Samsung Note 3( Android 5.0)
Moto G (Android 4.4)
Samsung S5 ( Android 5.0)

For every other device it is working fine but with Samsung SM-G900H, I am not getting the error mentioned in bug description but the execution of programs stops at the following line:


Application is still  in running mode but program control stops at the above line

Application Output: https://gist.github.com/RamChBachkheti/cc79042e58be427c3c8b
Device Logs: https://gist.github.com/RamChBachkheti/78eb0691b0399812e0c6

If you have a chance, it might also be helpful to include application output, IDE logs and device logs.

Environment Info: 

=== Xamarin Studio ===

Version 5.9.4 (build 4)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: dff6838
Branch: master
Build date: 2015-07-02 01:36:25-0400

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 509040004
Git revision: 0c8e73f6b66e066a642724a8241a0998b6329180
Build date: 2015-06-08 16:52:22-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.10.3
Darwin Dalvik.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 2 Jon Douglas [MSFT] 2017-09-14 19:12:46 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!