苏陌
苏陌
  • 发布:2023-12-23 17:51
  • 更新:2023-12-25 10:58
  • 阅读:270

【报Bug】新建一个uts插件 引入巨量归因BDASignalSDK,它依赖Protobuf,打包之后调用sdk的方法闪退,日志如下

分类:uni-app x

产品分类: uni-app x/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macOs Monterey 12.6

HBuilderX版本号: 3.98

手机系统: iOS

手机系统版本号: iOS 16

手机厂商: 苹果

手机机型: iphone 11

操作步骤:

新建一个uts插件,然后index.uts代码为:

import "BDASignalSDK"  
export function initJl():void{  
    let data: Map<string,any> = new Map()  
    data.set("user_unique_id","1234566")  
    BDASignalSDK.BDASignalManager.register(withOptionalData = data)  
}

config.json代码为:

{  
    "deploymentTarget": "11.0",   // 可选,插件支持的最低 iOS 版本  默认:9.0"  
    "dependencies-pods": [ // 可选, 需要依赖的 CocoaPods 库, HBuilderX 3.8.5+ 版本支持  
    {  
        "name": "BDASignalSDK",  
        "repo": {  
         "git": "https://github.com/oceanengine/bda_signal_sdk.git" //指定 pod 库的仓库地址  
        }  
    },  
    {  
        "name": "Protobuf",  
        "version": "3.25.1"  
    }  
    ]  
}

预期结果:

正常调用

实际结果:

app闪退

bug描述:

新建一个uts插件 引入巨量归因BDASignalSDK,它依赖Protobuf打包之后,调用sdk的方法闪退,日志如下


-------------------------------------    
Translated Report (Full Report Below)    
-------------------------------------    

Incident Identifier: ADAFFE5E-36E1-4B72-8EBB-8673C6E07018    
CrashReporter Key:   C2315A0A-767E-DD9D-D816-AE46F847627B    
Hardware Model:      MacBookPro16,1    
Process:             HBuilder [12219]    
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/9915CB8B-45D0-43A8-ACF7-2794E8A18ED6/data/Containers/Bundle/Application/F6E729A9-3162-4717-9E2B-E2E4A02A7408/Pandora_simulator_debug.app/HBuilder    
Identifier:          com.zhengda.qpzjz.ios    
Version:             1.1.0 (110)    
Code Type:           X86-64 (Native)    
Role:                Foreground    
Parent Process:      launchd_sim [12062]    
Coalition:           com.apple.CoreSimulator.SimDevice.9915CB8B-45D0-43A8-ACF7-2794E8A18ED6 [8670]    
Responsible Process: SimulatorTrampoline [952]    

Date/Time:           2023-12-23 15:21:02.1636  0800    
Launch Time:         2023-12-23 15:20:28.7712  0800    
OS Version:          macOS 14.1.2 (23B92)    
Release Type:        User    
Report Version:      104    

Exception Type:  EXC_BREAKPOINT (SIGTRAP)    
Exception Codes: 0x0000000000000002, 0x0000000000000000    
Triggered by Thread:  5    

Thread 0::  Dispatch queue: com.apple.main-thread    
0   libsystem_kernel.dylib                    0x7ff836116a6e mach_msg2_trap   10    
1   libsystem_kernel.dylib                    0x7ff836124e7a mach_msg2_internal   84    
2   libsystem_kernel.dylib                    0x7ff83611db92 mach_msg_overwrite   653    
3   libsystem_kernel.dylib                    0x7ff836116d5f mach_msg   19    
4   CoreFoundation                            0x7ff80038788e __CFRunLoopServiceMachPort   145    
5   CoreFoundation                            0x7ff800381fdf __CFRunLoopRun   1371    
6   CoreFoundation                            0x7ff8003816a7 CFRunLoopRunSpecific   560    
7   GraphicsServices                          0x7ff809cb128a GSEventRunModal   139    
8   UIKitCore                                    0x110204ad3 -[UIApplication _run]   994    
9   UIKitCore                                    0x1102099ef UIApplicationMain   123    
10  HBuilder                                     0x1009559c3 main   99    
11  dyld_sim                                     0x1015032bf start_sim   10    
12  dyld                                         0x1036413a6 start   1942    

Thread 1:    
0   libsystem_pthread.dylib                   0x7ff836172b88 start_wqthread   0    

