w***@163.com
w***@163.com
  • 发布:2023-08-16 11:31
  • 更新:2023-11-15 09:05
  • 阅读:371

【报Bug】Uni小程序iOS端-[PDRCoreFrameJSObjects getCommandInstance:HtmlID:appContext:frameContext:]方法报错造成闪退

分类:uni小程序sdk

产品分类: uni小程序SDK

手机系统: iOS

手机系统版本号: iOS 15

手机厂商: 苹果

手机机型: 任意机型

页面类型: vue

SDK版本号: 3.4.15

操作步骤:

进入小程序时有概率触发

预期结果:

不要触发闪退

实际结果:

偶尔触发闪退

bug描述:

PDRCoreFeature.m文件1333行,执行-[PDRCoreFrameJSObjects getCommandInstance:HtmlID:appContext:frameContext:]方法时报错闪退。
报错日志:


Thread 3 name:  com.taobao.weex.bridge  
Thread 3 Crashed:  
0   libobjc.A.dylib                     0x00000001b690a008 0x1b6908000 + 8200  
1   CoreFoundation                      0x00000001bd3f6740 0x1bd3f4000 + 10048  
2   wwwwwwwwwwww                    0x000000010351a5a8 -[PDRCoreFrameJSObjects getCommandInstance:HtmlID:appContext:frameContext:] + [PDRCoreFeature.m : 1333]  
3   wwwwwwwwwwww                    0x0000000103519558 -[PDRCoreFeature Execute:] + [PDRCoreFeature.m : 0]  
4   wwwwwwwwwwww                    0x00000001035d8fe0 -[PDRCoreApp handleCmds:] + [PDRCoreApp.m : 3020]  
5   wwwwwwwwwwww                    0x00000001034ffe18 -[PDRCoreAppFrame webViewEnginde:didReceiveSyncScriptMessage:] + [PDRCoreAppFrame.m : 2828]  
6   wwwwwwwwwwww                    0x00000001036a0b30 -[H5WeexWebview handleMessage:withObject:] + [H5WeexWebview.m : 0]  
7   wwwwwwwwwwww                    0x000000010369fb00 __28-[H5WeexWebview refreshWeex]_block_invoke + [H5WeexWebview.m : 0]  
8   wwwwwwwwwwww                    0x00000001037c9e50 -[WXSDKInstance(DCPlusBridge) execSync:] + [WXSDKInstance+Bridge.m : 40]  
9   wwwwwwwwwwww                    0x0000000103797968 -[PlusWeexModule execSync:] + [PlusWeexModule.m : 0]  
10  CoreFoundation                      0x00000001bd463da0 0x1bd3f4000 + 458144  
11  CoreFoundation                      0x00000001bd4134e8 0x1bd3f4000 + 128232  
12  wwwwwwwwwwww                    0x00000001037abf90 -[WXModuleMethod invoke] + [WXModuleMethod.m : 110]  
13  wwwwwwwwwwww                    0x0000000103713f64 __42-[WXBridgeContext registerGlobalFunctions]_block_invoke_5.214 + [WXBridgeContext.mm : 0]  
14  wwwwwwwwwwww                    0x00000001037f8bac __43-[WXJSCoreBridge registerCallNativeModule:]_block_invoke + [WXJSCoreBridge.mm : 0]  
15  CoreFoundation                      0x00000001bd463da0 0x1bd3f4000 + 458144  
16  CoreFoundation                      0x00000001bd4134e8 0x1bd3f4000 + 128232  
17  JavaScriptCore                      0x00000001cfc0d598 0x1cf7e0000 + 4380056  
18  JavaScriptCore                      0x00000001cfc0d07c 0x1cf7e0000 + 4378748  
19  JavaScriptCore                      0x00000001cfc0b660 0x1cf7e0000 + 4372064  
20  JavaScriptCore                      0x00000001cfbb1934 0x1cf7e0000 + 4004148  
21  JavaScriptCore                      0x00000001cfbae870 0x1cf7e0000 + 3991664  
22  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
23  JavaScriptCore                      0x00000001cfbae870 0x1cf7e0000 + 3991664  
24  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
25  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
26  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
27  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
28  JavaScriptCore                      0x00000001cfbaf5d0 0x1cf7e0000 + 3995088  
29  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
30  JavaScriptCore                      0x00000001cfb8a61c 0x1cf7e0000 + 3843612  
31  JavaScriptCore                      0x00000001d02f9040 0x1cf7e0000 + 11636800  
32  JavaScriptCore                      0x00000001d062d848 0x1cf7e0000 + 14997576  
33  JavaScriptCore                      0x00000001cfbb182c 0x1cf7e0000 + 4003884  
34  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
35  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
36  JavaScriptCore                      0x00000001cfb8a61c 0x1cf7e0000 + 3843612  
37  JavaScriptCore                      0x00000001d02f9040 0x1cf7e0000 + 11636800  
38  JavaScriptCore                      0x00000001d062d848 0x1cf7e0000 + 14997576  
39  JavaScriptCore                      0x00000001cfbb182c 0x1cf7e0000 + 4003884  
40  JavaScriptCore                      0x00000001cfbafb5c 0x1cf7e0000 + 3996508  
41  JavaScriptCore                      0x00000001cfbae870 0x1cf7e0000 + 3991664  
42  JavaScriptCore                      0x00000001cfbae870 0x1cf7e0000 + 3991664  
43  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
44  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
45  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
46  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
47  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
48  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
49  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
50  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
51  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
52  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
53  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
54  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
55  JavaScriptCore                      0x00000001cfbafb5c 0x1cf7e0000 + 3996508  
56  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
57  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
58  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
59  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
60  JavaScriptCore                      0x00000001cfbaf5d0 0x1cf7e0000 + 3995088  
61  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
62  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
63  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
64  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
65  JavaScriptCore                      0x00000001cfbafb5c 0x1cf7e0000 + 3996508  
66  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
67  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
68  JavaScriptCore                      0x00000001cfbafb5c 0x1cf7e0000 + 3996508  
69  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
70  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
71  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
72  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
73  JavaScriptCore                      0x00000001cfbafb5c 0x1cf7e0000 + 3996508  
74  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
75  JavaScriptCore                      0x00000001cfbae900 0x1cf7e0000 + 3991808  
76  JavaScriptCore                      0x00000001cfb8a61c 0x1cf7e0000 + 3843612  
77  JavaScriptCore                      0x00000001d02f9040 0x1cf7e0000 + 11636800  
78  JavaScriptCore                      0x00000001cfc2bb10 0x1cf7e0000 + 4504336  
79  JavaScriptCore                      0x00000001cf7e21f0 0x1cf7e0000 + 8688  
80  wwwwwwwwwwww                    0x00000001037f67e8 -[WXJSCoreBridge callJSMethod:args:] + [WXJSCoreBridge.mm : 0]  
81  wwwwwwwwwwww                    0x0000000103719820 -[WXBridgeContext callJSMethod:args:onContext:completion:] + [WXBridgeContext.mm : 0]  
82  wwwwwwwwwwww                    0x000000010371adbc -[WXBridgeContext _sendQueueLoop] + [WXBridgeContext.mm : 1130]  
83  wwwwwwwwwwww                    0x0000000103719510 -[WXBridgeContext executeJsMethod:] + [WXBridgeContext.mm : 949]  
84  wwwwwwwwwwww                    0x000000010380e0e8 __32-[WXBridgeManager callJsMethod:]_block_invoke + [WXBridgeManager.m : 482]  
85  wwwwwwwwwwww                    0x000000010380cb74 +[WXBridgeManager _performBlockOnBridgeThread:instance:] + [WXBridgeManager.m : 179]  
86  Foundation                          0x00000001b789006c 0x1b7858000 + 229484  
87  CoreFoundation                      0x00000001bd4c0298 0x1bd3f4000 + 836248  
88  CoreFoundation                      0x00000001bd4cbbf8 0x1bd3f4000 + 883704  
89  CoreFoundation                      0x00000001bd455f58 0x1bd3f4000 + 401240  
90  CoreFoundation                      0x00000001bd46af84 0x1bd3f4000 + 487300  
91  CoreFoundation                      0x00000001bd46fb58 0x1bd3f4000 + 506712  
92  Foundation                          0x00000001b7896208 0x1b7858000 + 254472  
93  wwwwwwwwwwww                    0x000000010380c84c -[WXBridgeManager _runLoopThread] + [WXBridgeManager.m : 103]  
94  Foundation                          0x00000001b78add54 0x1b7858000 + 351572  
95  libsystem_pthread.dylib             0x0000000205c9d060 0x205c9a000 + 12384  
2023-08-16 11:31 负责人:DCloud_iOS_XHY 分享
已邀请:
DCloud_iOS_XHY

DCloud_iOS_XHY

测试一下最新版本,是否有问题

  • w***@163.com (作者)

    3.8.12版本依然会触发这个崩溃

    2023-09-11 18:16

w***@163.com

w***@163.com (作者)

崩溃分析的截图

HansenWang

HansenWang

请问解决了吗 我在iPhone XR 12.2 和iPhone 12 mini 16.1 上都复现了

要回复问题请先登录注册