eycorsican / kitsunebi-android

A fully-featured V2Ray client for Android.
MIT License
1.76k stars 315 forks source link

配置第一次连接没有问题,断开重连说配置不正确 #97

Open ghost opened 4 years ago

ghost commented 4 years ago

你正在使用哪个版本?

1.7.0

使用最新版本是否还遇到同样的问题?

1.7.0

你的手机型号和手机操作系统版本是多少?

Galaxy tab S2 android 7.0

你遇到了什么问题?

配置第一次连接没有问题,断开重连说配置不正确 --------- beginning of main 09-21 20:58:00.216 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x27 surface={isValid=true -2055739392} surfaceGenerationChanged=true 09-21 20:58:00.216 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -2055739392} hwInitialized=true 09-21 20:58:00.220 7338 7357 D mali_winsys: EGLint new_window_surface(egl_winsys_display, void, EGLSurface, EGLConfig, egl_winsys_surface, egl_color_buffer_format, EGLBoolean) returns 0x3000, [1536x2048]-format:1 09-21 20:58:00.224 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.225 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.231 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.232 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.237 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.238 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.242 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.243 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:00.282 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1 09-21 20:58:00.282 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: MSG_WINDOW_FOCUS_CHANGED 1 09-21 20:58:00.283 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -2055739392} 09-21 20:58:00.284 7338 7338 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@c97b0c6 nm : fun.kitsunebi.kitsunebi4android ic=null 09-21 20:58:00.284 7338 7338 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus 09-21 20:58:00.293 7338 7338 D InputTransport: Input channel constructed: fd=145 09-21 20:58:00.293 7338 7338 D InputTransport: Input channel destroyed: fd=146 09-21 20:58:00.324 7338 7338 D ViewRootImpl@f9dec9[EndpointListActivity]: mHardwareRenderer.destroy()#1 09-21 20:58:00.329 7338 7338 D ViewRootImpl@f9dec9[EndpointListActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true 09-21 20:58:00.336 7338 7357 D OpenGLRenderer: endAllActiveAnimators on 0x8571d700 (MenuPopupWindow$MenuDropDownListView) with handle 0x8e1191a0 09-21 20:58:00.336 7338 7338 D ViewRootImpl@7f7fa1d[PopupWindow:8daf2f4]: mHardwareRenderer.destroy()#1 09-21 20:58:00.344 7338 7338 D ViewRootImpl@7f7fa1d[PopupWindow:8daf2f4]: Relayout returned: oldFrame=[1144,65][1536,865] newFrame=[1144,65][1536,865] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true 09-21 20:58:00.468 7338 7338 D ViewRootImpl@7f7fa1d[PopupWindow:8daf2f4]: mHardwareRenderer.destroy()#4 09-21 20:58:00.468 7338 7338 D ViewRootImpl@7f7fa1d[PopupWindow:8daf2f4]: dispatchDetachedFromWindow 09-21 20:58:00.472 7338 7338 D InputTransport: Input channel destroyed: fd=128 09-21 20:58:00.721 7338 7338 D ViewRootImpl@f9dec9[EndpointListActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=false 09-21 20:58:01.048 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: ViewPostImeInputStage processPointer 0 09-21 20:58:01.133 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: ViewPostImeInputStage processPointer 1 09-21 20:58:01.166 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: MSG_WINDOW_FOCUS_CHANGED 0 09-21 20:58:01.196 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:01.196 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:01.216 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: ThreadedRenderer.create() translucent=false 09-21 20:58:01.219 7338 7338 D InputTransport: Input channel constructed: fd=128 09-21 20:58:01.219 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: setView = DecorView@44ae580[ProxyLogActivity] touchMode=true 09-21 20:58:01.220 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: dispatchAttachedToWindow 09-21 20:58:01.237 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x27 surface={isValid=true -1910470656} surfaceGenerationChanged=true 09-21 20:58:01.238 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -1910470656} hwInitialized=true 09-21 20:58:01.240 7338 7357 D mali_winsys: EGLint new_window_surface(egl_winsys_display, void*, EGLSurface, EGLConfig, egl_winsys_surface*, egl_color_buffer_format, EGLBoolean) returns 0x3000, [1536x2048]-format:1 09-21 20:58:01.244 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:01.245 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:01.262 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1 09-21 20:58:01.262 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: MSG_WINDOW_FOCUS_CHANGED 1 09-21 20:58:01.262 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -1910470656} 09-21 20:58:01.263 7338 7338 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@838d9ac nm : fun.kitsunebi.kitsunebi4android ic=null 09-21 20:58:01.263 7338 7338 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus 09-21 20:58:01.269 7338 7338 D InputTransport: Input channel constructed: fd=148 09-21 20:58:01.269 7338 7338 D InputTransport: Input channel destroyed: fd=145 09-21 20:58:01.288 7338 7357 D OpenGLRenderer: endAllActiveAnimators on 0x8e216080 (RippleDrawable) with handle 0x83330020 09-21 20:58:01.289 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: mHardwareRenderer.destroy()#1 09-21 20:58:01.295 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true 09-21 20:58:01.687 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=false 09-21 20:58:02.049 7338 7109 I System.out: send ping from tile service. 09-21 20:58:02.120 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: ViewPostImeInputStage processPointer 0 09-21 20:58:02.196 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: ViewPostImeInputStage processPointer 1 09-21 20:58:02.241 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: MSG_WINDOW_FOCUS_CHANGED 0 09-21 20:58:02.247 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: mHardwareRenderer.destroy()#4 09-21 20:58:02.247 7338 7338 D ViewRootImpl@6c6fda2[AnalysisActivity]: dispatchDetachedFromWindow 09-21 20:58:02.253 7338 7338 D InputTransport: Input channel destroyed: fd=149 09-21 20:58:02.265 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.265 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.272 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.278 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: ThreadedRenderer.create() translucent=false 09-21 20:58:02.282 7338 7338 D InputTransport: Input channel constructed: fd=137 09-21 20:58:02.282 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: setView = DecorView@45e4ce6[AnalysisActivity] touchMode=true 09-21 20:58:02.284 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: dispatchAttachedToWindow 09-21 20:58:02.308 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x27 surface={isValid=true -1884856320} surfaceGenerationChanged=true 09-21 20:58:02.308 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -1884856320} hwInitialized=true 09-21 20:58:02.311 7338 7357 D mali_winsys: EGLint new_window_surface(egl_winsys_display, void, EGLSurface, EGLConfig, egl_winsys_surface, egl_color_buffer_format, EGLBoolean) returns 0x3000, [1536x2048]-format:1 09-21 20:58:02.318 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.319 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.325 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.327 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.332 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.333 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.340 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.341 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:02.371 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1 09-21 20:58:02.371 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: MSG_WINDOW_FOCUS_CHANGED 1 09-21 20:58:02.371 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -1884856320} 09-21 20:58:02.372 7338 7338 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@4aaf035 nm : fun.kitsunebi.kitsunebi4android ic=null 09-21 20:58:02.372 7338 7338 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus 09-21 20:58:02.383 7338 7338 D InputTransport: Input channel constructed: fd=145 09-21 20:58:02.383 7338 7338 D InputTransport: Input channel destroyed: fd=148 09-21 20:58:02.408 7338 7357 D OpenGLRenderer: endAllActiveAnimators on 0x8e32d400 (RippleDrawable) with handle 0x833741b0 09-21 20:58:02.408 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: mHardwareRenderer.destroy()#1 09-21 20:58:02.413 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true 09-21 20:58:02.797 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: mHardwareRenderer.destroy()#4 09-21 20:58:02.797 7338 7338 D ViewRootImpl@830b203[ProxyLogActivity]: dispatchDetachedFromWindow 09-21 20:58:02.802 7338 7338 D InputTransport: Input channel destroyed: fd=128 09-21 20:58:03.217 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: ViewPostImeInputStage processPointer 0 09-21 20:58:03.280 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: ViewPostImeInputStage processPointer 1 09-21 20:58:03.306 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: MSG_WINDOW_FOCUS_CHANGED 0 09-21 20:58:03.337 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:03.337 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:03.343 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:03.351 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: ThreadedRenderer.create() translucent=false 09-21 20:58:03.354 7338 7338 D InputTransport: Input channel constructed: fd=128 09-21 20:58:03.355 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: setView = DecorView@b1f9364[LogcatActivity] touchMode=true 09-21 20:58:03.358 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: dispatchAttachedToWindow 09-21 20:58:03.377 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x27 surface={isValid=true -1911312384} surfaceGenerationChanged=true 09-21 20:58:03.377 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -1911312384} hwInitialized=true 09-21 20:58:03.383 7338 7357 D mali_winsys: EGLint new_window_surface(egl_winsys_display, void*, EGLSurface, EGLConfig, egl_winsys_surface*, egl_color_buffer_format, EGLBoolean) returns 0x3000, [1536x2048]-format:1 09-21 20:58:03.384 7338 7338 D ScrollView: onsize change changed 09-21 20:58:03.390 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:03.392 7338 7338 D TextView: setTypeface with style : 0 09-21 20:58:03.419 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1 09-21 20:58:03.419 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: MSG_WINDOW_FOCUS_CHANGED 1 09-21 20:58:03.419 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -1911312384} 09-21 20:58:03.423 7338 7338 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@c68cd93 nm : fun.kitsunebi.kitsunebi4android ic=null 09-21 20:58:03.423 7338 7338 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus 09-21 20:58:03.427 7338 7338 D InputTransport: Input channel constructed: fd=154 09-21 20:58:03.427 7338 7338 D InputTransport: Input channel destroyed: fd=145 09-21 20:58:03.459 7338 7357 D OpenGLRenderer: endAllActiveAnimators on 0x8e19c500 (RippleDrawable) with handle 0x83330f60 09-21 20:58:03.459 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: mHardwareRenderer.destroy()#1 09-21 20:58:03.463 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true 09-21 20:58:03.842 7338 7338 D ViewRootImpl@c791f41[AnalysisActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=false 09-21 20:58:04.049 7338 7109 I System.out: send ping from tile service. 09-21 20:58:05.386 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: ViewPostImeInputStage processPointer 0 09-21 20:58:05.447 7338 7338 D ViewRootImpl@77d98f7[LogcatActivity]: ViewPostImeInputStage processPointer 1

你遇到的问题可以用固定步骤重现吗?

断开后重连就可以重现,只在此机上,另一台S8没问题

你正使用的配置


{
  "dns": {},
  "log": {
    "loglevel": "none"
  },
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "myhost.com",
            "port": 443,
            "users": [
              {
                "id": "some-uuid-here",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": true,
          "serverName": "myhost.com"
        },
        "wsSettings": {
          "headers": {
            "Host": "myhost.com"
          },
          "path": "\/ws"
        }
      },
      "tag": "proxy"
    },
    {
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "AsIs"
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "block"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "bufferSize": 4096,
        "connIdle": 300,
        "downlinkOnly": 0,
        "handshake": 4,
        "uplinkOnly": 0
      }
    }
  },
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "network": "tcp,udp",
        "outboundTag": "proxy",
        "type": "field"
      }
    ]
  }
}
hsghost commented 4 years ago

Same issue here. Tried both 1.7.0 and 1.7.2, problem persists. DNS config gets lost in the config file.

On MiTV4A, Android 6.0.1, AArch64 rev 4 CPU.

Other than this problem, working flawlessly. Please fix, thank you.