详细问题描述
[内容]
HBUILDER版本9.1.14.201808032109
点击运行,真机运行。 项目跑起来后,等一段时间。会报空指针异常。
重现步骤
[步骤]
[结果]
09-12 18:02:00.319 3115-6327/? E/[HwRecSys]LocationController: location valid no need locate
09-12 18:02:00.878 574-574/? E/WifiHAL: enter wifi_get_link_stats
09-12 18:02:00.892 638-638/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
09-12 18:02:00.892 1187-1377/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1
09-12 18:02:01.461 26941-27006/io.dcloud.HBuilder E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Android/data/io.dcloud.HBuilder/downloads (Is a directory)
09-12 18:02:01.463 26941-27006/io.dcloud.HBuilder E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Android/data/io.dcloud.HBuilder/downloads (Is a directory)
--------- beginning of crash
09-12 18:02:01.481 26941-27006/io.dcloud.HBuilder E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-3
Process: io.dcloud.HBuilder, PID: 26941
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at io.dcloud.feature.pdr.a.b(CompressImage.java:105)
at io.dcloud.feature.pdr.a$1.run(CompressImage.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:784)
09-12 18:02:01.901 26941-27006/io.dcloud.HBuilder E/UncaughtExceptionHandler: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
09-12 18:02:02.029 1187-1365/? E/InputDispatcher: channel 'c73ee42 io.dcloud.HBuilder/io.dcloud.PandoraEntryActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-12 18:02:02.036 1187-1394/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=1477, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
09-12 18:02:02.037 1187-1394/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=1478, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
09-12 18:02:02.045 1975-2869/? E/HsmCoreServiceImpl: onTransact in code is: 102
09-12 18:02:02.046 1975-5964/? E/HsmCoreServiceImpl: onTransact in code is: 102
09-12 18:02:02.081 638-638/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
09-12 18:02:02.081 1187-1377/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1
09-12 18:02:02.088 638-638/? E/wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
09-12 18:02:02.106 1187-1430/? E/HicomPolicyManager: udp acc is not start yet!
09-12 18:02:02.106 1187-1430/? E/HicomPolicyManager: Network Evaluation is not start yet!
foreground app info is null
09-12 18:02:02.139 3452-3510/? E/HwLauncher: SettingsEx , no such field.
09-12 18:02:02.156 1187-1954/? E/HwActivityManagerService: getProcessRecordFromMTM process info is null ,mUid :27088
09-12 18:02:02.156 1187-1954/? E/ProcessInfoCollector: recordProcessInfo failed to get process record
09-12 18:02:02.169 1975-2869/? E/HsmCoreServiceImpl: onTransact in code is: 103
09-12 18:02:02.169 1975-2869/? E/HsmCoreServiceImpl: onTransact in code is: 103
09-12 18:02:02.182 1975-2869/? E/HsmCoreServiceImpl: onTransact in code is: 102
09-12 18:02:02.183 1975-5964/? E/HsmCoreServiceImpl: onTransact in code is: 102
09-12 18:02:03.688 26631-26677/? E/memtrack: Couldn't load memtrack module
这里是真机运行时,android studio中logcat输出的内容。
[期望]
运行环境
[系统版本]
windows7
[浏览器版本]
[IDE版本]
HBUILDER版本9.1.14.201808032109
[手机操作系统]
android8.0.0
[手机型号]
huawei mate9
[mui版本]
mui 3.7.0
附件
[代码片段]
[安装包]
联系方式
[QQ]
252059517@qq.com
[电话]
2 个回复
vvipLin (作者)
已解决,问题如何关闭呢。忘记关了。 是plus的下载方法下载不存在的图片文件导致的。
逃课生111
我也遇到这个问题了。是plus的下载方法下载不存在的图片文件导致的?什么意思,请问可以说清楚一些吗?