gitx -c crashes: could not load "PBGitCommitView"
Reported by Ryan D Johnson | April 1st, 2009 @ 06:59 PM
gitx -c from the shell crashes. Stack trace
included.
Present in 0.6.2 as well as current master HEAD 69838a47248bedb30b7bcafc7266523e555b96ae
gitx:master gitx $ gitx -c 2009-04-01 09:55:26.665 gitx[62283:10b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '[NOTE: this exception originated in the server.] -[NSViewController loadView] could not load the "PBGitCommitView" nib.' 2009-04-01 09:55:26.667 gitx[62283:10b] Stack: (
2485084427,
2415971899,
2485083185,
2475728934,
2475726793,
2485107050,
2485107154,
12367
) Trace/BPT trap
Comments and changes to this ticket
-

Pieter de Bie April 1st, 2009 @ 07:10 PM
Does it work if you open GitX from the Finder? How about if you start GitX from the finder first, and then use the cli tool?
-

Ryan D Johnson April 1st, 2009 @ 07:13 PM
It works if I start GitX from Finder and then browse to the repo. It also works if GitX.app is already running and I use gitx -c from the shell.
(on 69838a47248bedb30b7bcafc7266523e555b96ae)
-

-

Ryan D Johnson April 1st, 2009 @ 07:22 PM
gitx starts the GUI ok as long as it's starting in log view instead of commit view. If the GUI is started from the cli, the commit view doesn't work at all; for example, clicking the commit view button in the toolbar results in a blank view.
-

Pieter de Bie April 1st, 2009 @ 07:26 PM
Is the 'gitx' cli opening the same .app as you do manually? Sounds like something is corrupted or something.
-

Ryan D Johnson April 1st, 2009 @ 07:31 PM
You're right.
gitx opens GitX.app 0.6.2
But running GitX.app gets 0.6.2 (0.6.2.7)
How could this have happened? I deleted the old GitX.app.
The gitx cli is just a symlink:
$ ls -l
which gitxlrwxr-xr-x 1 root wheel 46B Apr 1 09:29 /usr/local/bin/gitx@ -> /Applications/GitX.app/Contents/Resources/gitxI've already done
rm -rf /Applications/GitX.app rm -rf build rake install
Are there other steps I can take to try to get back to a consistent state?
-

Pieter de Bie April 1st, 2009 @ 07:34 PM
the cli just asks OS X to open the program with the 'nl.frim.gitx' identifier. I'm not sure how Cocoa finds that app, but my guess would be that it first looks in /Applications and ~/Applications for the GitX.app, and then uses the most recent one if it can't find any there.
The gitx cli is a symlink, so if it doesn't work anymore you can probably reinstall it from with GitX. The location the symlink links to does not influence the version of GitX.app that is opened.
-

Ryan D Johnson April 1st, 2009 @ 07:40 PM
Yeah, hmm, 'open -b nl.from.gitx' is still opening the old version, even though 'open /Applications/GitX.app' is opening the new version.
ps saves the day, look where it found it:
/var/folders/Q1/Q1s1yfTmEbCXv8a6DkxwCU+++TI/-Tmp-/GitX 0.6.1 Update/GitX.app/Contents/MacOS/GitX -psn_0_5330197
That is about the weirdest thing I've ever seen.
-

Ryan D Johnson April 1st, 2009 @ 07:42 PM
BTW, future readers, fixed it simply with
rm -rf '/var/folders/Q1/Q1s1yfTmEbCXv8a6DkxwCU+++TI/-Tmp-/GitX 0.6.1 Update'
-

Pieter de Bie April 1st, 2009 @ 07:44 PM
- State changed from new to resolved
I'd guess the Sparkle update made a booboo :)
[state:resolved]
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
GitX is the nice-looking gitk clone for OS X