首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xcode 11在为框架项目并行运行Unit测试时崩溃

Xcode 11在为框架项目并行运行Unit测试时崩溃
EN

Stack Overflow用户
提问于 2019-09-24 00:09:06
回答 1查看 1.1K关注 0票数 8

第一个测试将启动,大约半秒后,Xcode将锁定,而不是启动另一个测试。大约30秒后,Xcode崩溃了,我得到了下面的崩溃日志(见下文)。

  • 在升级到Xcode 11.
  • 之后开始发生这种情况,如果我连续地运行单元测试,它就能正常工作。奇怪的是,
  • 似乎只发生在我2018年的Macbook Pro上。在其他Macbook和Minis上,单元测试可以在没有崩溃的情况下并行运行测试。
  • 只在单元测试中发生。我可以并行地运行我的项目的UI测试。
  • I有另一个基于框架的项目,在同一台机器上也遇到了同样的问题。
  • 我已经尝试过多次删除和重新安装Xcode。
  • 编辑:我刚刚尝试擦除Macbook的硬盘驱动器并重新安装Mac。这个问题仍然存在。

代码语言:javascript
复制
Process:               Xcode [823]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               11.0 (14936)
Build Info:            IDEFrameworks-14936000000000000~3
App Item ID:           497799835
App External ID:       832762837
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [823]
User ID:               501

Date/Time:             2019-09-23 16:39:38.684 -0700
OS Version:            Mac OS X 10.14.6 (18G95)
Report Version:        12
Bridge OS Version:     3.6 (16P6571)
Anonymous UUID:        BC74C3A5-0B03-9716-16C5-8C448AD75627


Time Awake Since Boot: 1600 seconds

System Integrity Protection: enabled

Crashed Thread:        27

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
ProductBuildVersion: 11A420a
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-14899/DVTFoundation/Multicore/DVTFuture.mm:376
Details:  Attempted to transition to the failed state, but did not provide an error.
<DVTFuture 0x7fc173624f60 Running>
    Progress:    Initial
    Result:      (null)
    Error:       (null)
    Started at:    0   -[DVTFuture init] (in DVTFoundation)
  1   -[DVTFuture initWithBlock:] (in DVTFoundation)
  2   +[DVTFuture futureWithBlock:] (in DVTFoundation)
  3   -[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] (in IDEiOSSupportCore)
  4   __55-[IDELaunchiPhoneSimulatorLauncher performWorkerAction]_block_invoke (in IDEiOSSupportCore)
  5   __43-[DVTDispatchLock asyncPerformLockedBlock:]_block_invoke (in DVTFoundation)
  6   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
  7   __DVTDispatchBarrierAsync_block_invoke (in DVTFoundation)
  8   _dispatch_call_block_and_release (in libdispatch.dylib)
  9   _dispatch_client_callout (in libdispatch.dylib)
 10   _dispatch_lane_serial_drain (in libdispatch.dylib)
 11   _dispatch_lane_invoke (in libdispatch.dylib)
 12   _dispatch_workloop_worker_thread (in libdispatch.dylib)
 13   _pthread_wqthread (in libsystem_pthread.dylib)
 14   start_wqthread (in libsystem_pthread.dylib)

    Finished at: (null)
Object:   <DVTFuture: 0x7fc173624f60>
Method:   -_internalSetState:result:error:
Thread:   <NSThread: 0x7fc17336ae40>{number = 81, name = (null)}
Hints:   

Backtrace:
  0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   -[DVTFuture _internalSetState:result:error:] (in DVTFoundation)
  4   __35-[DVTFuture setState:result:error:]_block_invoke (in DVTFoundation)
  5   invocation function for block in decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock<void () block_pointer () block_pointer __strong>(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
  6   _dispatch_client_callout (in libdispatch.dylib)
  7   _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
  8   DVTDispatchBarrierSync (in DVTFoundation)
  9   -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
 10   decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock<void () block_pointer () block_pointer __strong>(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
 11   -[DVTFuture setState:result:error:] (in DVTFoundation)
 12   -[DVTFuture failWithError:] (in DVTFoundation)
 13   __68-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke (in IDEiOSSupportCore)
 14   -[DVTFuture initWithBlock:] (in DVTFoundation)
 15   +[DVTFuture futureWithBlock:] (in DVTFoundation)
 16   -[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] (in IDEiOSSupportCore)
 17   __55-[IDELaunchiPhoneSimulatorLauncher performWorkerAction]_block_invoke (in IDEiOSSupportCore)
 18   __43-[DVTDispatchLock asyncPerformLockedBlock:]_block_invoke (in DVTFoundation)
 19   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
 20   __DVTDispatchBarrierAsync_block_invoke (in DVTFoundation)
 21   _dispatch_call_block_and_release (in libdispatch.dylib)
 22   _dispatch_client_callout (in libdispatch.dylib)
 23   _dispatch_lane_serial_drain (in libdispatch.dylib)
 24   _dispatch_lane_invoke (in libdispatch.dylib)
 25   _dispatch_workloop_worker_thread (in libdispatch.dylib)
 26   _pthread_wqthread (in libsystem_pthread.dylib)
 27   start_wqthread (in libsystem_pthread.dylib)
EN

回答 1

Stack Overflow用户

发布于 2019-10-09 18:14:15

错误代码似乎是指缺少父进程(由问号和返回代码[1]表示),或者指PID负责该函数。DVTFramework可能有问题吗?如果问题仍然存在,我建议与苹果联系。

编辑

是的,如错误提示所示,DVT似乎存在问题:

代码语言:javascript
复制
Method:   -_internalSetState:result:error:
Thread:   <NSThread: 0x7fc17336ae40>{number = 81, name = (null)}
Hints:   

Backtrace:
  0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   -[DVTFuture _internalSetState:result:error:] (in DVTFoundation)
  4   __35-[DVTFuture setState:result:error:]_block_invoke (in DVTFoundation)
  5   invocation function for block in decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock<void () block_pointer () block_pointer __strong>(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
  6   _dispatch_client_callout (in libdispatch.dylib)
  7   _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
  8   DVTDispatchBarrierSync (in DVTFoundation)
  9   -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
 10   decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock<void () block_pointer () block_pointer __strong>(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
 11   -[DVTFuture setState:result:error:] (in DVTFoundation)
 12   -[DVTFuture failWithError:] (in DVTFoundation)
 13   __68-[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:]_block_invoke (in IDEiOSSupportCore)
 14   -[DVTFuture initWithBlock:] (in DVTFoundation)
 15   +[DVTFuture futureWithBlock:] (in DVTFoundation)
 16   -[DVTiPhoneSimulator launchSimulatedExecutable:launchService:error:] (in IDEiOSSupportCore)
 17   __55-[IDELaunchiPhoneSimulatorLauncher performWorkerAction]_block_invoke (in IDEiOSSupportCore)
 18   __43-[DVTDispatchLock asyncPerformLockedBlock:]_block_invoke (in DVTFoundation)
 19   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
 20   __DVTDispatchBarrierAsync_block_invoke (in DVTFoundation)
 21   _dispatch_call_block_and_release (in libdispatch.dylib)
 22   _dispatch_client_callout (in libdispatch.dylib)
 23   _dispatch_lane_serial_drain (in libdispatch.dylib)
 24   _dispatch_lane_invoke (in libdispatch.dylib)
 25   _dispatch_workloop_worker_thread (in libdispatch.dylib)
 26   _pthread_wqthread (in libsystem_pthread.dylib)
 27   start_wqthread (in libsystem_pthread.dylib)```
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58071517

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档