Thread 2::  Dispatch queue: com.apple.CFNetwork.Connection    
0   libcorecrypto.dylib                       0x7ff800206870 AccelerateCrypto_AES_encrypt_aesni   0    
1   libcorecrypto.dylib                       0x7ff8001fe820 ecb_wrapper_aesni   58    
2   libcorecrypto.dylib                       0x7ff8001d8eff ccaes_vng_ctr_crypt   193    
3   libcorecrypto.dylib                       0x7ff8001de8bb generate   383    
4   libcorecrypto.dylib                       0x7ff8001df16d ccrng_crypto_generate   287    
5   libcorecrypto.dylib                       0x7ff8001c2ddc generate   17    
6   libsystem_c.dylib                         0x7ff8000c5ea8 uuid_generate_random   61    
7   Network                                   0x7ff805807faa -[NWConcrete_nw_connection initWithEndpoint:parameters:identifier:]   474    
8   Network                                   0x7ff80581eac5 nw_connection_create_with_id   197    
9   Network                                   0x7ff805811063 nw_connection_create   83    
10  CFNetwork                                 0x7ff804284d08 0x7ff8041df000   679176    
11  CFNetwork                                 0x7ff804300b51 0x7ff8041df000   1186641    
12  CFNetwork                                 0x7ff80427786a 0x7ff8041df000   624746    
13  CFNetwork                                 0x7ff8042ffd8c 0x7ff8041df000   1183116    
14  CFNetwork                                 0x7ff8043037c1 0x7ff8041df000   1198017    
15  CFNetwork                                 0x7ff804303a4a 0x7ff8041df000   1198666    
16  libdispatch.dylib                         0x7ff80013b7fb _dispatch_call_block_and_release   12    
17  libdispatch.dylib                         0x7ff80013ca3a _dispatch_client_callout   8    
18  libdispatch.dylib                         0x7ff800144346 _dispatch_lane_serial_drain   949    
19  libdispatch.dylib                         0x7ff80014501a _dispatch_lane_invoke   455    
20  libdispatch.dylib                         0x7ff80014658c _dispatch_workloop_invoke   2447    
21  libdispatch.dylib                         0x7ff800151b46 _dispatch_workloop_worker_thread   870    
22  libsystem_pthread.dylib                   0x7ff836173c47 _pthread_wqthread   327    
23  libsystem_pthread.dylib                   0x7ff836172b97 start_wqthread   15    

Thread 3:: com.apple.uikit.eventfetch-thread    
0   libsystem_kernel.dylib                    0x7ff836116a6e mach_msg2_trap   10    
1   libsystem_kernel.dylib                    0x7ff836124e7a mach_msg2_internal   84    
2   libsystem_kernel.dylib                    0x7ff83611db92 mach_msg_overwrite   653    
3   libsystem_kernel.dylib                    0x7ff836116d5f mach_msg   19    
4   CoreFoundation                            0x7ff80038788e __CFRunLoopServiceMachPort   145    
5   CoreFoundation                            0x7ff800381fdf __CFRunLoopRun   1371    
6   CoreFoundation                            0x7ff8003816a7 CFRunLoopRunSpecific   560    
7   Foundation                                0x7ff800c568b4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]   213    
8   Foundation                                0x7ff800c56b2d -[NSRunLoop(NSRunLoop) runUntilDate:]   72    
9   UIKitCore                                    0x1102da286 -[UIEventFetcher threadMain]   535    
10  Foundation                                0x7ff800c8011b __NSThread__start__   1009    
11  libsystem_pthread.dylib                   0x7ff836177202 _pthread_start   99    
12  libsystem_pthread.dylib                   0x7ff836172bab thread_start   15    

Thread 4:    
0   libsystem_pthread.dylib                   0x7ff836172b88 start_wqthread   0    

Thread 5 Crashed:: com.taobao.weex.bridge    
0   WebKit                                       0x107a7bfb3 WTFCrashWithInfo(int, char const*, char const*, int)   19    
1   WebKit                                       0x107e41da5 WebKit::captivePortalModeObservers()   60    
2   WebKit                                       0x107e42041 WebKit::addCaptivePortalModeObserver(WebKit::CaptivePortalModeObserver
2023-12-23 17:51 负责人:无 分享
已邀请:
苏陌

苏陌 (作者)

有人吗

要回复问题请先登录注册