#71 new
ronin-124146 (at lighthouseapp)

BWSelectableToolbar causes IB Assertion Failure

Reported by ronin-124146 (at lighthouseapp) | November 18th, 2010 @ 05:18 PM

This is probably a well known issue, since the site specifically says that the toolbar isn't ready for primetime yet, but I figured I'd post the crash log to help with the development. The toolbar works fine for a few hours, then corrupts itself and destroys the contents of it's various views. The crash occurs immediately after opening the XIB.

Assertion Message: An uncaught exception was raised.

Exception Name: NSInvalidArgumentException
Reason: *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: 0D5950D1-D4A8-44C6-9DBC-251CFEF852E2)
User Info: (null)

Thread 0 Raised an Exception:
0 CoreFoundation 0x00007fff88922796 exceptionPreprocess + 150
1 libobjc.A.dylib 0x00007fff801900f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff889225d7 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff88922564 +[NSException raise:format:] + 148
4 Foundation 0x00007fff87c8fc86 -[NSCFDictionary setObject:forKey:] + 227
5 BWToolkitFramework 0x0000000119004b86 -[BWSelectableToolbar initialSetup] + 1620
6 Foundation 0x00007fff87cb523c
NSFireDelayedPerform + 404
7 CoreFoundation 0x00007fff888bebe8 _CFRunLoopRun + 6488
8 CoreFoundation 0x00007fff888bcdbf CFRunLoopRunSpecific + 575
9 HIToolbox 0x00007fff8674591a RunCurrentEventLoopInMode + 333
10 HIToolbox 0x00007fff8674571f ReceiveNextEventCommon + 310
11 HIToolbox 0x00007fff867455d8 BlockUntilNextEventMatchingListInMode + 59
12 AppKit 0x00007fff85d63e64
DPSNextEvent + 718
13 AppKit 0x00007fff85d637a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
14 Interface Builder 0x0000000100003906
15 AppKit 0x00007fff85d2948b -[NSApplication run] + 395
16 AppKit 0x00007fff85d221a8 NSApplicationMain + 364
17 Interface Builder 0x0000000100001c44
18 Interface Builder 0x0000000000000002

Comments and changes to this ticket

  • Jim Boutcher

    Jim Boutcher February 27th, 2011 @ 10:26 AM

    Have the same thing... Notice that when this happens, all my data bindings are wiped out and have to be reset from scratch... Not too fun when you have 3 tabs full of settings and such.

  • Jim Boutcher

    Jim Boutcher February 27th, 2011 @ 10:52 AM

    I just reset my git repo and tried again.. Same assertion, but bindings were kept in tact... I'll try to reproduce.

  • Louis Demers

    Louis Demers March 2nd, 2011 @ 11:19 PM

    Hi, I just started using BWToolkit, mainly for the SelectableToolbar. It crashes for me too with a similar exceptions. I've made a video of how I can recreate the crash. In the recorded test, it's when I reload the xib but sometimes, it happens just by selecting a different active tab. It seems indifferent to the "Preference Toolbar Mode". When switching active tab, and watching the xib file content in hierarchy view, it seems to create new views, sometimes too many (I believe) and the dragged objects sometimes end up in those views, sometimes in the ContentView (Of course I do not know if that is the intended behavior). Also, when things go bad, selecting a different active tab bounces back to the same initial active tab.

    PS: is the toolkit still in active development ?

    PPS: is it expected to work with Xcode 4 ?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.

Shared Ticket Bins

People watching this ticket