On 3 mar 2011, at 15.53, Charly Avital wrote:
> <http://www.gpgtools.org/gpgpreferences.html>
> Overview
> The GPGTools preferences pane will replace the old GPGPreferences pane
> in the future. By now you can fix broken GPG and GPGMail installations
> (e.g. after an OS X update).
Hmm...it worked.
Then I got the question whether I wanted to upgrade GPGMail to 1.3.2. I did
click "ok". Mail restarted, and crashed. Then started without the GPGMail
Bundle installed.
Here is the crash:
> Mar 3 23:35:43 dhcp-10-55-82-1 Mail[37968]: Adding Snow Leopard Compatibility
> Mar 3 23:35:43 dhcp-10-55-82-1 Mail[37968]: NSExceptionHandler has recorded
> the following exception:\nNSInvalidArgumentException -- *** -[NSCFArray
> insertObject:atIndex:]: attempt to insert nil\nStack trace: 0x7fff83305a2c
> 0x7fff8661d0f3 0x7fff821f35d7 0x7fff821f3564 0x7fff827a7e16 0x1168eddc0
> 0x1168ed82e 0x1168e9b1e 0x1168e715c 0x1168e585d 0x7fff85b6c546
> 0x7fff85b6a88d 0x7fff85b69d9a 0x7fff85b69bd2 0x1168e81d5 0x1168e8dda
> 0x10004b872 0x10004b6ff 0x1168e5163 0x7fff86619535 0x7fff8662763e
> 0x7fff8661feaa 0x7fff866181ba 0x7fff827eab9b 0x1001975b1 0x100005a77
> 0x100004360 0x7fff827b1a66 0x7fff8219b000 0x7fff82187578 0x7fff827a89ce
> 0x100002a59 0x7fff85bd93d6 0x7fff85bd930b 0x7fff85ca4305 0x7fff85ca3f81
> 0x7fff827dff62 0x7fff827dfd92 0x7fff866cd323 0x7fff866cd21c
> 0x7fff866cd123 0x7fff87445765 0x7fff85ba904b 0x7fff85ba87a9
> 0x7fff85b6e48b 0x7fff85b671a8 0x100002598 0x2
> Mar 3 23:35:43 dhcp-10-55-82-1 Mail[37968]: Caught an exception trying to
> load GPGMail.mailbundle. The exception was:\n*** -[NSCFArray
> insertObject:atIndex:]: attempt to insert nil
> Mar 3 23:35:45 dhcp-10-55-82-1 com.apple.launchd.peruser.501[112]
> ([0x0-0xf94f94].com.apple.mail[37968]): Job appears to have crashed:
> Segmentation fault
> Mar 3 23:35:46 dhcp-10-55-82-1 installd[37436]: Exiting.
> Mar 3 23:35:46 dhcp-10-55-82-1 ReportCrash[37995]: Saved crash report for
> Mail[37968] version 4.4 (1082) to
> /Users/paf/Library/Logs/DiagnosticReports/Mail_2011-03-03-233546_beef.crash
And now the "fix" does not work.
When running the fix, this is the result (run with sh -x):
$ sh -x
/Users/paf/Library/PreferencePanes/GPGTools.prefPane/Contents/Resources/fix_gpgmail.sh
+ _bundleId=gpgmail
+ _bundleName=GPGMail.mailbundle
+ _bundleRootPath=/Users/paf/Library/Mail/Bundles
+ _bundlePath=/Users/paf/Library/Mail/Bundles/GPGMail.mailbundle
+ _plistBundle=/Users/paf/Library/Mail/Bundles/GPGMail.mailbundle/Contents/Info
+ _plistMail=/Applications/Mail.app/Contents/Info
+ _plistFramework=/System/Library/Frameworks/Message.framework/Resources/Info
++ '[' -d /Users/paf/Library/Mail/Bundles/GPGMail.mailbundle ']'
++ echo 1
+ isInstalled=1
+ '[' 1 == 1 ']'
+ echo '[gpgmail] is installed'
[gpgmail] is installed
++ defaults read /Applications/Mail.app/Contents/Info PluginCompatibilityUUID
+ uuid1=BDD81F4D-6881-4A8D-94A7-E67410089EEB
++ defaults read /System/Library/Frameworks/Message.framework/Resources/Info
PluginCompatibilityUUID
+ uuid2=857A142A-AB81-4D99-BECC-D1B55A86D94E
++ grep BDD81F4D-6881-4A8D-94A7-E67410089EEB
/Users/paf/Library/Mail/Bundles/GPGMail.mailbundle/Contents/Info.plist
+ isPatched1=' <string>BDD81F4D-6881-4A8D-94A7-E67410089EEB</string>'
++ grep 857A142A-AB81-4D99-BECC-D1B55A86D94E
/Users/paf/Library/Mail/Bundles/GPGMail.mailbundle/Contents/Info.plist
+ isPatched2=' <string>857A142A-AB81-4D99-BECC-D1B55A86D94E</string>'
+ '[' '' '!=' ' <string>BDD81F4D-6881-4A8D-94A7-E67410089EEB</string>'
']'
+ '[' '' '!=' ' <string>857A142A-AB81-4D99-BECC-D1B55A86D94E</string>'
']'
+ echo '[gpgmail] already patched'
[gpgmail] already patched
One weakness in the "fix" script is that it takes just a random GPGMail bundle
and move it to the Bundle directlry. If one have multiple disabled directories,
it should take the last one, or check what version there is.
I.e. this line:
foundDisabled=`find "$_bundleRootPath ("* -type d -name "$_bundleName"|head
-n1`
For example, when I run it, I get:
++ find '/Users/paf/Library/Mail/Bundles (Disabled 1)'
'/Users/paf/Library/Mail/Bundles (Disabled 10)'
'/Users/paf/Library/Mail/Bundles (Disabled 11)'
'/Users/paf/Library/Mail/Bundles (Disabled 12)'
'/Users/paf/Library/Mail/Bundles (Disabled 13)'
'/Users/paf/Library/Mail/Bundles (Disabled 14)'
'/Users/paf/Library/Mail/Bundles (Disabled 15)'
'/Users/paf/Library/Mail/Bundles (Disabled 2)' '/Users/paf/Library/Mail/Bundles
(Disabled 3)' '/Users/paf/Library/Mail/Bundles (Disabled 4)'
'/Users/paf/Library/Mail/Bundles (Disabled 5)' '/Users/paf/Library/Mail/Bundles
(Disabled 6)' '/Users/paf/Library/Mail/Bundles (Disabled 7)'
'/Users/paf/Library/Mail/Bundles (Disabled 8)' '/Users/paf/Library/Mail/Bundles
(Disabled 9)' '/Users/paf/Library/Mail/Bundles (Disabled)' -type d -name
GPGMail.mailbundle
+ foundDisabled='/Users/paf/Library/Mail/Bundles (Disabled
12)/GPGMail.mailbundle'
Ok, so the next step is to remove all Disabled "things" and then reinstall.
Did not help...
Mar 3 23:45:31 dhcp-10-55-82-1 Mail[38615]: Adding Snow Leopard Compatibility
Mar 3 23:45:31 dhcp-10-55-82-1 Mail[38615]: NSExceptionHandler has recorded
the following exception:\nNSInvalidArgumentException -- *** -[NSCFArray
insertObject:atIndex:]: attempt to insert nil\nStack trace: 0x7fff83305a2c
0x7fff8661d0f3 0x7fff821f35d7 0x7fff821f3564 0x7fff827a7e16 0x116a0fdc0
0x116a0f82e 0x116a0bb1e 0x116a0915c 0x116a0785d 0x7fff85b6c546
0x7fff85b6a88d 0x7fff85b69d9a 0x7fff85b69bd2 0x116a0a1d5 0x116a0adda
0x10004b872 0x10004b6ff 0x116a07163 0x7fff86619535 0x7fff8662763e
0x7fff8661feaa 0x7fff866181ba 0x7fff827eab9b 0x1001975b1 0x100005a77
0x100004360 0x7fff827b1a66 0x7fff8219b000 0x7fff82187578 0x7fff827a89ce
0x100002a59 0x7fff85bd93d6 0x7fff85bd930b 0x7fff85ca4305 0x7fff85ca3f81
0x7fff827dff62 0x7fff827dfd92 0x7fff866cd323 0x7fff866cd21c 0x7fff866cd123
0x7fff87445765 0x7fff85ba904b 0x7fff85ba87a9 0x7fff85b6e48b 0x7fff85b671a8
0x100002598 0x2
Mar 3 23:45:31 dhcp-10-55-82-1 Mail[38615]: Caught an exception trying to load
GPGMail.mailbundle. The exception was:\n*** -[NSCFArray insertObject:atIndex:]:
attempt to insert nil
Mar 3 23:45:32 dhcp-10-55-82-1 com.apple.launchd.peruser.501[112]
([0x0-0xfa3fa3].com.apple.mail[38615]): Job appears to have crashed:
Segmentation fault
Mar 3 23:45:32 dhcp-10-55-82-1 ReportCrash[38641]: Saved crash report for
Mail[38615] version 4.4 (1082) to
/Users/paf/Library/Logs/DiagnosticReports/Mail_2011-03-03-234532_beef.crash
Can something in the settings be bad?
Patrik
_______________________________________________
gpgtools-users mailing list
[email protected]
FAQ: http://www.gpgtools.org/faq.html
Changes: http://lists.gpgtools.org/mailman/listinfo/gpgtools-users
Unsubscribe:
http://lists.gpgtools.org/mailman/options/gpgtools-users/[email protected]?unsub=Unsubscribe&unsubconfirm=1
This email sent to: [email protected]