Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

IB Designables Timed Out/Interface Builder Cocoa Touch Tool crashed #1538

Closed
friedbunny opened this issue May 13, 2015 · 5 comments · Fixed by #1547
Closed

IB Designables Timed Out/Interface Builder Cocoa Touch Tool crashed #1538

friedbunny opened this issue May 13, 2015 · 5 comments · Fixed by #1547
Labels
crash iOS Mapbox Maps SDK for iOS

Comments

@friedbunny
Copy link
Contributor

I'm getting this non-fatal error when building Treble, which uses storyboards:

treble/treble/Base.lproj/Main.storyboard: error: IB Designables: Failed to render instance of MGLMapView: Rendering the view took longer than 200 ms. Your drawing code may suffer from slow performance.

Also this:

treble/treble/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout status: Interface Builder Cocoa Touch Tool crashed

The build continues and works as expected on device, but Interface Builder doesn't allow any customization of the MGLMapView properties and the preview doesn't display (because it has timed-out/crashed).

This is on the latest master, ~v0.2.24.

screen shot 2015-05-13 at 12 35 30 am

/cc @1ec5

@friedbunny
Copy link
Contributor Author

Oh, I should mention that I'm running Xcode 6.3.1 on OS X 10.10.4 beta 3.

@1ec5
Copy link
Contributor

1ec5 commented May 13, 2015

Looks like fallout from 190e911 for #1491:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSProcessInfo pushEvent:withAttributes:]: unrecognized selector sent to instance 0x7f90b351bda0'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x000000010cf50c65 __exceptionPreprocess + 165
1   libobjc.A.dylib                     0x000000010bccebb7 objc_exception_throw + 45
2   CoreFoundation                      0x000000010cf580ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3   CoreFoundation                      0x000000010ceae13c ___forwarding___ + 988
4   CoreFoundation                      0x000000010ceadcd8 _CF_forwarding_prep_0 + 120
5   MapboxGL                            0x00000001177c6a75 __44+[MGLMapboxEvents pushEvent:withAttributes:]_block_invoke + 69
6   libdispatch.dylib                   0x000000011050ef16 _dispatch_call_block_and_release + 12
7   libdispatch.dylib                   0x0000000110529964 _dispatch_client_callout + 8
8   libdispatch.dylib                   0x0000000110515dc7 _dispatch_root_queue_drain + 856
9   libdispatch.dylib                   0x0000000110516d59 _dispatch_worker_thread3 + 98
10  libsystem_pthread.dylib             0x00000001108aa637 _pthread_wqthread + 729
11  libsystem_pthread.dylib             0x00000001108a840d start_wqthread + 13

@1ec5
Copy link
Contributor

1ec5 commented May 13, 2015

By the way, IB does report it as a crash, at least in Xcode 6.4, rather than a timeout. (But timeouts are usually due to designables agent crashes anyways.)

@friedbunny
Copy link
Contributor Author

@1ec5 How does one get at the IB designables stack traces and so on?

@1ec5
Copy link
Contributor

1ec5 commented May 13, 2015

Normally you can click Debug in the Custom Class section of the Identity inspector (or go to Editor ‣ Debug Selected Views). The debugger will stop on the code that crashes. But that actually hangs Xcode if you’ve installed via CocoaPods, probably because your workspace only contains the headers, not the implementation files, and only the release symbols (not debug symbols as you’d want).

So the fallback is to open CrashReporterPrefs (part of the Auxiliary Tools for Xcode download) and switch to Developer mode. Crash Reporter now appears whenever any process crashes, even background processes like IBDesignablesAgentCocoaTouch. That can quickly get annoying – splashboardd (part of the iOS Simulator) is a frequent offender – so I also turn on the “Use Notification Center” preference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants