+ Start a Discussion
James (CloudAnswers)James (CloudAnswers) 

Trapdoor crashes on start

I use Trapdoor every day - there is simply no better way to manage all of my logins.  The fact it is integrated with the standard mac keychain is a big, big win for me as well.

 

Unfortunately, it stopped working today.  I just started up my snow leopard macbook and clicked trapdoor from dock and it crashes on start.  I downloaded a new copy from the website and ran it from my desktop just in case it was something locally corrupted in the program but I get the same error on start.

 

Here is the crash info, ideas?

 

 

Process:         Trapdoor [1330]
Path:            /Applications/Trapdoor.app/Contents/MacOS/Trapdoor
Identifier:      com.pocketsoap.trapdoor
Version:         ??? (1.7)
Code Type:       X86 (Native)
Parent Process:  launchd [663]

Date/Time:       2010-05-17 08:31:29.357 -0400
OS Version:      Mac OS X 10.6.3 (10D573)
Report Version:  6

Interval Since Last Report:          730638 sec
Crashes Since Last Report:           6
Per-App Interval Since Last Report:  1404866 sec
Per-App Crashes Since Last Report:   6
Anonymous UUID:                      BCFA652D-EC91-4FDF-A2F3-D2FEE6C8BEB1

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x96c49bda __raiseError + 410
	1   libobjc.A.dylib                     0x92dba509 objc_exception_throw + 56
	2   CoreFoundation                      0x96c49908 +[NSException raise:format:arguments:] + 136
	3   Foundation                          0x9118cdc3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
	4   AppKit                              0x9060690e -[NSMenuItem initWithTitle:action:keyEquivalent:] + 146
	5   Trapdoor                            0x0000be04 +[Browser buildPopUpButtonForBrowsers:] + 283
	6   Trapdoor                            0x00008424 -[NewCredentialsController awakeFromNib] + 39
	7   CoreFoundation                      0x96be2584 -[NSSet makeObjectsPerformSelector:] + 196
	8   AppKit                              0x905c7bc8 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1566
	9   AppKit                              0x905c5ba0 loadNib + 257
	10  AppKit                              0x905c4f99 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 228
	11  AppKit                              0x905c4eaa +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 158
	12  AppKit                              0x905c4df5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 383
	13  AppKit                              0x905c1bf9 NSApplicationMain + 434
	14  Trapdoor                            0x00002362 start + 54
)


Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation      	0x96c94a07 ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ + 7
1   libobjc.A.dylib               	0x92dba509 objc_exception_throw + 56
2   com.apple.CoreFoundation      	0x96c49908 +[NSException raise:format:arguments:] + 136
3   com.apple.Foundation          	0x9118cdc3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
4   com.apple.AppKit              	0x9060690e -[NSMenuItem initWithTitle:action:keyEquivalent:] + 146
5   com.pocketsoap.trapdoor       	0x0000be04 +[Browser buildPopUpButtonForBrowsers:] + 283
6   com.pocketsoap.trapdoor       	0x00008424 -[NewCredentialsController awakeFromNib] + 39
7   com.apple.CoreFoundation      	0x96be2584 -[NSSet makeObjectsPerformSelector:] + 196
8   com.apple.AppKit              	0x905c7bc8 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1566
9   com.apple.AppKit              	0x905c5ba0 loadNib + 257
10  com.apple.AppKit              	0x905c4f99 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 228
11  com.apple.AppKit              	0x905c4eaa +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 158
12  com.apple.AppKit              	0x905c4df5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 383
13  com.apple.AppKit              	0x905c1bf9 NSApplicationMain + 434
14  com.pocketsoap.trapdoor       	0x00002362 start + 54

Thread 1:
0   libSystem.B.dylib             	0x91a4ebd2 __workq_kernreturn + 10
1   libSystem.B.dylib             	0x91a4f168 _pthread_wqthread + 941
2   libSystem.B.dylib             	0x91a4ed86 start_wqthread + 30

Thread 2:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x91a4fb42 kevent + 10
1   libSystem.B.dylib             	0x91a5025c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib             	0x91a4f719 _dispatch_queue_invoke + 163
3   libSystem.B.dylib             	0x91a4f4be _dispatch_worker_thread2 + 240
4   libSystem.B.dylib             	0x91a4ef41 _pthread_wqthread + 390
5   libSystem.B.dylib             	0x91a4ed86 start_wqthread + 30

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x92dba4e5  ecx: 0xa021a4e0  edx: 0x0000003b
  edi: 0xa03e3af0  esi: 0x00242cb0  ebp: 0xbffff648  esp: 0xbffff630
   ss: 0x0000001f  efl: 0x00000286  eip: 0x96c94a07   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x52eed000

