gpt4 book ai didi

iOS13 崩溃 -[UIWindowScene _enumerateWindowsInclusionInternalWindows :onlyVisibleWindows:asCopy:stopped:withBlock:]?

转载 作者:行者123 更新时间:2023-12-02 01:51:35 25 4
gpt4 key购买 nike

自从 iOS 13.0 发布以来,我在我们的应用程序中发现了很多此类崩溃的情况:

Fatal Exception: NSRangeException
0 CoreFoundation 0x1846cf278 __exceptionPreprocess
1 libobjc.A.dylib 0x1843f80a4 objc_exception_throw
2 Foundation 0x184998480 -[NSConcretePointerArray dealloc]
3 UIKitCore 0x1888da3b8 -[UIWindowScene _enumerateWindowsIncludingInternalWindows:onlyVisibleWindows:asCopy:stopped:withBlock:]
4 UIKitCore 0x1888d9f74 -[UIWindowScene _topVisibleWindowPassingTest:]
5 UIKitCore 0x1886fc4c4 +[UIWindow _hitTestToPoint:forEvent:windowServerHitTestWindow:]
6 UIKitCore 0x1886fc854 -[UIWindow _targetWindowForPathIndex:atPoint:forEvent:windowServerHitTestWindow:]
7 UIKitCore 0x18873c080 ____updateTouchesWithDigitizerEventAndDetermineIfShouldSend_block_invoke.52
8 UIKitCore 0x18874b738 _UIEventHIDEnumerateChildren
9 UIKitCore 0x18873f8d0 __dispatchPreprocessedEventFromEventQueue
10 UIKitCore 0x188742dc4 __handleEventQueueInternal
11 UIKitCore 0x18873bc38 __handleHIDEventFetcherDrain
12 CoreFoundation 0x18464d090 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
13 CoreFoundation 0x18464cfe8 __CFRunLoopDoSource0
14 CoreFoundation 0x18464c780 __CFRunLoopDoSources0
15 CoreFoundation 0x1846478cc __CFRunLoopRun
16 CoreFoundation 0x18464716c CFRunLoopRunSpecific
17 GraphicsServices 0x18e47f328 GSEventRunModal
18 UIKitCore 0x1886b1d0c UIApplicationMain
19 MyApp 0x100d3ba64 main + 18 (main.swift:18)
20 libdyld.dylib 0x1844d2424 start

仅发生在 iOS 13.0.0 (17A577)

对于导致此问题的步骤,我们没有太多背景信息,目前我们拥有的只是堆栈跟踪。

还有人遇到类似的事情吗?

对于可能导致此问题的原因有什么想法吗?

最佳答案

  1. 对您创建的 UIWindow 具有引用
  2. 使用 makeKeyAndVisible 而不是设置 window.hidden = false

关于iOS13 崩溃 -[UIWindowScene _enumerateWindowsInclusionInternalWindows :onlyVisibleWindows:asCopy:stopped:withBlock:]?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58064157/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com