Is anyone else getting this exception when they call NetworkInterface.GetAllNetworkInterfaces();? This is stopping me from using my project on Android because I’m using Matrix XMPP which seems to make that call. I’ve filed a bug report but the status of it hasn’t changed since 12/8/2015. The issue number is 751744
Just an update, I’m communicating with the Matrix devs to figure out a work around to this issue. Status of the bug report is still unchanged and I haven’t been able to find anything on the issue tracker. Hard to believe I’m the first to bring this up haha.
Edit: One more thing. This message is getting printed out as well
01-20 10:34:39.096: D/Unity(22047): Unable to lookup library path for ‘libc’, native render plugin support disabled.
This mean anything to anyone?
Edit 2: Looks like this might be related and a known issue with Mono and since fixed:
https://bugzilla.xamarin.com/show_bug.cgi?id=1969
I come back to this issue here and there but have yet to get any further in solving it. Here’s the stack trace that I get:
02-23 21:33:54.888: I/Unity(27785): EntryPointNotFoundException: getifaddrs
02-23 21:33:54.888: I/Unity(27785): at (wrapper managed-to-native) System.Net.NetworkInformation.LinuxNetworkInterface:getifaddrs (intptr&)
02-23 21:33:54.888: I/Unity(27785): at System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in :0
02-23 21:33:54.888: I/Unity(27785): at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in :0
It’s not very useful because of where it ends. Does anyone know how I may be able to get a better stack trace? It would really help to give more details to the XMPP library devs and hopefully get around this issue.
I get the same exception when calling NetworkInterface.GetAllNetworkInterfaces() with Unity 5.3.1 deploy on Android 4.4 device.
Did Unity provide any solution to this issue?
It seems to be an issue on Android 4.0+. The Devs haven’t gotten back to me.
I did just discover that I can get past my issue by switching over to .NET 2.0 Subset for the Api Compatibility Level. I haven’t attempted making a direct call to NetworkInterface.GetAllNetworkInterfaces() yet.