Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

app crash after connect if "Tunnel Nameserver" setting is empty #20

Open
ThomasCr opened this issue Aug 16, 2015 · 6 comments
Open

app crash after connect if "Tunnel Nameserver" setting is empty #20

ThomasCr opened this issue Aug 16, 2015 · 6 comments

Comments

@ThomasCr
Copy link

After connecting to my Server the app crashed.

screenshot_2015-08-16-16-23-02
screenshot_2015-08-16-16-23-08

GALAXY S5 Plus (SM-G901F) with Android 5.0.2

Any Idea where to get more informations?

@yvesf
Copy link
Owner

yvesf commented Aug 16, 2015

If you have the android sdk installed on a computer then please post the stacktrace that you receive using 'logcat' http://developer.android.com/tools/help/logcat.html

@ghost
Copy link

ghost commented Oct 11, 2015

Some problem here. Device is a HTC One Mini 2.

----------------------------
C:\WINDOWS\system32>adb logcat Iodine:V VPN_SERVICE:V AndroidRuntime:V *:S
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
D/VPN_SERVICE(25881): VPN Thread enter
D/VPN_SERVICE(25881): Send status: org.xapek.andiodine.IodineVpnService.STATUS_CONNECT
D/VPN_SERVICE(25881): Send: Intent { act=org.xapek.andiodine.IodineVpnService.STATUS_CONNECT (has extras) }
I/Iodine  (25881): Opened IPv4 UDP socket
I/Iodine  (25881): Autodetecting DNS query type (use -T to override)
I/Iodine  (25881): .
D/VPN_SERVICE(25881): Send status: org.xapek.andiodine.IodineVpnService.STATUS_CONNECT
D/VPN_SERVICE(25881): Send: Intent { act=org.xapek.andiodine.IodineVpnService.STATUS_CONNECT (has extras) }
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881):
I/Iodine  (25881): Using DNS type TXT queries
I/Iodine  (25881): Version ok, both using protocol v 0x00000502. You are user #0
I/Iodine  (25881): Server tunnel IP is 10.8.0.129
I/Iodine  (25881): Skipping raw mode
I/Iodine  (25881): Using EDNS0 extension
I/Iodine  (25881): Switching upstream to codec Base128
I/Iodine  (25881): Server switched upstream to codec Base128
I/Iodine  (25881): Autodetecting downstream codec (use -O to override)
I/Iodine  (25881): Switching downstream to codec Raw
I/Iodine  (25881): Server switched downstream to codec Raw
I/Iodine  (25881): Switching to lazy mode for low-latency
I/Iodine  (25881): Server switched to lazy mode
I/Iodine  (25881): Autoprobing max downstream fragment size... (skip with -m fragsize)
I/Iodine  (25881): 768 ok..
I/Iodine  (25881): 1152 ok..
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): 1344 not ok..
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): 1248 not ok..
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): 1200 not ok..
I/Iodine  (25881): 1176 ok..
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): .
I/Iodine  (25881): 1188 not ok..
I/Iodine  (25881): will use 1176-2=1174
I/Iodine  (25881): Setting downstream fragment size to max 1174...
I/Iodine  (25881): Handshake successful, leave native code
D/VPN_SERVICE(25881): Handshake successful
D/VPN_SERVICE(25881): Send status: org.xapek.andiodine.IodineVpnService.STATUS_CONNECTED
D/VPN_SERVICE(25881): Send: Intent { act=org.xapek.andiodine.IodineVpnService.STATUS_CONNECTED (has extras) }
D/VPN_SERVICE(25881): Build tunnel for configuration: ip=10.8.0.130 netbits=262 mtu=1130
D/VPN_SERVICE(25881): VPN Thread exit
E/AndroidRuntime(25881): FATAL EXCEPTION: org.xapek.andiodine.IodineVpnService
E/AndroidRuntime(25881): Process: org.xapek.andiodine, PID: 25881
E/AndroidRuntime(25881): java.lang.IllegalArgumentException: Bad prefixLength
E/AndroidRuntime(25881):        at android.net.VpnService$Builder.check(VpnService.java:308)
E/AndroidRuntime(25881):        at android.net.VpnService$Builder.addAddress(VpnService.java:327)
E/AndroidRuntime(25881):        at org.xapek.andiodine.IodineVpnService.runTunnel(IodineVpnService.java:314)
E/AndroidRuntime(25881):        at org.xapek.andiodine.IodineVpnService.run(IodineVpnService.java:229)
E/AndroidRuntime(25881):        at java.lang.Thread.run(Thread.java:864)

@yvesf
Copy link
Owner

yvesf commented Oct 11, 2015

Hi, can you please post the commandline with which you started the iodined server? (mask your -P argument, i'm interested in tunnel_ip/netmask)

@ghost
Copy link

ghost commented Oct 11, 2015

./iodined -f -c -P PASS 10.7.0.1 tunneldomain.de -DD
It don't crash when the "Tunnel Nameserver" in the app is not empty.
Sry for my bad english :P

@ghost
Copy link

ghost commented Oct 11, 2015

The tunnel IP in the commandline was before 10.8.0.1. I changed only to 10.7.0.1.

@yvesf yvesf changed the title app crash after connect app crash after connect if "Tunnel Nameserver" setting is empty Mar 7, 2016
@yvesf
Copy link
Owner

yvesf commented Dec 1, 2016

I cannot reproduce this problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants