LLDB crashes whenever Breakpoints are added - xcode

I have a project in Xcode 10.1 which contains both Objective C and Swift code.Whenever I apply breakpoints in my swift code the LLDB crashes, which eventually end the debugging session.I am completely stuck in this scenario as I cannot debug my code.I have tried moving the breakpoints to other lines(suggested by some other posts), but its not working.
Is there any workaround on this?
Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'.
Crash summary:
Thread 11 Crashed:: RPC packet thread for client tid 0028defc (2678524)
0 libsystem_kernel.dylib 0x00007fff6d6a223e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6d758c1c pthread_kill + 285
2 libsystem_c.dylib 0x00007fff6d60b1c9 abort + 127
3 com.apple.LLDB.framework 0x0000000106bd2443 swift::ModuleFile::fatal(llvm::Error) + 835
4 com.apple.LLDB.framework 0x0000000106be3753 swift::ModuleFile::getDeclCheckedImpl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 30515
5 com.apple.LLDB.framework 0x0000000106bd321e swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 78
6 com.apple.LLDB.framework 0x0000000106c0a707 swift::ModuleFile::loadExtensions(swift::NominalTypeDecl*) + 1911
7 com.apple.LLDB.framework 0x0000000106c13011 swift::SerializedModuleLoader::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 49
8 com.apple.LLDB.framework 0x00000001062246bf swift::ASTContext::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 63
9 com.apple.LLDB.framework 0x00000001062a6272 swift::NominalTypeDecl::getExtensions() + 82
10 com.apple.LLDB.framework 0x000000010631681e populateLookupTableEntryFromExtensions(swift::ASTContext&, swift::MemberLookupTable&, swift::NominalTypeDecl*, swift::DeclName, bool) + 46
11 com.apple.LLDB.framework 0x0000000106316e98 swift::NominalTypeDecl::lookupDirect(swift::DeclName, bool) + 616
12 com.apple.LLDB.framework 0x0000000106301a66 swift::ModuleDecl::lookupMember(llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::DeclContext*, swift::DeclName, swift::Identifier) const + 86
13 com.apple.LLDB.framework 0x000000010643e5a1 FindNamedDecls(swift::ASTContext*, swift::DeclBaseName const&, VisitNodeResult&, llvm::Optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) + 1313
14 com.apple.LLDB.framework 0x0000000106437cdf VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 2703
15 com.apple.LLDB.framework 0x0000000106439e25 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 11221
16 com.apple.LLDB.framework 0x000000010643d94c swift::ide::getTypeFromMangledSymbolname(swift::ASTContext&, llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 204
17 com.apple.LLDB.framework 0x000000010705e2e7 lldb_private::SwiftASTContext::GetTypeFromMangledTypename(char const*, lldb_private::Status&) + 535
18 com.apple.LLDB.framework 0x0000000106db6241 DWARFASTParserSwift::ParseTypeFromDWARF(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::Log*, bool*) + 933
19 com.apple.LLDB.framework 0x0000000106ee6a15 SymbolFileDWARF::ParseType(lldb_private::SymbolContext const&, DWARFDIE const&, bool*) + 209
20 com.apple.LLDB.framework 0x0000000106ee01fa SymbolFileDWARF::GetTypeForDIE(DWARFDIE const&, bool) + 486
21 com.apple.LLDB.framework 0x0000000106edf9ce SymbolFileDWARF::ResolveType(DWARFDIE const&, bool, bool) + 68
22 com.apple.LLDB.framework 0x0000000106edf94d SymbolFileDWARF::ResolveTypeUID(unsigned long long) + 45
23 com.apple.LLDB.framework 0x0000000106f2e87d lldb_private::Function::GetType() + 105
24 com.apple.LLDB.framework 0x0000000106f2e73c lldb_private::Function::GetStartLineSourceInfo(lldb_private::FileSpec&, unsigned int&) + 60
25 com.apple.LLDB.framework 0x0000000106c6c488 lldb_private::BreakpointResolverFileLine::FilterContexts(lldb_private::SymbolContextList&) + 262
26 com.apple.LLDB.framework 0x0000000106c6c88d lldb_private::BreakpointResolverFileLine::SearchCallback(lldb_private::SearchFilter&, lldb_private::SymbolContext&, lldb_private::Address*, bool) + 263
27 com.apple.LLDB.framework 0x0000000106d51f80 lldb_private::SearchFilter::DoModuleIteration(lldb_private::SymbolContext const&, lldb_private::Searcher&) + 346
28 com.apple.LLDB.framework 0x0000000106d51dd9 lldb_private::SearchFilter::Search(lldb_private::Searcher&) + 153
29 com.apple.LLDB.framework 0x0000000106f96b9f lldb_private::Target::AddBreakpoint(std::__1::shared_ptr<lldb_private::Breakpoint>, bool) + 203
30 com.apple.LLDB.framework 0x0000000106f97f29 lldb_private::Target::CreateBreakpoint(std::__1::shared_ptr<lldb_private::SearchFilter>&, std::__1::shared_ptr<lldb_private::BreakpointResolver>&, bool, bool, bool) + 249
31 com.apple.LLDB.framework 0x0000000106f98352 lldb_private::Target::CreateBreakpoint(lldb_private::FileSpecList const*, lldb_private::FileSpec const&, unsigned int, unsigned long long, lldb_private::LazyBool, lldb_private::LazyBool, bool, bool, lldb_private::LazyBool) + 920
32 com.apple.LLDB.framework 0x0000000103dda3d8 lldb::SBTarget::BreakpointCreateByLocation(lldb::SBFileSpec const&, unsigned int, unsigned long long, lldb::SBFileSpecList&) + 246
33 com.apple.LLDB.framework 0x0000000103dda2b0 lldb::SBTarget::BreakpointCreateByLocation(lldb::SBFileSpec const&, unsigned int, unsigned long long) + 62
34 com.apple.LLDB.framework 0x0000000103dda226 lldb::SBTarget::BreakpointCreateByLocation(char const*, unsigned int) + 64
35 lldb-rpc-server 0x0000000103af6f5d rpc_server::_ZN4lldb8SBTarget26BreakpointCreateByLocationEPKcj::HandleRPCCall(rpc_common::Connection&, rpc_common::RPCStream&, rpc_common::RPCStream&) + 179
36 lldb-rpc-server 0x0000000103b0073f rpc_common::Connection::PrivateHandleRPCPacket(rpc_common::RPCPacket&, rpc_common::RPCPacket&, bool&) + 469
37 lldb-rpc-server 0x0000000103b014e0 rpc_common::Connection::HandleRPCPacket(rpc_common::RPCPacket&) + 62
38 lldb-rpc-server 0x0000000103b04f12 Packets::ProcessPackets() + 256
39 lldb-rpc-server 0x0000000103b04d95 Packets::ReadThread() + 289
40 lldb-rpc-server 0x0000000103b04c6f Packets::RunReadThread(void*) + 9
41 libsystem_pthread.dylib 0x00007fff6d756305 _pthread_body + 126
42 libsystem_pthread.dylib 0x00007fff6d75926f _pthread_start + 70
43 libsystem_pthread.dylib 0x00007fff6d755415 thread_start + 13
Thread 11 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000700010856000 rcx: 0x00007000108534f8 rdx: 0x0000000000000000
rdi: 0x0000000000003e0b rsi: 0x0000000000000006 rbp: 0x0000700010853530 rsp: 0x00007000108534f8
r8: 0x000000000000000b r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x0000000000003e0b r13: 0x0000000107fd4d70 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff6d6a223e rfl: 0x0000000000000206 cr2: 0x00007fffa0349188
Complete crash log
The crash is happening in swift code, Objective C code is working fine. Also, it is not occasional, it is happening every time.
I have also tried clearing all Xcode caches and derived data.

I meet the same situation, hopes my solution helps you.
The reason of my Xcode LLDB crashing while adding breakpoints is that my project name (Security) is same to Apple's framework.
After switch project name to another random name, the problem solved.

Related

Archive build is crashing on launch

Can anybody help me out, I'm getting error on app launch with archive build. Debug build is working fine.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xffffffffffffffe8
VM Regions Near 0xffffffffffffffe8:
--> shared memory 00007fffffe36000-00007fffffe37000 [ 4K] r-x/r-x SM=SHM
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libc++.1.dylib 0x00007fff8fb6c4f1 std::__1::basic_istream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_istream<char, std::__1::char_traits<char> >&, bool) + 29
1 libc++.1.dylib 0x00007fff8fb6e437 std::__1::basic_istream<char, std::__1::char_traits<char> >::tellg() + 191
2 ??? 0x000000010d0b44ee 0 + 4513809646
3 ??? 0x000000010d0b35d8 0 + 4513805784
4 ??? 0x000000010d1213cd 0 + 4514255821
5 ??? 0x000000010d18e5c7 0 + 4514702791
6 ??? 0x000000010d159251 0 + 4514484817
7 ??? 0x000000010d18df0a 0 + 4514701066
8 ??? 0x000000010d144b1a 0 + 4514401050
9 ??? 0x000000010d0b121a 0 + 4513796634
10 ??? 0x000000010d0b66b1 0 + 4513818289
11 dyld 0x00007fff659f1d0b ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 265
12 dyld 0x00007fff659f1e98 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
13 dyld 0x00007fff659ee891 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 305
14 dyld 0x00007fff659ee718 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 138
15 dyld 0x00007fff659ee989 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 75
16 dyld 0x00007fff659e1245 dyld::initializeMainExecutable() + 187
17 dyld 0x00007fff659e4c19 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2669
18 dyld 0x00007fff659e0276 dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 512
19 dyld 0x00007fff659e0036 _dyld_start + 54
This was due to library image not loaded in release build. I didn't added library in 'Linked Binary With Libraries'.

Xcode 5.02 crash on opening any xib - Yosemite

I am running Yosemite 10.10.4 on a Macbook Air. I have a number of Xcode projects that worked successfully under Xcode 6.4. However, I downloaded Xcode 5.02 from Apple in order to use the Big Nerd Ranch book "IOS Programming" which is written for Xcode 5. Any time I open a xib file, Xcode crashes. As suggested, I opened the console app,found the crash log, and copied it.
Process: Interface Builder Cocoa Touch Tool [1370]
Path: /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/Interface Builder Cocoa Touch Tool
Identifier: Interface Builder Cocoa Touch Tool
Version: 4.3 (141)
Code Type: X86 (Native)
Parent Process: Xcode [1315]
Responsible: Xcode [1315]
User ID: 501
Date/Time: 2015-08-16 17:49:29.223 -0500
OS Version: Mac OS X 10.10.4 (14E46)
Report Version: 11
Anonymous UUID: EFE6107D-FC8B-4F16-13CF-5078BA3A872D
Sleep/Wake UUID: AC708070-A2AD-4BD3-97E0-72E185438011
Time Awake Since Boot: 2400 seconds
Time Since Wake: 1400 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x94ecb69a __pthread_kill + 10
1 libsystem_pthread.dylib 0x92192f19 pthread_kill + 101
2 libsystem_sim_c.dylib 0x02a78e12 abort + 127
3 libsystem_sim_c.dylib 0x02a43900 __assert_rtn + 284
4 libsystem_override.dylib 0x0297e73c _sim_host_bootstrap_init + 264
5 libsystem_override.dylib 0x0297e7aa _sim_host_bootstrap_port + 26
6 libxpc.dylib 0x02ba4b06 _libxpc_initializer + 870
7 libSystem.B.dylib 0x98a9daae libSystem_initializer + 167
8 dyld 0x8fe710b3 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 291
9 dyld 0x8fe71218 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 64
10 dyld 0x8fe6d2f0 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 296
11 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
12 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
13 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
14 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
15 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
16 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
17 dyld 0x8fe6d288 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
18 dyld 0x8fe6d176 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 120
19 dyld 0x8fe6d3e1 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 79
20 dyld 0x8fe5f125 dyld::initializeMainExecutable() + 183
21 dyld 0x8fe62bad dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2793
22 dyld 0x8fe5e232 dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 428
23 dyld 0x8fe5e047 _dyld_start + 71
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x02980015 ecx: 0xbfffd5ac edx: 0x00000000
edi: 0xa08481d4 esi: 0x00000006 ebp: 0xbfffd5c8 esp: 0xbfffd5ac
ss: 0x00000023 efl: 0x00000206 eip: 0x94ecb69a cs: 0x0000000b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x02a78d93
Logical CPU: 0
Error Code: 0x00080148
Trap Number: 132

