Roon-1.2 on Linux - vpn tun interface problem

I have got RoonServer-1.2 sucesfylly running on the Ubuntu-14.04.4 (Intel Atom D330) - kudos to RoonLabs team!, however only when openvpn service is stopped.

It seems there is a bug in available network interface enumeration in Roon code when any tun interface is available in linux:

Initializing
Started
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) Sooloos.IPAddresses.unix_get_ips_with_netmasks (intptr) <IL 0x00011, 0xffffffff>
at Sooloos.IPAddresses.GetAll () [0x00011] in /home/roon/roon/RoonBase/netinfo.cs:326
at Sooloos.SOOD.Connection.FixInterfaces () [0x00000] in /home/roon/roon/RoonBase/sood.cs:442
at Sooloos.SOOD.Connection.m__3 (object) [0x00027] in /home/roon/roon/RoonBase/sood.cs:348
at ThreadUtil._DoWorkItem (ThreadUtil/WorkItem) [0x00000] in /home/roon/roon/Base/threadutils.cs:270
at ThreadUtil.WorkerThread () [0x0008c] in /home/roon/roon/Base/threadutils.cs:260
at System.Threading.ThreadHelper.ThreadStart_Context (object) <IL 0x00022, 0x00083>
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <IL 0x00083, 0x001f1>
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <IL 0x00004, 0x00023>
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <IL 0x00031, 0x0005b>
at System.Threading.ThreadHelper.ThreadStart () <IL 0x00017, 0x0002f>
at (wrapper runtime-invoke) object.runtime_invoke_void__this
(object,intptr,intptr,intptr) <IL 0x00056, 0xffffffff>

Native stacktrace:

    /opt/RoonServer/Mono/bin/RoonAppliance() [0x4ed10e]
    /opt/RoonServer/Mono/bin/RoonAppliance() [0x41993e]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fea5cae6340]
    /opt/RoonServer/Appliance/libroonbase.so(unix_get_ips_with_netmasks+0x3a) [0x7fea58990ffa]
    [0x404e92d0]

I have tried to change netmask from 255.255.255.255 on tun interface to 255.255.255.0 - but no change it still crash.

Stopping openvpn makes Roon run flawlesly.
Hopefully this will be fixed as having vpns down to be able to run Roon is “a bit inconvenient” :slight_smile: