You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
Unable to start YggdrasilTunService due to incorrect defaults in MulticastInterfaces.Port (required uint16 but returned Double).
Preconditions:
Build native lib for Android in Yggdrasil develop branch.
vadym@ubuntu:~/yggdrasil-go$ go get github.com/yggdrasil-network/yggdrasil-extras@ffba69b
go: downloading github.com/yggdrasil-network/yggdrasil-extras v0.0.0-20210927081343-ffba69bac4cd
go get: added github.com/yggdrasil-network/yggdrasil-extras v0.0.0-20210927081343-ffba69bac4cd
vadym@ubuntu:~/yggdrasil-go$ ./clean
vadym@ubuntu:~/yggdrasil-go$ ANDROID=true ./build
Building aar for Android
go get: upgraded golang.org/x/mobile v0.0.0-20210527171505-7e972142eb43 => v0.0.0-20210924032853-1c027f395ef7
vadym@ubuntu:~/yggdrasil-go$
AR: app crashes, configJson has following structure and icorrect port typ
e
Stack trace:
Caused by: go.Universe$proxyerror: json: cannot unmarshal number 0.0 into Go struct field MulticastInterfaceConfig.MulticastInterfaces.Port of type uint16
at mobile.Yggdrasil.startJSON(Native Method)
at org.yggdrasil.app.crispa.YggdrasilTunService.setupTunInterface(YggdrasilTunService.kt:122)
at org.yggdrasil.app.crispa.YggdrasilTunService.onStartCommand(YggdrasilTunService.kt:62)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3326)
at android.app.ActivityThread.-wrap21(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1582)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
I don't think setting the value to 0 in the defaults package will help — that's already the default value and even the IfMTU is showing 65535.0 in your screenshot.
I wonder if this is a bug in the gomobile bindings?
I don't think setting the value to 0 in the defaults package will help — that's already the default value and even the IfMTU is showing 65535.0 in your screenshot.
I wonder if this is a bug in the gomobile bindings?
Anyway I was able to run the native lib by overriding incorrect values:
Unable to start YggdrasilTunService due to incorrect defaults in MulticastInterfaces.Port (required uint16 but returned Double).
Preconditions:
Build native lib for Android in Yggdrasil develop branch.
Start YggdrasilTunService which receives
Appropriate line in extras:
https://github.com/yggdrasil-network/yggdrasil-extras/blob/master/src/mobile/mobile.go#L109
AR: app crashes, configJson has following structure and icorrect port typ
e
Stack trace:
Probable solution: set default port 0 for defauts in MulticastInterfaceConfig
https://github.com/yggdrasil-network/yggdrasil-go/blob/f92d812f3cc02f5f1aa49fa4085dfe523afd313b/src/defaults/defaults_other.go#L18
The text was updated successfully, but these errors were encountered: