bytedance / Bytedance-UnionAD

MIT License
170 stars 54 forks source link

[BUG] App Crash #207

Open zbjumper opened 2 months ago

zbjumper commented 2 months ago

Describe the bug | 问题描述

Crash, 报错信息如下: Thread 1: "Set maskView (<UIView: 0x135616680; frame = (0 0; 0 0); userInteractionEnabled = NO; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x3005a9d20>>) to nil before adding it as a subview of <BU_ZFPlayerControlView: 0x13543b300; frame = (0 0; 0 0); backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x3005a9b00>>"

Environmental information | 环境信息

To Reproduce | 如何复现

Steps to reproduce the behavior. | 如果可以的话,请描述如何复现这个问题。

Screenshots | 截图

If applicable, add screenshots to help explain your problem. | 如果有必要,请在这里粘贴问题相关的截图。

Backtrace | 相关堆栈

0 0x000000019bdec128 in __exceptionPreprocess ()

1 0x000000019910a698 in objc_exception_throw ()

2 0x000000019b1c532c in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] ()

3 0x000000019e538d20 in -[UIView(Internal) _addSubview:positioned:relativeTo:] ()

4 0x0000000106e8e268 in -[BU_ZFPlayerControlView initWithContrlResourceBundle:images:localizedStrings:]

5 0x0000000106e9637c in -[BU_ZFPlayerView playerControlView:playerModel:]

6 0x0000000106f01844 in -[BUPlayer setupContent]

7 0x0000000106f0275c in -[BUPlayer initWithPlayerItem:]

8 0x0000000106f02628 in +[BUPlayer playerWithPlayerItem:]

9 0x0000000106ceae9c in +[CSJPlayer Try_DocsAnd:]

10 0x0000000106cc56a8 in -[CSJNativeExpressVideoView Tag_FontIdfv]

11 0x0000000106c78538 in -[CSJNativeExpressAdView initWithFrame:nativeAd:nativeExpressAdViewSource:]

12 0x0000000106cc47a0 in -[CSJNativeExpressVideoView initWithFrame:nativeAd:nativeExpressAdViewSource:]

13 0x0000000106c73e98 in -[CSJNativeExpressAdConverter X2_Bu_xLevi:] ()

14 0x0000000106c73534 in -[CSJNativeExpressAdConverter Area_MateBool:group:]

15 0x0000000106c731e4 in __44-[CSJNativeExpressAdConverter Std_AdIdDuan:]_block_invoke

16 0x000000019bd8d410 in NSARRAY_IS_CALLING_OUT_TO_A_BLOCK ()

17 0x000000019bdf64f8 in -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] ()

18 0x0000000106c72ff0 in -[CSJNativeExpressAdConverter Std_AdIdDuan:]

19 0x0000000106ebfa98 in bu_safe_dispatch_async_main_queue ()

20 0x0000000106c72eb0 in -[CSJNativeExpressAdConverter Set_UsedVar:]

21 0x0000000106c76aa4 in -[CSJNativeExpressAdManager Bu_x_CidMay:]

22 0x0000000106c72194 in -[CSJNativeAdsManager Cell_ThisMsg:nativeAds:isMopub:]

23 0x0000000106c6f204 in __32-[CSJNativeAdsManager Js_WinAt:]_block_invoke

24 0x0000000106c6ed94 in -[CSJNativeAdsManager Js_WinAt:]

25 0x0000000106c6f4dc in __32-[CSJNativeAdsManager Js_WinAt:]_block_invoke.47

26 0x0000000106b4622c in __58-[CSJAPIClient Fail_UserVc:Save_AddTap:completionHandler:]_block_invoke

27 0x0000000106b46ff0 in __45-[CSJAPIClient On_posType:completionHandler:]_block_invoke_2

28 0x0000000106ebfa98 in bu_safe_dispatch_async_main_queue ()

29 0x0000000106b46aa8 in __45-[CSJAPIClient On_posType:completionHandler:]_block_invoke

30 0x0000000106b47288 in __45-[CSJAPIClient On_posType:completionHandler:]_block_invoke.110

31 0x0000000106b27fac in __45-[CSJAdNetworkRequest successCompletionBlock]_block_invoke ()

32 0x0000000106ee4afc in __47-[BUNetworkAgent requestDidSucceedWithRequest:]_block_invoke

33 0x0000000101ef4a38 in _dispatch_call_block_and_release ()

34 0x0000000101ef6724 in _dispatch_client_callout ()

35 0x0000000101f06df0 in _dispatch_main_queue_drain ()

36 0x0000000101f069ac in _dispatch_main_queue_callback_4CF ()

37 0x000000019bdbee78 in CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE ()

38 0x000000019bdbc098 in __CFRunLoopRun ()

39 0x000000019bdbb424 in CFRunLoopRunSpecific ()

40 0x00000001e7fb91c4 in GSEventRunModal ()

41 0x000000019e902130 in -[UIApplication _run] ()

42 0x000000019e9b055c in UIApplicationMain ()

43 0x000000010590994c in main

44 0x00000001c1cf0a74 in start ()

Additional context | 附言

Add any other context about the problem here. | 请留下你认为可以帮助解决这个问题的任何信息。