Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening a repository #72

Open
martint opened this issue Nov 5, 2010 · 3 comments
Open

Error when opening a repository #72

martint opened this issue Nov 5, 2010 · 3 comments

Comments

@martint
Copy link

martint commented Nov 5, 2010

I'm getting the following error when opening a repository:

2010-11-05 09:10:08.433 GitX[79842:903] HIToolbox: ignoring exception '*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil key' that raised inside Carbon event dispatch
(
0 CoreFoundation 0x00007fff83588cc4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff87f7e0f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff83588ae7 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff83588a74 +[NSException raise:format:] + 148
4 Foundation 0x00007fff8432fa5c -[NSCFDictionary setObject:forKey:] + 164
5 GitX 0x00000001000088d0 -[PBGitRepository reloadRefs] + 580
6 GitX 0x0000000100007845 -[PBGitRepository setup] + 188
7 GitX 0x0000000100007522 -[PBGitRepository readFromURL:ofType:error:] + 519
8 AppKit 0x00007fff8593cb26 -[NSDocument initWithContentsOfURL:ofType:error:] + 265
9 AppKit 0x00007fff859483a0 -[NSDocumentController makeDocumentWithContentsOfURL:ofType:error:] + 332
10 AppKit 0x00007fff85948190 -[NSDocumentController openDocumentWithContentsOfURL:display:error:] + 734
11 AppKit 0x00007fff85946b9d -[NSDocumentController _openDocumentsWithContentsOfURLs:display:presentErrors:] + 148
12 AppKit 0x00007fff85765152 -[NSApplication sendAction:to:from:] + 95
13 AppKit 0x00007fff857896be -[NSMenuItem _corePerformAction] + 365
14 AppKit 0x00007fff85789428 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 121
15 AppKit 0x00007fff85a0d41d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
16 AppKit 0x00007fff858bf217 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 136
17 AppKit 0x00007fff8576bc14 NSSLMMenuEventHandler + 321
18 HIToolbox 0x00007fff82a79997 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002
19 HIToolbox 0x00007fff82a78ee6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395
20 HIToolbox 0x00007fff82a96ba9 SendEventToEventTarget + 45
21 HIToolbox 0x00007fff82ac5cd1 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 387
22 HIToolbox 0x00007fff82af2b06 SendMenuCommandWithContextAndModifiers + 56
23 HIToolbox 0x00007fff82af2abe SendMenuItemSelectedEvent + 101
24 HIToolbox 0x00007fff82af29be ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 150
25 HIToolbox 0x00007fff82ad3cb3 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 467
26 HIToolbox 0x00007fff82ad3408 _HandleMenuSelection2 + 453
27 AppKit 0x00007fff8563cc39 _NSHandleCarbonMenuEvent + 236
28 AppKit 0x00007fff8561074e _DPSNextEvent + 1908
29 AppKit 0x00007fff8560fbed -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
30 AppKit 0x00007fff855d58d3 -[NSApplication run] + 395
31 AppKit 0x00007fff855ce5f8 NSApplicationMain + 364
32 GitX 0x0000000100001cb4 start + 52
)

This is when running with the latest experimental with git 1.7.2:

GitX version 0.7.1 (v0.7.1-233-g59c4983)
Using git found at /opt/local/bin/git, version 1.7.2

If works fine if I run it with git 1.6.5.1

@brotherbard
Copy link
Owner

Could post the output for:

git for-each-ref --format="%(refname) %(objecttype) %(objectname) %(*objectname)" refs

It would also be interesting to see the difference between git 1.6.5 and 1.7.2

Or send me the repo?

@martint
Copy link
Author

martint commented Nov 5, 2010

Hmm... looks like something is broken in the repo (or in git 1.7.2). I get the following with git 1.7.2:

fatal: missing object 0000000000000000000000000000000000000000 for refs/remotes/yorktown/HEAD

@peritus
Copy link

peritus commented Feb 2, 2011

I can reproduce this using git 1.7.4, 1.7.1.4. Doesn't seem to be repo-specific though.

The above command "git for-each-ref..." lists commits just fine.

user@box ~/workspace/validictory [git:master?] $ git --version
git version 1.7.1.4
user@box ~/workspace/validictory [git:master?] $ git for-each-ref --format="%(refname) %(objecttype) %(objectname) %(*objectname)" refs
refs/heads/master commit 05f898ea67158fd9577eb53f9e5c7f0e67dc8817 
refs/heads/optional_required commit 79279c5d8ddc52d053600e8cc2e523c3b8edab8a 
refs/heads/required commit 29d836279f607ad70aa04c93ceb61b582ec7b08a 
refs/heads/requires_dependencies commit 3fa2129b658c24f565bd7f1ca2cf1ed8b9b71483 
refs/remotes/origin/master commit 05f898ea67158fd9577eb53f9e5c7f0e67dc8817 
refs/remotes/sunlightlabs/HEAD commit 05f898ea67158fd9577eb53f9e5c7f0e67dc8817 
refs/remotes/sunlightlabs/master commit 05f898ea67158fd9577eb53f9e5c7f0e67dc8817 
refs/remotes/sunlightlabs/required commit 29d836279f607ad70aa04c93ceb61b582ec7b08a 
refs/tags/0.3.0 tag d4f27ed6a23e2bb3c9a12c2510be3faf9bff1c6e 4396e080a3163362502b05acf0d62d29f9bca6b3
refs/tags/0.4.0 tag 695c5fa4c341488da1c5561632e909dc07f8656d 0cf8c3b1d285e9c145d6d5252edf98f3ed510509
refs/tags/0.4.1 tag 1a1474cb3a2a8d77946c95dc93255572658ef173 0ef42ee098b754e75cb29159adb1df9f5061cf7b
refs/tags/0.5.0 tag 781722d4b613afea992e3459b8210cacb75d5187 d80106c724f0c5820e7fa2dddf2d16fe46605851
refs/tags/0.6.0 tag f031b6a24dab924e11b98e6ae61fe77182b8e07b f48d330d2c8c3c9839f2fdb46445bc6b6341ed12
refs/tags/0.6.1 tag 341b3253c55c3ac9e58cb7e6e5df495f12ce2e23 30983f0ea63acf1d19c189c44d844f6534a71c93

(github parses the shas and adds <a href= here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants