I have this annoying erro that appears in the debugger of vs code, but not xcode.
This is for flutter, using stable channel 3.7.0
The debug error appears every time I switch focus from VS Code, to the App and back. It's making it hard to debug with the constant scrolling.
Any thoughts on a solution? Other than to use XCode :) Also, this debug error appears on macos and on windows.
Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision b06b8b2710 (3 weeks ago) • 2023-01-23 16:55:55 -0800 Engine • revision b24591ed32 Tools • Dart 2.19.0 • DevTools 2.20.1
1 HIToolbox 0x00007ff812d1b726 _ZN15MenuBarInstance22EnsureAutoShowObserverEv + 102
2 HIToolbox 0x00007ff812cbf852 SetMenuBarObscured + 226
3 HIToolbox 0x00007ff812cbf4ca _ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 164
4 HIToolbox 0x00007ff812cb9996 _ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 252
5 HIToolbox 0x00007ff812c81bd2 _NotifyEventLoopObservers + 153
6 AppKit 0x00007ff80c69e213 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3212
7 AppKit 0x00007ff80c6146ae -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2595
8 AppKit 0x00007ff80c613a6f -[NSWindow(NSEventRouting) sendEvent:] + 345
9 AppKit 0x00007ff80c611dde -[NSApplication(NSEvent) sendEvent:] + 358
10 AppKit 0x00007ff80c8d0885 -[NSApplication _handleEvent:] + 65
11 AppKit 0x00007ff80c4a141c -[NSApplication run] + 623
12 AppKit 0x00007ff80c475427 NSApplicationMain + 817
13 bible_breeze 0x00000001034e0969 main + 9
14 dyld 0x00007ff808f57310 start + 2432
1 HIToolbox 0x00007ff812ca80c2 _ZN15MenuBarInstance22RemoveAutoShowObserverEv + 30
2 HIToolbox 0x00007ff812cbf7e3 SetMenuBarObscured + 115
3 HIToolbox 0x00007ff812cc629e _ZN13HIApplication11FrontUILostEv + 34
4 HIToolbox 0x00007ff812cbf622 _ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 508
5 HIToolbox 0x00007ff812cb9950 _ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 182
6 HIToolbox 0x00007ff812c81bd2 _NotifyEventLoopObservers + 153
7 HIToolbox 0x00007ff812cb93e6 AcquireEventFromQueue + 494
8 HIToolbox 0x00007ff812ca85a4 ReceiveNextEventCommon + 725
9 HIToolbox 0x00007ff812ca82b3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
10 AppKit 0x00007ff80c4aff33 _DPSNextEvent + 909
11 AppKit 0x00007ff80c4aedb4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219
12 AppKit 0x00007ff80c4a13f7 -[NSApplication run] + 586
13 AppKit 0x00007ff80c475427 NSApplicationMain + 817
14 bible_breeze 0x00000001034e0969 main + 9
15 dyld 0x00007ff808f57310 start + 2432
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a macCatalyst app that works perfectly on macOS 10.14, however on upgrading to macOS 11 (Big Sur) both I and my users are complaining that the app crashes on launch. I get an error message "Parameter was not of class UIScene" - do macCatalyst apps now require the use of scenes?
On further inspection, I see the following:
2020-11-28 01:48:40.327810+0000 AppName [13691:435322] *** Assertion failure in -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:], _UISceneMacHelperUtilities.m:83
2020-11-28 01:48:40.336334+0000 AppName[13691:435322] [General] An uncaught exception was raised
2020-11-28 01:48:40.336423+0000 AppName[13691:435322] [General] Parameter was not of class UIScene.
2020-11-28 01:48:40.336545+0000 AppName[13691:435322] [General] (
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
2020-11-28 01:48:40.337802+0000 AppName[13691:435322] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
terminating with uncaught exception of type NSException
Code crashing with below stack traces:
It will not allowed to open project file which was already opened and minimised.
Process: Xcode [644]
Path: /Applications/Xcode_10.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.1 (14460.46)
Build Info: IDEFrameworks_Fall2018-14460046000000000~5 (10B61)
App Item ID: 497799835
App External ID: 828917606
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [644]
User ID: 869373484
Date/Time: 2020-03-27 13:48:49.845 +0530
OS Version: Mac OS X 10.15.3 (19D76)
Report Version: 12
Anonymous UUID: FD8C88EB-3C2B-91CF-2711-0652F5A776A1
Time Awake Since Boot: 85 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 10B61
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks_Fall2018/IDEFrameworks-14460.46/IDEKit/Workspace/IDEWorkspaceDocument.m:3335
Details: selection failed. window: currentlySelectedTabbedWindow:
Object:
Method: -_restoreSelectedTabsByIdentifierFromStateSaving:
Thread: {number = 1, name = main}
Hints:
abort() called
Application Specific Signatures:
window == [window currentlySelectedTabbedWindow]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff67ae67fa __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff67ba3bc1 pthread_kill + 432
2 libsystem_c.dylib 0x00007fff67a6da1c abort + 120
3 com.apple.dt.IDEKit 0x000000010d960793 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1324
4 com.apple.dt.IDEKit 0x000000010d960dbf -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1256
5 com.apple.dt.DVTFoundation 0x000000010bd1018a _DVTAssertionHandler + 374
6 com.apple.dt.DVTFoundation 0x000000010bd10463 _DVTAssertionFailureHandler + 374
7 com.apple.dt.IDEKit 0x000000010d889b7a -[IDEWorkspaceDocument _restoreSelectedTabsByIdentifierFromStateSaving:] + 1886
8 com.apple.dt.IDEKit 0x000000010d88594b -[IDEWorkspaceDocument revertStateWithDictionary:] + 267
9 com.apple.dt.DVTFoundation 0x000000010bba380b -[DVTStateToken _pullStateFromDictionary:] + 357
10 com.apple.dt.DVTFoundation 0x000000010bba3bf7 -[DVTStateToken pullStateFromRepository] + 179
11 com.apple.dt.IDEKit 0x000000010d87e2ac -[IDEWorkspaceDocument _readFromURL:ofType:simpleFilesFocused:error:] + 921
12 com.apple.dt.IDEKit 0x000000010d87e88c -[IDEWorkspaceDocument readFromURL:ofType:error:] + 134
13 com.apple.AppKit 0x00007fff2d800db9 -[NSDocument _initWithContentsOfURL:ofType:error:] + 172
14 com.apple.AppKit 0x00007fff2d800ca2 -[NSDocument initWithContentsOfURL:ofType:error:] + 231
15 com.apple.dt.IDEKit 0x000000010dc78b3e -[IDEDocumentController makeDocumentWithContentsOfURL:ofType:error:] + 2064
16 com.apple.AppKit 0x00007fff2da6a91c __97-[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke + 91
17 com.apple.AppKit 0x00007fff2da6a8b6 -[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:] + 160
18 com.apple.AppKit 0x00007fff2d86e8e2 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke + 839
19 com.apple.dt.IDEKit 0x000000010dc7ed59 __145-[IDEDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke + 226
20 com.apple.AppKit 0x00007fff2da69ab8 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_4 + 31
21 com.apple.AppKit 0x00007fff2da69e0e __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_2.872 + 177
22 com.apple.AppKit 0x00007fff2da69cf7 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.871 + 153
23 com.apple.AppKit 0x00007fff2da69c0b __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.869 + 243
24 com.apple.AppKit 0x00007fff2da762bf ___NSMainRunLoopPerformBlockInModes_block_invoke + 25
25 com.apple.CoreFoundation 0x00007fff302fb7ab __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
26 com.apple.CoreFoundation 0x00007fff302fb6ed __CFRunLoopDoBlocks + 379
27 com.apple.CoreFoundation 0x00007fff302fa731 __CFRunLoopRun + 1257
28 com.apple.CoreFoundation 0x00007fff302f9bd3 CFRunLoopRunSpecific + 499
29 com.apple.HIToolbox 0x00007fff2ee4f65d RunCurrentEventLoopInMode + 292
30 com.apple.HIToolbox 0x00007fff2ee4f2a9 ReceiveNextEventCommon + 356
31 com.apple.HIToolbox 0x00007fff2ee4f127 _BlockUntilNextEventMatchingListInModeWithFilter + 64
32 com.apple.AppKit 0x00007fff2d4bfba4 _DPSNextEvent + 990
33 com.apple.AppKit 0x00007fff2d4be380 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
34 com.apple.dt.DVTKit 0x000000010c376584 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 385
35 com.apple.AppKit 0x00007fff2d4b009e -[NSApplication run] + 658
36 com.apple.AppKit 0x00007fff2d482465 NSApplicationMain + 777
37 com.apple.dt.Xcode 0x000000010ba7e82e main + 574
38 libdyld.dylib 0x00007fff6799f7fd start + 1
I solve this problem by following steps below :
1> Delete DerivedData
2> updates pods if your project have
3> Delete xcUserData from .xcworkspace and .xcproject file .
Solution found on below article please check this for more information.
[https://technuisance.com/xcode/xcode-crash-assertion-failure.html][1]
My unity project is randomly crashing at the startup. I was used to solving the problem by checking out my source code in an alternative location and adding the project back to Unity Hub. Unfortunately, this solution no longer works.
Here the crashlog:
Process: Unity [11340]
Path: /Applications/2019.2.9f1/Unity.app/Contents/MacOS/Unity
Identifier: com.unity3d.UnityEditor5.x
Version: Unity version 2019.2.9f1 (2019.2.9f1)
Code Type: X86-64 (Native)
Parent Process: Unity Hub [740]
Responsible: Unity [11340]
User ID: 501
Date/Time: 2019-12-07 17:07:08.386 +0000
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Bridge OS Version: 3.5 (16P5125)
Time Awake Since Boot: 36000 seconds
Time Since Wake: 10000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000002c0
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x2c0:
-->
__TEXT 000000010c8e4000-00000001135bc000 [108.8M] r-x/rwx SM=COW /Applications/2019.2.9f1/Unity.app/Contents/MacOS/Unity
Application Specific Information:
abort() called
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6f3332c6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6f3eebf1 pthread_kill + 284
2 libsystem_c.dylib 0x00007fff6f29d6a6 abort + 127
3 com.unity3d.UnityEditor5.x 0x000000010f899dfe HandleSignal(int, __siginfo*, void*) + 62
4 libmonobdwgc-2.0.dylib 0x0000000147111619 mono_chain_signal + 79
5 libmonobdwgc-2.0.dylib 0x0000000146fe2c7f mono_sigsegv_signal_handler + 414
6 libsystem_platform.dylib 0x00007fff6f3e3b5d _sigtramp + 29
7 ??? 000000000000000000 0 + 0
8 com.unity3d.UnityEditor5.x 0x00000001102d6e71 LightingDataAsset::GetLightingDataAssetStableID(UnityScene*) + 97
9 com.unity3d.UnityEditor5.x 0x0000000110344c2f WriteLightingDataAssetJob::Prepare(dynamic_array<UnityGUID, 0ul>&) + 719
10 com.unity3d.UnityEditor5.x 0x0000000110268bf3 IssueWriteLightingDataAssetJob(JobManager*, dynamic_array<UnityGUID, 0ul>&, Hash128 const&) + 531
11 com.unity3d.UnityEditor5.x 0x000000011026dd31 LightingDataAssetManager::PostUpdate() + 353
12 com.unity3d.UnityEditor5.x 0x000000011024f75c gi::PostUpdate(dynamic_array<GISceneManagerClient*, 0ul> const&) + 44
13 com.unity3d.UnityEditor5.x 0x0000000110284b55 GISceneManager::Update() + 1605
14 com.unity3d.UnityEditor5.x 0x0000000110282d0a GISceneManager::GISceneManager()::tickGIInEditorRegistrator::Forward() + 74
15 com.unity3d.UnityEditor5.x 0x000000010cd6ea62 CallbackArray::Invoke() + 82
16 com.unity3d.UnityEditor5.x 0x000000010d5acb8f ProfilerCallbackInvoke<CallbackArray, &(GlobalCallbacks::tickGIInEditor)>::Invoke(char const*) + 63
17 com.unity3d.UnityEditor5.x 0x000000010d5aa1a9 Application::TickTimer() + 4873
18 com.unity3d.UnityEditor5.x 0x00000001108c5675 -[EditorApplication TickTimer] + 165
19 com.apple.Foundation 0x00007fff45579ceb __NSFireTimer + 80
20 com.apple.CoreFoundation 0x00007fff432eca60 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
21 com.apple.CoreFoundation 0x00007fff432ec60c __CFRunLoopDoTimer + 851
22 com.apple.CoreFoundation 0x00007fff432ec152 __CFRunLoopDoTimers + 330
23 com.apple.CoreFoundation 0x00007fff432cd362 __CFRunLoopRun + 2130
24 com.apple.CoreFoundation 0x00007fff432cc8be CFRunLoopRunSpecific + 455
25 com.apple.HIToolbox 0x00007fff425b896b RunCurrentEventLoopInMode + 292
26 com.apple.HIToolbox 0x00007fff425b86a5 ReceiveNextEventCommon + 603
27 com.apple.HIToolbox 0x00007fff425b8436 _BlockUntilNextEventMatchingListInModeWithFilter + 64
28 com.apple.AppKit 0x00007fff40952987 _DPSNextEvent + 965
29 com.apple.AppKit 0x00007fff4095171f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
30 com.apple.AppKit 0x00007fff4094b83c -[NSApplication run] + 699
31 com.apple.AppKit 0x00007fff4093ad7c NSApplicationMain + 777
32 com.unity3d.UnityEditor5.x 0x00000001109038a9 EditorMain(int, char const**) + 665
33 com.unity3d.UnityEditor5.x 0x0000000110903b79 main + 9
34 libdyld.dylib 0x00007fff6f1f83d5 start + 1
what can I do to fix it?
The solution was to delete the /library folder inside the Unity Project and re-load the project
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23ba9f68 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff25614de9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 PushKit 0x00007fff2af1896f +[PKPushRegistry _checkIfNecessaryVoIPFrameworksAreLinked] + 251
5 PushKit 0x00007fff2af18cdc -[PKPushRegistry _registerForPushType:] + 287
6 PushKit 0x00007fff2af1975f __38-[PKPushRegistry setDesiredPushTypes:]_block_invoke + 240
7 libdispatch.dylib 0x000000010b470d6c _dispatch_client_callout + 8
8 libdispatch.dylib 0x000000010b47f9fd _dispatch_lane_barrier_sync_invoke_and_complete + 132
9 PushKit 0x00007fff2af1964e -[PKPushRegistry setDesiredPushTypes:] + 108
10 Office Phone 0x0000000109752139 $s12Office_Phone18MainViewControllerC5coderACSgSo7NSCoderC_tcfc + 2857
11 Office Phone 0x00000001097524e3 $s12Office_Phone18MainViewControllerC5coderACSgSo7NSCoderC_tcfcTo + 51
12 UIKitCore 0x00007fff471e7350 -[UIClassSwapper initWithCoder:] + 2427
13 UIFoundation 0x00007fff46a37cd6 UINibDecoderDecodeObjectForValue + 744
14 UIFoundation 0x00007fff46a379e1 -[UINibDecoder decodeObjectForKey:] + 251
15 UIKitCore 0x00007fff471eb657 -[UIRuntimeConnection initWithCoder:] + 125
16 UIFoundation 0x00007fff46a37cd6 UINibDecoderDecodeObjectForValue + 744
17 UIFoundation 0x00007fff46a37f7d UINibDecoderDecodeObjectForValue + 1423
18 UIFoundation 0x00007fff46a379e1 -[UINibDecoder decodeObjectForKey:] + 251
19 UIKitCore 0x00007fff471e641e -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 450
20 UIKitCore 0x00007fff471e918d -[UINib instantiateWithOwner:options:] + 1145
21 UIKitCore 0x00007fff476db470 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 279
22 Office Phone 0x000000010976d750 $s12Office_Phone11AppDelegateC21selectVCToBedisplayed2vcySo16UIViewControllerCSg_tF + 464
23 Office Phone 0x000000010976d38f $s12Office_Phone11AppDelegateC22setUpInitialRootScreenyyF + 511
24 Office Phone 0x00000001097708ec $s12Office_Phone11AppDelegateC22requestForVerifyDeviceyyFy9Alamofire12DataResponseVyypGcfU_ + 2828
25 Alamofire 0x0000000109b72591 $s9Alamofire11DataRequestC8response5queue0D10Serializer17completionHandlerACXDSo012OS_dispatch_E0CSg_xyAA0B8ResponseVy16SerializedObjectQzGctAA0bkF8ProtocolRzlFyycfU_yycfU_ + 369
26 Alamofire 0x0000000109b2c22d $sIeg_IeyB_TR + 45
27 libdispatch.dylib 0x000000010b46fdf8 _dispatch_call_block_and_release + 12
28 libdispatch.dylib 0x000000010b470d6c _dispatch_client_callout + 8
29 libdispatch.dylib 0x000000010b47ee24 _dispatch_main_queue_callback_4CF + 1500
30 CoreFoundation 0x00007fff23b0ce49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
31 CoreFoundation 0x00007fff23b07aa9 __CFRunLoopRun + 2329
32 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438
33 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65
34 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621
35 Office Phone 0x000000010977320b main + 75
36 libdyld.dylib 0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
You need to import CallKit Framework in your project Framework,Libraries, and Embeded Content section.
Instruments.app crashes when I try to profile on the device. It works fine in the simulator.
This happens with all instruments- time profiler, leaks, etc. I am able to use the energy diagnostics instrument.
I tried:
Made sure app was set to debug mode (also tried with release mode)
Reinstalling xcode
Rebooting device/computer
Attaching to process once app is running
My main device is an iPhone 4 running 5.1, jailbroken but this also happens on a non-jailbroken iPhone running 4.3.x
Please let me know if you have any thoughts on why this is happening.
Partial crash log below
Process: Instruments [12983]
Path: /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
Identifier: com.apple.dt.Instruments
Version: 4.3 (4321)
Build Info: Instruments-4321000000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [253]
Date/Time: 2012-06-08 16:27:06.214 -0400
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Sleep/Wake UUID: 1556D9E2-2B8A-4A76-A591-F8ACEF479C31
Interval Since Last Report: 24319 sec
Crashes Since Last Report: 8
Per-App Interval Since Last Report: 13147 sec
Per-App Crashes Since Last Report: 7
Anonymous UUID: A73B414D-9FB6-4055-94D3-A887EB7ADFFD
Crashed Thread: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
VM Regions Near 0x4:
-->
__TEXT 0000000101a71000-0000000101a76000 [ 20K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
Application Specific Information:
objc[12983]: garbage collection is OFF
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff849ab67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff849aad71 mach_msg + 73
2 com.apple.framework.IOKit 0x00007fff826899bf io_service_get_matching_services + 210
3 com.apple.framework.IOKit 0x00007fff82641604 IOServiceGetMatchingServices + 137
4 com.apple.framework.IOKit 0x00007fff82641741 IOServiceGetMatchingService + 25
5 com.apple.Foundation 0x00007fff85f7710b +[NSFileWrapper _canSafelyMapFilesAtPath:] + 241
6 com.apple.Foundation 0x00007fff85f1c510 -[NSData(NSData) initWithContentsOfFile:options:error:] + 139
7 com.apple.Foundation 0x00007fff85f83b48 -[NSData(NSData) initWithContentsOfURL:options:error:] + 238
8 com.apple.AppKit 0x00007fff89e6e387 NSImageRepNewDataFromFileURL + 247
9 com.apple.AppKit 0x00007fff89aa00fc +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] + 548
10 com.apple.AppKit 0x00007fff89a9fe9a __-[NSImageURLReferencingRepProvider representations]_block_invoke_1 + 48
11 com.apple.Foundation 0x00007fff85f34347 _NSFaultInObject + 35
12 com.apple.AppKit 0x00007fff89a70ae7 -[NSImageURLReferencingRepProvider representations] + 80
13 com.apple.AppKit 0x00007fff89a9fd7e __-[NSImage size]_block_invoke_1 + 353
14 com.apple.AppKit 0x00007fff89a2b825 -[NSImage _usingRepProviderPerformBlock:] + 37
15 com.apple.AppKit 0x00007fff89a596c2 -[NSImage size] + 129
16 com.apple.AppKit 0x00007fff89a9f9a6 -[NSImage alignmentRect] + 51
17 com.apple.AppKit 0x00007fff89b08de5 -[NSImageCell _imageRectForDrawing:inFrame:inView:] + 43
18 com.apple.AppKit 0x00007fff89b08c6b -[NSImageCell drawInteriorWithFrame:inView:] + 541
19 com.apple.AppKit 0x00007fff89b08a28 -[NSImageCell drawWithFrame:inView:] + 1705
20 com.apple.AppKit 0x00007fff89a9ddb7 -[NSControl drawRect:] + 398
21 com.apple.AppKit 0x00007fff89a6997a -[NSView _drawRect:clip:] + 3758
22 com.apple.AppKit 0x00007fff89a96b4f -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583
23 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
24 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
25 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
26 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
27 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
28 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
29 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
30 com.apple.AppKit 0x00007fff89a66f55 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032
31 com.apple.AppKit 0x00007fff89a6644f -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 270
32 com.apple.AppKit 0x00007fff89a6186f -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
33 com.apple.AppKit 0x00007fff89a5a2ed -[NSView displayIfNeeded] + 1676
34 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8e155 -[XRSplitViewAnimation setCurrentProgress:] + 81
35 com.apple.AppKit 0x00007fff89bec62d -[NSAnimation(NSInternal) _advanceTimeWithTimer:] + 156
36 com.apple.Foundation 0x00007fff85f4ef40 __NSFireTimer + 102
37 com.apple.CoreFoundation 0x00007fff8689b934 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
38 com.apple.CoreFoundation 0x00007fff8689b486 __CFRunLoopDoTimer + 534
39 com.apple.CoreFoundation 0x00007fff8687be11 __CFRunLoopRun + 1617
40 com.apple.CoreFoundation 0x00007fff8687b486 CFRunLoopRunSpecific + 230
41 com.apple.Foundation 0x00007fff85f02f7b -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
42 com.apple.AppKit 0x00007fff89cc956c -[NSAnimation(NSInternal) _runBlocking] + 365
43 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8e058 -[XRHorizontalFillSplitView animateSplitFromPosition:toPosition:] + 377
44 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8dc86 -[PFTTraceDocument animateLowerVisibility:] + 215
45 com.apple.dt.instruments.InstrumentsKit 0x0000000101aaa3e5 -[PFTTraceDocument toggleDetail:] + 71
46 com.apple.dt.instruments.InstrumentsKit 0x0000000101aaa320 -[PFTTraceDocument _didStartCommand:] + 238
47 com.apple.Foundation 0x00007fff85f0dd0e __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
48 com.apple.CoreFoundation 0x00007fff8688f7ba _CFXNotificationPost + 2634
49 com.apple.Foundation 0x00007fff85ef9fc3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
50 com.apple.dt.instruments.InstrumentsPlugIn 0x0000000101c5f8c7 -[XRTrace startCommandWithPurpose:] + 1546
51 com.apple.dt.instruments.InstrumentsKit 0x0000000101aa8d4d -[PFTTraceDocument startRun] + 164
52 com.apple.dt.instruments.InstrumentsKit 0x0000000101aa8b55 -[PFTTraceDocument recordTrace:] + 599
53 com.apple.dt.instruments.InstrumentsKit 0x0000000101ae370d -[PFTDocumentController openDocumentWithContentsOfURL:display:error:] + 2769
54 com.apple.dt.instruments.InstrumentsKit 0x0000000101ae3f3a -[PFTDocumentController _templateChooserActionEnded:returnCode:contextInfo:] + 494
55 com.apple.AppKit 0x00007fff89cd13df -[NSApplication endSheet:returnCode:] + 275
56 com.apple.imageKit 0x00007fff896992fb -[IKImageBrowserView(ImageBrowserEvents) mouseUp:] + 649
57 com.apple.AppKit 0x00007fff89aea40e -[NSWindow sendEvent:] + 6504
58 com.apple.AppKit 0x00007fff89a83a55 -[NSApplication sendEvent:] + 5593
59 com.apple.dt.Instruments 0x0000000101a7339f 0x101a71000 + 9119
60 com.apple.AppKit 0x00007fff89a1a0c6 -[NSApplication run] + 555
61 com.apple.AppKit 0x00007fff89c96244 NSApplicationMain + 867
62 com.apple.dt.Instruments 0x0000000101a73724 0x101a71000 + 10020
Appears to be fixed with Instruments 4.4