1. Jens Alfke
  2. Murky
Issue #108 resolved

Newer versions of Mercurial no longer require workaround for missing </repository>

Nicholas Riley
created an issue

After upgrading Mercurial I get the following error when I try to open anything but an empty repository:

{{{ 2010-01-09 15:57:12.082 Murky[54093:a0b] HIToolbox: ignoring exception '*** -[NSCFArray objectAtIndex:]: index (50) beyond bounds (1)' that raised inside Carbon event dispatch ( 0 CoreFoundation 0x9017040a __raiseError + 410 1 libobjc.A.dylib 0x92015509 objc_exception_throw + 56 2 CoreFoundation 0x90170138 +[NSException raise:format:arguments:] + 136 3 CoreFoundation 0x901700aa +[NSException raise:format:] + 58 4 Foundation 0x913854dc NSArrayRaiseBoundException + 121 5 Foundation 0x912d8c66 -[NSCFArray objectAtIndex:] + 63 6 Murky 0x0000730e -[HgRepository _checkRevisions] + 1588 7 Murky 0x0000763b -[HgRepository revisions] + 84 8 Foundation 0x912f5c7e -[NSObject(NSKeyValueCoding) valueForKey:] + 413 9 Foundation 0x912f95ac -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 204 10 Foundation 0x912f9675 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 405 11 AppKit 0x951dcc16 -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 841 12 AppKit 0x951dc841 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 188 13 AppKit 0x9539ad74 -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 428 14 AppKit 0x951db9f9 -[NSBinder _performConnectionEstablishedRefresh] + 85 15 AppKit 0x951ce104 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 721 16 AppKit 0x9527a067 -[NSNibBindingConnector establishConnection] + 156 17 AppKit 0x951a933b -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1249 18 AppKit 0x951a7450 loadNib + 257 19 AppKit 0x951a6848 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 228 20 AppKit 0x951a6759 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 158 21 AppKit 0x9523652b -[NSWindowController loadWindow] + 223 22 AppKit 0x951cd2da -[NSWindowController window] + 89 23 Murky 0x000085ec -[MercurialApp openRepository:remember:] + 135 24 Murky 0x00009061 -[MercurialApp application:openFile:] + 42 25 AppKit 0x9554ef3f -[NSDocumentController(NSPrivate) _openRecentDocument:] + 291 26 AppKit 0x95227f86 -[NSApplication sendAction:to:from:] + 112 27 AppKit 0x95227e39 -[NSMenuItem _corePerformAction] + 435 28 AppKit 0x95227b2a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 174 29 AppKit 0x95227a16 -[NSMenu performActionForItemAtIndex:] + 65 30 AppKit 0x952279c9 -[NSMenu _internalPerformActionForItemAtIndex:] + 50 31 AppKit 0x9522792f -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 97 32 AppKit 0x95227873 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 336 33 AppKit 0x9521bf79 NSSLMMenuEventHandler + 404 34 HIToolbox 0x9413fe29 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567 35 HIToolbox 0x9413f0f0 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411 36 HIToolbox 0x94161981 SendEventToEventTarget + 52 37 HIToolbox 0x9418de3b _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 448 38 HIToolbox 0x941b2b20 SendMenuCommandWithContextAndModifiers + 66 39 HIToolbox 0x941b2ad7 SendMenuItemSelectedEvent + 121 40 HIToolbox 0x941b29d3 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 152 41 HIToolbox 0x94182212 _ZL14MenuSelectCoreP8MenuData5PointdmPP13OpaqueMenuRefPt + 440 42 HIToolbox 0x941819a9 _HandleMenuSelection2 + 465 43 HIToolbox 0x941817c7 _HandleMenuSelection + 53 44 AppKit 0x952154ba _NSHandleCarbonMenuEvent + 285 45 AppKit 0x951ea076 _DPSNextEvent + 2304 46 AppKit 0x951e9306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156 47 AppKit 0x951ab49f -[NSApplication run] + 821 48 AppKit 0x951a3535 NSApplicationMain + 574 49 Murky 0x000082f2 main + 42 50 Murky 0x0000273a start + 54 )

}}}

The following change resolves the issue:

http://bitbucket.org/njr/murky/changeset/8fe06a36e618/

(probably other ways to do it, too, that don't involve parsing the XML twice...)

Comments (3)

  1. Log in to comment