- 发布:2023-02-17 11:35
- 更新:2023-02-17 11:41
- 阅读:286
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 企业版 20H2
HBuilderX类型: 正式
HBuilderX版本号: 3.6.18
手机系统: Android
手机系统版本号: Android 7.1.1
手机厂商: zc
手机机型: ZC-40A
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
<view v-if="topPaneList.length" style="height: 100%;width: 100%;background-color: #a7d3ee;">
<image v-if="topPaneList[topPaneIndex] && topPaneList[topPaneIndex].src && matchUrlType(topPaneList[topPaneIndex].src) == 'image'" :style="{width: windowWidth + 'px', height: topHeight}"
src="topPaneList[topPaneIndex].type ? topPaneList[topPaneIndex].src : 'file://' +topPaneList[topPaneIndex].src" @error="imageError(topPaneList[topPaneIndex])">
</image>
</view>
</view>
操作步骤:
长时间联网,动态切换播放本地资源图片或视频
长时间联网,动态切换播放本地资源图片或视频
预期结果:
不闪退
不闪退
实际结果:
不确定时间段的闪退,
不确定时间段的闪退,
bug描述:
app播放图片或视频,动态切换,长时间运行会闪退。就抓取系统日志,出现以下异常:
Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.
02-17 10:35:38.604 4642 4642 W ExifInterface: java.io.IOException: Invalid marker: 89
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.media.ExifInterface.getJpegAttributes(ExifInterface.java:1850)
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.media.ExifInterface.loadAttributes(ExifInterface.java:1477)
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.media.ExifInterface.<init>(ExifInterface.java:1114)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.js.file.FileFeatureImpl.a(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.js.file.FileFeatureImpl.execute(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.g.b.a(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.g.b.b(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.g.b.processEvent(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.e.c.c.dispatchEvent(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.common.core.ui.l.processEvent(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.common.core.ui.h.exec(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.common.core.ui.h$a.execute(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(Unknown Source)
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.os.Handler.dispatchMessage(Handler.java:102)
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.os.Looper.loop(Looper.java:154)
02-17 10:35:38.604 4642 4642 W ExifInterface: at android.app.ActivityThread.main(ActivityThread.java:6119)
02-17 10:35:38.604 4642 4642 W ExifInterface: at java.lang.reflect.Method.invoke(Native Method)
02-17 10:35:38.604 4642 4642 W ExifInterface: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:982)
02-17 10:35:38.604 4642 4642 W ExifInterface: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:872)
02-17 10:35:38.607 4642 4642 W Bitmap : Called getRowBytes() on a recycle()'d bitmap! This is undefined behavior!
2 个回复
9***@qq.com (作者)
这个是抓取系统日志文件
DCloud_Android_ST
请提供下可以复现问题的demo示例