Crash in NSSavePanel upon clicking a folder/directory

I built the app with Standard Architectures (64-bit Intel) (x86_64), SDK: Latest OSX (OSX 10.9) and deployment target: 10.8 using Xcode 5.1.1.
Upon Opening NSSavePanel, once the user clicks a folder, the app crashes. Below are the code snippets and the crash log. This issue does not happen in my development macbook (OS: 10.9.5). It just happens in the client's macbook (OS: 10.8.2). I can't run Xcode in my client's macbook by the way.
-(IBAction)onSaveScriptFileAs:(id)sender
{
NSSavePanel *theSavePanel = [NSSavePanel savePanel];
[theSavePanel setTitle:#"Save Test Script As"];
[theSavePanel setAllowedFileTypes:[NSArray arrayWithObject:#"ts"]];
if (tempScriptFileName != nil) {
[theSavePanel setNameFieldStringValue:tempScriptFileName];
}
if ([theSavePanel runModal] == NSFileHandlingPanelOKButton)
{
[self saveScriptFile:[[theSavePanel URL] path]];
[self setTempScriptFileName:nil];
}
}
Crash Log:
Process: MyAppName [5480]
Path: /Volumes/VOLUME/*/MyAppName5.18.85b.app/Contents/MacOS/MyAppName
Identifier: com.MyAppName
Version: 5.18.85b (5.18.85b)
Code Type: X86-64 (Native)
Parent Process: launchd [202]
User ID: 502
Date/Time: 2014-09-15 09:28:58.781 -0700
OS Version: Mac OS X 10.8.2 (12C3104)
Report Version: 10
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8:
-->
__TEXT 00000001085db000-000000010866a000 [ 572K] r-x/rwx SM=COW /Volumes/VOLUME/*/MyAppName5.18.85b.app/Contents/MacOS/MyAppName
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x0000000000000008 0 + 8
1 com.apple.FinderKit 0x00007fff8aea97ee ApplicationURL(TString const&) + 77
2 com.apple.FinderKit 0x00007fff8aea9a27 AppBundleIDCanOpenExtension(TString const&, TString const&) + 392
3 com.apple.FinderKit 0x00007fff8aeaa245 PreviewCanOpenExtension(TString const&) + 177
4 com.apple.FinderKit 0x00007fff8aeaa55e -[FIFinderViewGutsController finderLocationPopUpWillDisplay:] + 198
5 com.apple.FinderKit 0x00007fff8aed47ff -[FILocationPopUp menuNeedsUpdate:] + 46
6 com.apple.AppKit 0x00007fff89c486a8 -[NSMenu _populateFromDelegateWithEventRef:] + 674
7 com.apple.AppKit 0x00007fff89bece64 -[NSMenu _populateWithEventRef:] + 83
8 com.apple.AppKit 0x00007fff89c476ac -[NSCarbonMenuImpl _carbonPopulateEvent:handlerCallRef:] + 427
9 com.apple.AppKit 0x00007fff89c47245 NSSLMMenuEventHandler + 342
10 com.apple.HIToolbox 0x00007fff8769ff0a DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1206
11 com.apple.HIToolbox 0x00007fff8769f3d9 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 410
12 com.apple.HIToolbox 0x00007fff8769f236 SendEventToEventTargetWithOptions + 43
13 com.apple.HIToolbox 0x00007fff876e8d58 SendMenuPopulate(MenuData*, OpaqueEventTargetRef*, unsigned int, double, unsigned int, OpaqueEventRef*, unsigned char*) + 279
14 com.apple.HIToolbox 0x00007fff87671d5a SendMenuOpening(MenuSelectData*, MenuData*, double, unsigned int, unsigned int, __CFDictionary*, unsigned char, unsigned char*) + 286
15 com.apple.HIToolbox 0x00007fff87806cff PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short, unsigned int, Rect const*, unsigned short, unsigned int, Rect const*, Rect const*, __CFString const*, OpaqueMenuRef**, unsigned short*) + 895
16 com.apple.HIToolbox 0x00007fff87806924 _HandlePopUpMenuSelection7 + 629
17 com.apple.AppKit 0x00007fff89cca61b _NSSLMPopUpCarbonMenu3 + 3916
18 com.apple.AppKit 0x00007fff8a02bd2a _NSPopUpCarbonMenu3 + 39
19 com.apple.AppKit 0x00007fff89cc95dc -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 346
20 com.apple.AppKit 0x00007fff89e8d315 -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 540
21 com.apple.AppKit 0x00007fff89b15c9c -[NSControl mouseDown:] + 820
22 com.apple.AppKit 0x00007fff89b0d60e -[NSWindow sendEvent:] + 6853
23 com.apple.AppKit 0x00007fff89b09744 -[NSApplication sendEvent:] + 5761
24 com.apple.AppKit 0x00007fff89c7276a -[NSApplication _realDoModalLoop:peek:] + 582
25 com.apple.AppKit 0x00007fff89c729ce -[NSApplication runModalForWindow:] + 120
26 com.apple.AppKit 0x00007fff89ebddb6 -[NSSavePanel runModal] + 302
27 com.TopTestDFU 0x00000001085f22fe -[AppController onSaveScriptFileAs:] + 148
28 com.apple.AppKit 0x00007fff89b18a59 -[NSApplication sendAction:to:from:] + 342
29 com.apple.AppKit 0x00007fff89c4e44c -[NSMenuItem _corePerformAction] + 406
30 com.apple.AppKit 0x00007fff89c4e13a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133
31 com.apple.AppKit 0x00007fff8993b46f -[NSMenu _internalPerformActionForItemAtIndex:] + 36
32 com.apple.AppKit 0x00007fff8993b2f7 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135
33 com.apple.AppKit 0x00007fff89c47245 NSSLMMenuEventHandler + 342
34 com.apple.HIToolbox 0x00007fff8769ff0a DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1206
35 com.apple.HIToolbox 0x00007fff8769f3d9 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 410
36 com.apple.HIToolbox 0x00007fff876b51bd SendEventToEventTarget + 40
37 com.apple.HIToolbox 0x00007fff876ebe89 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 443
38 com.apple.HIToolbox 0x00007fff87690c11 SendMenuCommandWithContextAndModifiers + 59
39 com.apple.HIToolbox 0x00007fff87690bc3 SendMenuItemSelectedEvent + 254
40 com.apple.HIToolbox 0x00007fff87690a4f FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 94
41 com.apple.HIToolbox 0x00007fff8766caab MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 605
42 com.apple.HIToolbox 0x00007fff8766c0b8 _HandleMenuSelection2 + 565
43 com.apple.AppKit 0x00007fff89b069c6 _NSHandleCarbonMenuEvent + 245
44 com.apple.AppKit 0x00007fff89a28b7f _DPSNextEvent + 2073
45 com.apple.AppKit 0x00007fff89a27ed2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
46 com.apple.AppKit 0x00007fff89a1f283 -[NSApplication run] + 517
47 com.apple.AppKit 0x00007fff899c3cb6 NSApplicationMain + 869
48 com.TopTestDFU 0x00000001085dc3d4 start + 52
Thank you!
My only guess is that your using Latest SDK 10.9, and client is running on 10.8.
Try linking with 10.8 SDK and giving that to client.
By the way, I use Xcode 6, but I'm still linking to 10.6 SDK using some trickery.
Must support older clients.

Qt application quits unexpectedly on Mac

My Qt program runs well on Linux and Windows. However, when it's on Mac, for a specific button clicked, it may causes quit unexpected error. However, the weird part is, this error happens unpredictably. Sometimes it does happen but sometimes everything is fine. The slot function is just for showing another existed window and doing some normal computation. It works fine on another two OS. Below is the error information provided by mac. Could anyone tell me how to solve this please? Thanks a lot!
Process: VigenereVis [2447]
Path: /Users/USER/Desktop/*/VigenereVis.app/Contents/MacOS/VigenereVis
Identifier: com.yourcompany.VigenereVis
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [165]
Responsible: VigenereVis [2447]
User ID: 501
Date/Time: 2014-04-08 15:58:55.210 -0400
OS Version: Mac OS X 10.9.2 (13C64)
Report Version: 11
Anonymous UUID: 5906397F-7107-5863-B4B0-434214C07ECA
Sleep/Wake UUID: 1581FC20-6365-4366-9DB7-AAB3A8454BD5
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000100000000-0000000100096000 [ 600K] r-x/rwx SM=COW /Users/USER/Desktop/*/VigenereVis.app/Contents/MacOS/VigenereVis
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.yourcompany.VigenereVis 0x00000001000357c0 std::vector<float, std::allocator<float> >::operator[](unsigned long) + 16 (stl_vector.h:478)
1 com.yourcompany.VigenereVis 0x000000010002e81f Canvas::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) + 21519 (canvas.cpp:626)
2 QtGui 0x00000001007876f0 QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*, QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) + 2496
3 QtGui 0x0000000100787e12 QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*, QTransform const*, QRegion*, QWidget*, double, QTransform const*) + 1234
4 QtGui 0x00000001007888a3 QGraphicsScenePrivate::drawItems(QPainter*, QTransform const*, QRegion*, QWidget*) + 467
5 QtGui 0x00000001007b00a3 QGraphicsView::paintEvent(QPaintEvent*) + 787
6 QtGui 0x00000001001ea307 QWidget::event(QEvent*) + 2343
7 QtGui 0x00000001005798ec QFrame::event(QEvent*) + 44
8 QtGui 0x0000000100605bc7 QAbstractScrollArea::viewportEvent(QEvent*) + 23
9 QtGui 0x00000001007b198b QGraphicsView::viewportEvent(QEvent*) + 123
10 QtGui 0x0000000100607f50 QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 48
11 QtCore 0x0000000100f27cb7 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 151
12 QtGui 0x000000010018d9be QApplicationPrivate::notify_helper(QObject*, QEvent*) + 142
13 QtGui 0x0000000100194064 QApplication::notify(QObject*, QEvent*) + 1060
14 QtCore 0x0000000100f2820c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
15 QtGui 0x00000001001e073e QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1822
16 QtGui 0x00000001001e11b4 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1460
17 QtGui 0x00000001001e04d0 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1200
18 QtGui 0x00000001001e11b4 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1460
19 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
20 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
21 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
22 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
23 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
24 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
25 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
26 QtGui 0x00000001001e1075 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141
27 QtGui 0x00000001001e04d0 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1200
28 QtGui 0x000000010013291a -[QCocoaView drawRect:] + 1786
29 com.apple.AppKit 0x00007fff8e76616f -[NSView _drawRect:clip:] + 3748
30 com.apple.AppKit 0x00007fff8e7649e4 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1799
31 com.apple.AppKit 0x00007fff8e764dc0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
32 com.apple.AppKit 0x00007fff8e762826 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 841
33 com.apple.AppKit 0x00007fff8e761fd1 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 314
34 com.apple.AppKit 0x00007fff8e75efbf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2828
35 com.apple.AppKit 0x00007fff8e73e42a -[NSView displayIfNeeded] + 1680
36 com.apple.AppKit 0x00007fff8e757ff6 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1972
37 com.apple.AppKit 0x00007fff8e7575a0 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 786
38 com.apple.AppKit 0x00007fff8e757220 -[NSWindow orderWindow:relativeTo:] + 162
39 com.apple.AppKit 0x00007fff8e7487d6 -[NSWindow makeKeyAndOrderFront:] + 51
40 QtGui 0x00000001001293a3 QWidgetPrivate::show_sys() + 1123
41 QtGui 0x00000001001e5448 QWidgetPrivate::show_helper() + 408
42 QtGui 0x00000001001e6cff QWidget::setVisible(bool) + 511
43 com.yourcompany.VigenereVis 0x000000010000205b QWidget::show() + 27 (qwidget.h:494)
44 com.yourcompany.VigenereVis 0x0000000100015a8d VigenereVis::showAttackWindow() + 989 (vigenerevis.cpp:1920)
45 com.yourcompany.VigenereVis 0x0000000100067a5e VigenereVis::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 686 (moc_vigenerevis.cpp:153)
46 QtCore 0x0000000100f401ee QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566
47 QtGui 0x000000010080e321 QAbstractButton::clicked(bool) + 49
48 QtGui 0x00000001005315c0 QAbstractButtonPrivate::emitClicked() + 64
49 QtGui 0x00000001005327fa QAbstractButtonPrivate::click() + 154
50 QtGui 0x0000000100532a51 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 113
51 QtGui 0x00000001001ea355 QWidget::event(QEvent*) + 2421
52 QtGui 0x0000000100531848 QAbstractButton::event(QEvent*) + 40
53 QtGui 0x00000001005cd595 QPushButton::event(QEvent*) + 69
54 QtGui 0x000000010018d9ed QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
55 QtGui 0x0000000100194590 QApplication::notify(QObject*, QEvent*) + 2384
56 QtCore 0x0000000100f2820c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
57 QtGui 0x0000000100191fdd QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 333
58 QtGui 0x0000000100141acb qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 763
59 com.apple.AppKit 0x00007fff8e809235 -[NSWindow sendEvent:] + 781
60 QtGui 0x0000000100136bb7 -[QCocoaWindow sendEvent:] + 87
61 com.apple.AppKit 0x00007fff8e7aa6e4 -[NSApplication sendEvent:] + 2021
62 QtGui 0x000000010013bbf4 -[QNSApplication sendEvent:] + 84
63 com.apple.AppKit 0x00007fff8e5fab89 -[NSApplication run] + 646
64 QtGui 0x0000000100146a80 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824
65 QtCore 0x0000000100f27114 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
66 QtCore 0x0000000100f274c4 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
67 QtCore 0x0000000100f29bac QCoreApplication::exec() + 188
68 com.yourcompany.VigenereVis 0x0000000100001f35 main + 101 (main.cpp:10)
69 com.yourcompany.VigenereVis 0x0000000100001ea4 start + 52

