Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有网络状态下点击Ehviewer闪退 #113

Closed
3 of 4 tasks
tmby opened this issue Oct 27, 2023 · 2 comments · Fixed by #141
Closed
3 of 4 tasks

没有网络状态下点击Ehviewer闪退 #113

tmby opened this issue Oct 27, 2023 · 2 comments · Fixed by #141
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tmby
Copy link

tmby commented Oct 27, 2023

复现步骤 / Step to reproduce

设备处于没有网络连接的状态时点击ehviewer

预期行为 / Expected behaviour

正常进入

实际行为 / Actual Behaviour

闪退

应用日志 / App logs

log-2023-10-28-00-28-54-444.zip

备注 / Addition details

No response

EhViewer 版本号 / EhViewer version code

1.8.11.0-SNAPSHOT

EhViewer CI 版本 / EhViewer CI Version

ebde450

Android 系统版本 / Android version

HarmonyOS 4.0.0.116

设备型号 / Device model

HUAWEI Nova 9 Pro

SoC 型号 / Soc model

高通骁龙778G 4G

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR ,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
  • 您确保已使用最新 CI 版本测试,并且该问题在最新 CI 版本中并未解决 / This bug have not solved in latest CI version
@tmby tmby added the bug Something isn't working label Oct 27, 2023
@FooIbar
Copy link
Owner

FooIbar commented Oct 27, 2023

java.lang.IllegalArgumentException: Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.
        at android.net.Network.fromNetworkHandle(Network.java:453)
        at android.net.NetworkUtils.getDnsNetwork(Native Method)
        at android.net.DnsResolver.query(DnsResolver.java:446)
        at okhttp3.android.AndroidAsyncDns.query(AndroidAsyncDns.kt:47)
        at okhttp3.AsyncDns$Companion.toDns$lambda-2(AsyncDns.kt:80)
        at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:169)
        at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:132)
        at okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:74)
        at okhttp3.internal.connection.RealRoutePlanner.planConnect(RealRoutePlanner.kt:147)
        at okhttp3.internal.connection.RealRoutePlanner.plan(RealRoutePlanner.kt:67)
        at okhttp3.internal.connection.FastFallbackExchangeFinder.launchTcpConnect(FastFallbackExchangeFinder.kt:118)
        at okhttp3.internal.connection.FastFallbackExchangeFinder.find(FastFallbackExchangeFinder.kt:62)
        at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:267)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:65)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at eu.kanade.tachiyomi.network.interceptor.WebViewInterceptor.intercept(WebViewInterceptor.kt:35)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at com.chuckerteam.chucker.api.ChuckerInterceptor.intercept(ChuckerInterceptor.kt:28)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:205)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:537)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:930)

Same stacktrace Ehviewer-Overhauled/Ehviewer#1311
CC: @asuka-mio

@FooIbar FooIbar self-assigned this Oct 29, 2023
@FooIbar FooIbar added this to the 1.8.10.4 milestone Oct 29, 2023
@FooIbar
Copy link
Owner

FooIbar commented Oct 29, 2023

square/okhttp#3477

@FooIbar FooIbar modified the milestones: 1.8.10.4, 1.8.11.0 Oct 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants