Skip to contentSkip to conversation

Git-gui: crashes on OS X when entering combining ("dead") keys

DISCUSSION Beat Bolli 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Beat Bolli

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I've just had git-gui crash on me when I tried to enter the ~ (tilde) character on my Mac mini under OS X 10.6.8:

2012-02-02 22:26:25.992 Wish[49140:60f] An uncaught exception was raised
2012-02-02 22:26:25.995 Wish[49140:60f] *** -[NSCFString
characterAtIndex:]: Range or index out of bounds
2012-02-02 22:26:25.996 Wish[49140:60f] *** Terminating app due to

uncaught exception 'NSRangeException', reason: '*** -[NSCFString characterAtIndex:]: Range or index out of bounds'
*** Call stack at first throw:
(

        0   CoreFoundation                      0x00007fff8273d784
__exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff87c10f03
objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff8273d5a7
+[NSException raise:format:arguments:] + 103
        3   CoreFoundation                      0x00007fff8273d534
+[NSException raise:format:] + 148
        4   Foundation                          0x00007fff843ec6ad
- -[NSCFString characterAtIndex:] + 97
        5   Tk                                  0x00000001000bdbcf
Tk_SetCaretPos + 663
        6   Tk                                  0x00000001000c3d94
Tk_MacOSXSetupTkNotifier + 699
        7   Tcl                                 0x00000001001c629e
Tcl_DoOneEvent + 297
        8   Tk                                  0x000000010001c080
Tk_MainLoop + 24
        9   Tk                                  0x0000000100028ab4
Tk_MainEx + 1555
        10  Wish                                0x0000000100004545 0x0
+ 4294985029
        11  Wish                                0x00000001000044a4 0x0

+ 4294984868
)
terminate called after throwing an instance of 'NSException'
error: git-gui died of signal 6

[sorry for wrapping]

I use the Swiss German keyboard layout where the tilde is a dead key on Fn+n (for entering the spanish ñ, I assume). Other dead keys like ¨, ´ and ` also cause git-gui to crash. It does not matter whether the dead key is the last one in the commit message or not.

Interestingly, the commit text was saved to .git/COMMIT_MSG in spite of the crash, so I didn't lose any of it.

I use the current git 1.7.9 installed via homebrew.

Thanks,
Beat Bolli

PS: Please CC me on replies, I'm not on the list. Thanks.
- --
pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8rCFwACgkQMEuTz1BqkDoMhwCfZr+/FAsl7LsVxxHmelirDh+w RZsAoOzusVol5b8zZEGq9NLanHlfi4bt
=hFrL
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 5 lines · Beat Bolli

Hi

I've just had git-gui crash on me when I tried to enter the ~ (tilde) character on my Mac mini under OS X 10.6.8:

This doesn't look git-gui specific so you will likely get more results posting to the comp.lang.tcl newsgroup about this - or there is a mac-specific tcl/tk list someplace.

Not posessing a Mac I can't look into this at all - but an NSException -- that is a problem from the Tk to native layer.

Signature · 2 lines
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD
author
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Pat Thoyts
Quoted 5 lines · Beat Bolli

Hi

I've just had git-gui crash on me when I tried to enter the ~ (tilde) character on my Mac mini under OS X 10.6.8:

This doesn't look git-gui specific so you will likely get more results posting to the comp.lang.tcl newsgroup about this - or there is a mac-specific tcl/tk list someplace.

OK, I'll try to find the appropriate group.

Thanks,
Beat
- --
mail: echo '<[email protected]>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8tv2AACgkQMEuTz1BqkDqWAgCeOvSzdtYqzAsIZ3VFxd7HbNmY HxYAoMpAdrYx8QoxlSX7blBj/y66wMQP
=WvyW
-----END PGP SIGNATURE-----