Xcode 3.2.1 crashes on startup on OS X 10.6.2

I have uninstalled it via the devtools uninstall command and reinstalled 3 times to no avail. This all started when I downloaded iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg from the DEV portal and installed.
I've trashed my com.apple.xcode.plist file, uninstalled all xcode plugins as well as Growlcode and I still can't solve this.
Here is the error information:
Process: Xcode [1096]
Path: /Developer/Developer Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.Xcode
Version: 3.1.2 (1149)
Build Info: DevToolsIDE-11490000~1
Code Type: X86 (Native)
Parent Process: launchd [196]
Date/Time: 2010-02-22 21:03:05.858 -0700
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Interval Since Last Report: 373328 sec
Crashes Since Last Report: 17
Per-App Interval Since Last Report: 305 sec
Per-App Crashes Since Last Report: 17
Anonymous UUID: 2F82DA63-66A6-4C25-9C69-C2D02627B388
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
objc[1096]: garbage collection is ON
objc[1096]: layout_bitmap_or: layout bitmap too short: PBXJavaParentDV
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x96a5d43e _objc_fatal + 95
1 libobjc.A.dylib 0x96a5dacf layout_bitmap_or + 91
2 libobjc.A.dylib 0x96a5158c really_connect_class + 243
3 libobjc.A.dylib 0x96a5137a connect_class + 254
4 libobjc.A.dylib 0x96a5131f connect_class + 163
5 libobjc.A.dylib 0x96a4fd67 _read_images + 1303
6 libobjc.A.dylib 0x96a65933 map_images_nolock + 1545
7 libobjc.A.dylib 0x96a4f0d9 map_images + 72
8 dyld 0x8fe03f2d dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 795
9 dyld 0x8fe0decd ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 251
10 dyld 0x8fe056af dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 137
11 dyld 0x8fe0b242 dlopen + 471
12 libSystem.B.dylib 0x92b3f048 dlopen + 66
13 com.apple.CoreFoundation 0x94937109 _CFBundleDlfcnLoadBundle + 233
14 com.apple.CoreFoundation 0x94936c7a _CFBundleLoadExecutableAndReturnError + 1370
15 com.apple.Foundation 0x90c342df _NSBundleLoadCode + 995
16 com.apple.Foundation 0x90c33a67 -[NSBundle loadAndReturnError:] + 820
17 com.apple.Foundation 0x90c3372d -[NSBundle load] + 42
18 com.apple.Xcode.DevToolsCore 0x000976e4 -[XCPluginManager loadPluginBundle:] + 516
19 com.apple.Xcode.DevToolsCore 0x00092ad2 -[XCPluginManager findAndLoadPluginsInDomain:] + 1522
20 com.apple.Xcode.DevToolsCore 0x000924cd -[XCPluginManager findAndLoadPlugins] + 45
21 com.apple.Xcode.DevToolsCore 0x0008c6b9 XCInitializeCoreIfNeeded + 4441
22 com.apple.Xcode 0x00003252 0x1000 + 8786
23 com.apple.Foundation 0x90c031c7 _nsnote_callback + 176
24 com.apple.CoreFoundation 0x949309a9 __CFXNotificationPost + 905
25 com.apple.CoreFoundation 0x949303da _CFXNotificationPostNotification + 186
26 com.apple.Foundation 0x90bf8094 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
27 com.apple.Foundation 0x90c05471 -[NSNotificationCenter postNotificationName:object:] + 56
28 com.apple.AppKit 0x95cc87bd -[NSApplication finishLaunching] + 493
29 com.apple.AppKit 0x95cc81b9 -[NSApplication run] + 79
30 com.apple.AppKit 0x95cc0535 NSApplicationMain + 574
31 com.apple.Xcode 0x00002bca 0x1000 + 7114
Get the first argument to dlopen. This probably points to a corrupted file. You can do this with gdb.
$ gdb /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
(gdb) run
... program will hopefully crash ...
(gdb) bt
(gdb) f N [where N is the highest numbered 'dlopen' frame]
(gdb) p (char *)*($esp) [I think... can't test now, I'm on PPC]

Resources