Binary Images:
    0x1000 -    0x11ff7 +com.pocketsoap.trapdoor ??? (1.7) <7C956715-AFB9-B209-A435-CF78AFE2B9F6> /Applications/Trapdoor.app/Contents/MacOS/Trapdoor
   0x1e000 -    0x2aff7 +org.andymatuschak.Sparkle ??? (1.1) /Applications/Trapdoor.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
   0x35000 -    0xeafe7  libcrypto.0.9.7.dylib 0.9.7 (compatibility 0.9.7) <0B69B1F5-3440-B0BF-957F-E0ADD49F13CB> /usr/lib/libcrypto.0.9.7.dylib
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
0x901e6000 - 0x9024affb  com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x902d1000 - 0x90379ffb  com.apple.QD 3.35 (???) <B80B64BC-958B-DA9E-50F9-D7E8333CC5A2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x90403000 - 0x905bfff3  com.apple.ImageIO.framework 3.0.2 (3.0.1) <CB39B067-58B8-70DB-3E40-160604664A6D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x905c0000 - 0x90e9fff7  com.apple.AppKit 6.6.5 (1038.29) <E76A05A6-27C6-DA02-0961-5C8EEDC5F0A7> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x90ed1000 - 0x90f8afe7  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <16CEF8E8-8C9A-94CD-EF5D-05477844C005> /usr/lib/libsqlite3.dylib
0x9102c000 - 0x910acfeb  com.apple.SearchKit 1.3.0 (1.3.0) <9E18AEA5-F4B4-8BE5-EEA9-818FC4F46FD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910ad000 - 0x9131dffb  com.apple.Foundation 6.6.2 (751.21) <DA7A173A-4435-ECD6-F4AF-977D722FD2F7> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x918ae000 - 0x9190ffe7  com.apple.CoreText 3.1.0 (???) <1372DABE-F183-DD03-03C2-64B2464A4FD5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x91910000 - 0x919dafef  com.apple.CoreServices.OSServices 357 (357) <764872C3-AE30-7F54-494D-4BA3CE4F4DFB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x919db000 - 0x919dbff7  com.apple.CoreServices 44 (44) <AC35D112-5FB9-9C8C-6189-5F5945072375> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x91a28000 - 0x91bcdfeb  libSystem.B.dylib 125.0.1 (compatibility 1.0.0) <06A5336A-A6F6-4E62-F55F-4909A64631C2> /usr/lib/libSystem.B.dylib
0x91c40000 - 0x91c8dfeb  com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <BF66BA5D-BBC8-78A5-DBE2-F9DE3DD1D775> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x91c8e000 - 0x91cb6ff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <769EF4B2-C1AD-73D5-AAAD-1564DAEA77AF> /usr/lib/libxslt.1.dylib
0x91cb7000 - 0x91cd8fe7  com.apple.opencl 12.1 (12.1) <1BCA4F60-E612-5C1B-EF50-A810D70CDF05> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x91cd9000 - 0x9210eff7  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> ......... (truncated, too big to paste here)

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Try this version, see if its any better.

 

http://www.pocketsoap.com/osx/trapdoor/trapdoor_v180.zip

All Answers

SuperfellSuperfell

That's odd, I'm on 10.6.3 as well, and haven't seen this, i'll take a look in more detail at the relevant code based on the stack dump (thanks for including that). The only thing i can think of right now, is that somehow you have a keychain entry that has an empty username ?

James (CloudAnswers)James (CloudAnswers)

I assumed it was keychain parsing based because of the namespace issue, so I checked my keychain and the only things modified were because of testing something in Safari recently.  I deleted the keychain entries modified in the last two weeks (that came up from searching for "salesforce") but it didn't affect the start.  There are of course lots of keychain entries that have been put into my keychain over the past few days, but nothing had a blank password.  How does it search to know what keychain entries to include?

 

 

SuperfellSuperfell

Its looking for keychain entries that apply the list of serverUrl's you've configured in trapdoor (the default ones are www.salesforce.com & test.salesforce.com). A blank password shouldn't cause a problem, but a blank username might.

James (CloudAnswers)James (CloudAnswers)

Can I suggest that "login.salesforce.com" is added as a default mask so that it picks up the other entries from the new login page?  I'm digging through for blank anythings but I don't see one with a blank username or pass.

SuperfellSuperfell

Oik, looking at the code, this seems to be related to the detection of the installed browsers. Did you recently install something that could claim to open URLs? I'll look at adding something to skip the items with empty bundle names (which appears to be the issue)

SuperfellSuperfell

Try this version, see if its any better.

 

http://www.pocketsoap.com/osx/trapdoor/trapdoor_v180.zip

This was selected as the best answer
James (CloudAnswers)James (CloudAnswers)

Hi Simon,

 

It worked :)  The only thing I can think of installing recently is creating a couple programs with Fluid... but I actually deleted them, so I'm not sure what else would be getting in the way.

 

Thanks a lot for fixing the bug.  Trapdoor is such a handy tool - thanks so much for making it available.

SuperfellSuperfell

Cool, glad that fixed it, if you look in the console log when you start trapdoor, it'll log the app(s) that caused the problem, it'd be interesting to see what it is.

James (CloudAnswers)James (CloudAnswers)

Hi Simon,

 

It was indeed a Fluid app - I left it outside the Applications folder so I didn't get it when I was cleaning up but the log file gave me the location so I deleted it.