xcode - iOS app crashing every other launch, can't find error -
first time launch app, seems run fine. i'll hit stop button, work , when go launch again, seems crash before can load anything. press stop, hit run again, , works fine. until repeat process.
this xcode highlighting error "thread 1:signal sigabrt". nothing useful here.
int main(int argc, char *argv[]) { @autoreleasepool { return uiapplicationmain(argc, argv, nil, nsstringfromclass([pokerappdelegate class])); } }
the debug console shows nothing besides (lldb) (so suppose stopping, not crashing @ point) so, when perform bt
get:
(lldb) bt * thread #1: tid = 0x1c03, 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal sigabrt frame #0: 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x99ea1b2f libsystem_c.dylib`pthread_kill + 101 frame #2: 0x04a7057b libsystem_sim_c.dylib`abort + 140 frame #3: 0x01dc0b4e graphicsservices`gsregisterpurplenamedport + 348 frame #4: 0x01dc069f graphicsservices`_gseventinitialize + 123 frame #5: 0x01dc0c1f graphicsservices`gseventinitialize + 36 frame #6: 0x000163f9 uikit`uiapplicationmain + 600 frame #7: 0x00001d0d guitar chord poker hd`main(argc=1, argv=0xbffff32c) + 141 @ main.m:16 frame #8: 0x00001c35 guitar chord poker hd`start + 53 (lldb)
here's have done far:
- performed 'clean'
- i've reset simulators , reset computer
- i've commented out code in view controller, still crashes
- i've commented out code in app delegate, still crashes
- but....i've run app on device outside of xcode, , seems work fine.
- (edit) i've deleted/reinstalled xcode, , content(simulators, docs) various cache folders (this stops xcode automatically reinstalling old ones after new download). still can't find command line tools kept though. still crashes.
despite this, apps still crash every second/other launch.
thing had no issues until recent xcode update. xcode bug?
(edit) running latest developer releases of osx. interfering?
seems combination of os x 10.8.4 , lldb. kenster says, switching gdb makes problem go away.
edit:
it's caused race condition in debug server (i hear).
here's fix if want keep using lldb: instead of clicking run while app running in simulator, kill in xcode (⌘-.), "i love xcode" 5 times , run again (⌘-r). won't crash, tested it.
fixed in xcode 4.6.3.
Comments
Post a Comment