1. Jens Alfke
  2. Murky
  3. Issues
Issue #144 open

NSRangeError when committing to repo

Anonymous created an issue

VERSION INFO: Murky: Version 0.7.2 (0.7.2) os X 10.5.8 (macbook pro) Mercurial Distributed SCM (version 1.5+20100307)

EXCEPTION INFO:

Uncaught exception: NSRangeException Cannot remove an observer <NSKeyValueObservance 0x10d6860> for the key path "formattedDescription" from <HgUncommittedRevision 0x13449e0> because it is not registered as an observer.

-[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] (in Foundation) + 525
-[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] (in Foundation) + 196
-[NSKeyValueNestedProperty object:withObservance:didChangeValueForKeyOrKeys:forwardingValues:] (in Foundation) + 157
-[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation) + 290
-[HgRepository _checkRevisions] (in Murky) + 1472
-[HgRepository _updateChangedDirs] (in Murky) + 199
__NSFireDelayedPerform (in Foundation) + 382
CFRunLoopRunSpecific (in CoreFoundation) + 4469
CFRunLoopRunInMode (in CoreFoundation) + 88
RunCurrentEventLoopInMode (in HIToolbox) + 283
ReceiveNextEventCommon (in HIToolbox) + 374
BlockUntilNextEventMatchingListInMode (in HIToolbox) + 106

Please report this bug (you can copy & paste the text).

Comments (7)

  1. quazgar

    I just had a very similar error (other line numbers (?) though), with 0.8.1. It happened after committing & pushing a small change to a repository.

    Uncaught exception: NSRangeException
    Cannot remove an observer <NSKeyValueObservance 0x12286a0> for the key path "formattedDescription" from <HgUncommittedRevision 0x10327e0> because it is not registered as an observer.
    
    	-[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] (in Foundation) + 525
    	-[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] (in Foundation) + 196
    	-[NSKeyValueNestedProperty object:withObservance:didChangeValueForKeyOrKeys:forwardingValues:] (in Foundation) + 157
    	-[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation) + 290
    	-[HgRepository _checkRevisions] (in Murky) + 1497
    	-[HgRepository updateStatus:] (in Murky) + 55
    	-[HgRepository _updateChangedDirs] (in Murky) + 225
    	__NSFireDelayedPerform (in Foundation) + 382
    	CFRunLoopRunSpecific (in CoreFoundation) + 4469
    	CFRunLoopRunInMode (in CoreFoundation) + 88
    	RunCurrentEventLoopInMode (in HIToolbox) + 283
    	ReceiveNextEventCommon (in HIToolbox) + 374
    
  2. Matt Smalley

    I get the same error on commit. I see the dialog twice each time (as in, I get the error dialog, click continue, then see the same error dialog.) Murky does not show the new changesets until I reopen the repository. Also, I did a commit on the command line and Murky saw the new changesets and displayed the error (twice, like in the other cases.)

    Murky 0.7.2 / OSX 10.5.8 / HG 1.5+20100307

  3. Jens Alfke repo owner

    Can you please give any relevant details about the commit? Was it a merge? Are there multiple heads or branches in the repo? (Is this an open source repo that I could check out and reproduce this?)

  4. Anonymous

    I saw this error today using version 0.8.2.

    This is not an open source repo unfortunately. It has only one head, no branches, and this was the third commit ever. The initial commit added some files ("hg add; hg ci"). The second commit added a tag ("hg tag; hg ci"). The third commit added and removed some files ("hg addremove; hg ci"). Some of the files are binary blobs, most are ASCII text. There are no folders in the repo. I performed all the commits from the command line in Terminal.app using /usr/local/bin/hg while a Murky window for the repo was open in the background. Between commits I typed "hg log" and "hg st" a few times.

    Uncaught exception: NSRangeException
    Cannot remove an observer <NSKeyValueObservance 0x1375190> for the key path "formattedDescription" from <HgUncommittedRevision 0x133c810> because it is not registered as an observer.
    
    	-[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] (in Foundation) + 525
    	-[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] (in Foundation) + 196
    	-[NSKeyValueNestedProperty object:withObservance:didChangeValueForKeyOrKeys:forwardingValues:] (in Foundation) + 157
    	-[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation) + 290
    	-[HgRepository _checkRevisions] (in Murky) + 1518
    	-[HgRepository updateStatus:] (in Murky) + 55
    	-[HgRepository _updateChangedDirs] (in Murky) + 225
    	__NSFireDelayedPerform (in Foundation) + 382
    	CFRunLoopRunSpecific (in CoreFoundation) + 4469
    	CFRunLoopRunInMode (in CoreFoundation) + 88
    	RunCurrentEventLoopInMode (in HIToolbox) + 283
    	ReceiveNextEventCommon (in HIToolbox) + 374
    
  5. Log in to comment