d***@sohu.com
d***@sohu.com
  • 发布:2017-06-07 19:12
  • 更新:2017-07-25 10:16
  • 阅读:1772

【报Bug】Zip 压缩图片崩溃

分类:5+ SDK
Zip

详细问题描述
[内容]
调用CompressImage函数造成应用程序崩溃,包括HelloH5+也会,三星手机,4.3操作系统。
我看有人提过这个问题,4-14日版本已经标注已解决,但是并没有。
重现步骤

[结果]
java.lang.RuntimeException: java.lang.Throwable: Warning: A WebView method was called on thread 'pool-1-thread-1'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
at android.webkit.WebView.checkThread(WebView.java:2093)
at android.webkit.WebView.getUrl(WebView.java:1184)
at io.dcloud.common.adapter.ui.AdaWebview.obtainFullUrl(AdaWebview.java:369)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:233)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:204)
at io.dcloud.feature.pdr.a.b(CompressImage.java:67)
at io.dcloud.feature.pdr.a$1.run(CompressImage.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
[期望]

运行环境
[系统版本]
Android 4.3
联系方式
[QQ]
[电话]
13811036657

2017-06-07 19:12 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

提供下所使用的HBuilder版本信息
并且提供下存在问题的手机设备的详细信息。

d***@sohu.com

d***@sohu.com (作者)

我用的离线打包,最能说明问题的是,直接从你们网站下载的HelloH5+那个APK装上,运行压缩图片那个例子,同样闪退
三星 Galaxy Note3 Lite 4G
SM-N7508V
Android 4.3

3***@qq.com

3***@qq.com

同样报错的加1.

3***@qq.com

3***@qq.com

荣耀6,安卓4.4

deviceId=864387024711422
replacements=[Ljava.lang.String;@41608020
HARDWARE=Kirin920
matchers=[Ljava.lang.String;@41607e20
RADIO=unknown
versionCode=115
HOST=shacidculx1385
HIDE_PRODUCT_INFO=false
TAGS=ota-rel-keys,release-keys
ID=HDH60-L11
MANUFACTURER=HUAWEI
TYPE=user
TIME=1440785980000
FINGERPRINT=Huawei/H60-L11/hwH60:4.4.2/HDH60-L11/CHNC00B317:user/ota-rel-keys,release-keys
UNKNOWN=unknown
BOARD=H60-L11
PRODUCT=H60-L11
versionName=1.1.5
DISPLAY=H60-L11V100R001CHNC00B317
USER=jenkins
DEVICE=hwH60
MODEL=H60-L11
BOOTLOADER=unknown
CPU_ABI=armeabi-v7a
CPU_ABI2=armeabi
IS_DEBUGGABLE=false
SERIAL=7N2TDM155M040731
BRAND=Huawei
java.lang.RuntimeException: java.lang.Throwable: A WebView method was called on thread 'pool-5-thread-3'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 1) {4247c1d0} called on null, FYI main Looper is Looper (main, tid 1) {4247c1d0})
at android.webkit.WebView.checkThread(WebView.java:2098)
at android.webkit.WebView.getUrl(WebView.java:1238)
at io.dcloud.common.adapter.ui.AdaWebview.obtainFullUrl(AdaWebview.java:314)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:225)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:196)
at io.dcloud.feature.pdr.a.b(CompressImage.java:67)
at io.dcloud.feature.pdr.a$1.run(CompressImage.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.Throwable: A WebView method was called on thread 'pool-5-thread-3'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 1) {4247c1d0} called on null, FYI main Looper is Looper (main, tid 1) {4247c1d0})
at android.webkit.WebView.checkThread(WebView.java:2088)
... 9 more
java.lang.Throwable: A WebView method was called on thread 'pool-5-thread-3'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 1) {4247c1d0} called on null, FYI main Looper is Looper (main, tid 1) {4247c1d0})
at android.webkit.WebView.checkThread(WebView.java:2088)
at android.webkit.WebView.getUrl(WebView.java:1238)
at io.dcloud.common.adapter.ui.AdaWebview.obtainFullUrl(AdaWebview.java:314)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:225)
at io.dcloud.feature.pdr.a$b.a(CompressImage.java:196)
at io.dcloud.feature.pdr.a.b(CompressImage.java:67)
at io.dcloud.feature.pdr.a$1.run(CompressImage.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

d***@sohu.com

d***@sohu.com (作者)

呼叫技术支持...

该问题目前已经被锁定, 无法添加新回复