e***@sina.com
e***@sina.com
  • 发布:2024-08-13 11:11
  • 更新:2024-08-13 16:36
  • 阅读:112

【报Bug】iOS SDK 3.3.11,nvue 加载图片闪退,报 SDWebImage 错误

分类:uni小程序sdk

产品分类: uni小程序SDK

手机系统: iOS

手机系统版本号: iOS 17

手机厂商: 苹果

手机机型: iPhone 12 mini

页面类型: nvue

SDK版本号: 3.3.11

示例代码:

<image src=""></image>

操作步骤:

写个 <image> 标签,加载本地图片或是线上图片,就闪退了

预期结果:

不闪退,正常显示图片

实际结果:

闪退

bug描述:

nvue 页面在 iOS SDK 3.3.11 下,加载图片闪退,SDWebImage 版本是 5.19.4,以下是闪退日志

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SDWebImageManager loadImageWithURL:options:progress:completed:]: unrecognized selector sent to instance 0x600001d23540'\
First throw call stack:\
(\
0 CoreFoundation 0x0000000127f9c761 exceptionPreprocess + 242\
1 libobjc.A.dylib 0x0000000115a94904 objc_exception_throw + 48\
2 CoreFoundation 0x0000000127fb1873 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0\
3 CoreFoundation 0x0000000127fa0ef4 __forwarding
+ 1459\
4 CoreFoundation 0x0000000127fa30f8 _CF_forwarding_prep_0 + 120\
5 FamilyMart 0x0000000103c4b2b2 -[WXImgLoaderDefaultImpl downloadImageWithURL:imageFrame:userInfo:instance:completed:] + 1455\
6 FamilyMart 0x0000000103bf75bd -[DCImageComponent updateContentImageWithFailedBlock:] + 1681\
7 FamilyMart 0x0000000103bf630f __31-[DCImageComponent updateImage]_block_invoke.348 + 167\
8 libdispatch.dylib 0x000000012435d747 _dispatch_call_block_and_release + 12\
9 libdispatch.dylib 0x000000012435e9f7 _dispatch_client_callout + 8\
10 libdispatch.dylib 0x00000001243668c9 _dispatch_lane_serial_drain + 1127\
11 libdispatch.dylib 0x0000000124367665 _dispatch_lane_invoke + 441\
12 libdispatch.dylib 0x000000012437476e _dispatch_root_queue_drain_deferred_wlh + 318\
13 libdispatch.dylib 0x0000000124373b69 _dispatch_workloop_worker_thread + 590\
14 libsystem_pthread.dylib 0x0000000128ecac55 _pthread_wqthread + 327\
15 libsystem_pthread.dylib 0x0000000128ec9bbf start_wqthread + 15\
)\
libc++abi: terminating due to uncaught exception of type NSException}

2024-08-13 11:11 负责人:无 分享
已邀请:
e***@sina.com

e***@sina.com (作者)

补充:SDK Core目录里面有 libSDWebImage.a,具体项目又通过 CocoaPods 引入了 SDWebImage 5.19.4

BFC

BFC

你好,为什么要用nvue,可以尝试用vue

  • e***@sina.com (作者)

    因为这个页面同时存在视频播放和自定义 navbar,这种业务需求只能用 nvue 做了

    2024-08-13 18:00

  • BFC

    回复 e***@sina.com: 你好,https://ask.dcloud.net.cn/article/36989 根据这个排查一下

    2024-08-13 18:08

要回复问题请先登录注册