Outlook O365 crashes at start with gpgol
Closed, ResolvedPublic

Description

Hi,

I installed the latest gpg4win package (Version String in Kleopatra is "Version 3.1.4-gpg4win-3.1.5"). If I try to start Outlook O365 CTR (Version 1808, Build 10730.20264, x64) Outlook crashed immediatly.

I followed the instructions on this page: https://wiki.gnupg.org/TroubleShooting#GpgOL_does_not_work
I do not have an incompatible AddIn active. These are the addins I have active:

  • MS Exchange addin
  • MS Sharepoint Server Collegue Import Add-in
  • MS Teams Meeting
  • One Note Notes about Outlook Items
  • Outlook Social Connector

I then activated debugging. Here is the log I got:

8:21:29/127636/enabled debug flags: data oom
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'enableSmime' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'encryptDefault' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'signDefault' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'inlinePGP' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'replyCrypt' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'preferSmime' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'autoresolve' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'autoretrieve' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'automation' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'autosecure' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'autotrust' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'searchSmimeServers' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'smimeHtmlWarnShown' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'syncEnc' val 'null'
08:21:29/127636/common.cpp:load_extension_value: LoadReg 'syncDec' val 'null'
08:21:29/127636/gpgoladdin.cpp:~GpgolAddinFactory: Object deleted
08:21:29/127636/gpgoladdin.cpp:OnConnection: this is GpgOL 2.3.3-beta13
08:21:29/127636/DBG_OOM/gpgoladdin.cpp:OnConnection:324 AddRef on 000001d1d5abd820
08:21:29/127636/gpgoladdin.cpp:OnConnection:   using GPGME 1.12.1-beta121
08:21:29/127636/gpgoladdin.cpp:OnConnection:   in Outlook 16.0.0.10730
08:21:29/127636/gpgoladdin.cpp:addGpgOLToReg: Found gpgol reg key. Leaving it unchanged.
08:21:29/127636/gpgoladdin.cpp:addGpgOLToReg: Found gpgol reg key. Leaving it unchanged.
08:21:29/127636/DBG_OOM/oomhelp.cpp:delete_all_categories_starting_with: Delete categories starting with: "GpgOL: "
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5abd820->`Session.Stores'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d56b6eb0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d56b7090
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d56b7090->`Item(1)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d56b7130
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d56b7130->`Categories'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf3290
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(1)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf3d30
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(2)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf4410
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(3)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf4050
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(4)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf45f0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(5)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf4050
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(6)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf38d0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(7)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf47d0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(8)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf3330
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(9)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf3bf0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(10)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf4050
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(11)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf2a70
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5bf3290->`Item(12)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d5bf38d0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d56b7090->`Item(2)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582ef90
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582ef90->`Categories'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582e9f0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(1)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582f3f0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(2)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582ee50
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(3)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582ea90
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(4)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582f490
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(5)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582f8f0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(6)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582f2b0
08:21:29/127636/DBG_OOM/olflange.cpp:install_forms:396 AddRef on 000001d1d594b180
08:21:29/127636/ERROR/olflange.cpp:install_forms: error getting data directory
08:21:29/127636/DBG_OOM/application-events.cpp:install_ApplicationEvents_sink:114 AddRef on 000001d1d5c477f8
08:21:29/127636/application-events.cpp:ApplicationEvents:AddRef: m_ref now 2
08:21:29/127636/application-events.cpp:ApplicationEvents:AddRef: m_ref now 3
08:21:29/127636/application-events.cpp:ApplicationEvents:Release: mref now 2
08:21:29/127636/DBG_OOM/application-events.cpp:install_ApplicationEvents_sink:114 AddRef on 000001c9b944fe50
08:21:29/127636/application-events.cpp:ApplicationEvents:install_ApplicationEvents_sink: Advice succeeded
08:21:29/127636/DBG_OOM/application-events.cpp:install_ApplicationEvents_sink:114 AddRef on 000001d1d5abd820
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d5abd820->`Explorers'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582e9f0
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object: looking for 000001d1d582e9f0->`Item(1)'
08:21:29/127636/DBG_OOM/oomhelp.cpp:get_oom_object:385 AddRef on 000001d1d582f670
08:21:29/127636/DBG_OOM/explorer-events.cpp:install_ExplorerEvents_sink:231 AddRef on 000001d1d5c48b38
08:21:29/127636/explorer-events.cpp:ExplorerEvents:AddRef: m_ref now 2
08:21:29/127636/explorer-events.cpp:ExplorerEvents:AddRef: m_ref now 3
08:21:29/127636/explorer-events.cpp:ExplorerEvents:Release: mref now 2
08:21:29/127636/DBG_OOM/explorer-events.cpp:install_ExplorerEvents_sink:231 AddRef on 000001c9b944fe80
08:21:29/127636/explorer-events.cpp:ExplorerEvents:install_ExplorerEvents_sink: Advice succeeded
08:21:29/127636/DBG_OOM/explorer-events.cpp:install_ExplorerEvents_sink:231 AddRef on 000001d1d582f670
08:21:29/127636/DBG_OOM/gpgoladdin.cpp:install_explorer_sinks: created sink 000001c9b944fe80 for explorer 1
08:21:29/127636/DBG_OOM/explorers-events.cpp:install_ExplorersEvents_sink:77 AddRef on 000001d1d5c486d8
08:21:29/127636/explorers-events.cpp:ExplorersEvents:AddRef: m_ref now 2
08:21:29/127636/explorers-events.cpp:ExplorersEvents:AddRef: m_ref now 3
08:21:29/127636/explorers-events.cpp:ExplorersEvents:Release: mref now 2
08:21:29/127636/DBG_OOM/explorers-events.cpp:install_ExplorersEvents_sink:77 AddRef on 000001c9b948c690
08:21:29/127636/explorers-events.cpp:ExplorersEvents:install_ExplorersEvents_sink: Advice succeeded
08:21:29/127636/DBG_OOM/explorers-events.cpp:install_ExplorersEvents_sink:77 AddRef on 000001d1d582e9f0
08:21:29/127636/gpgoladdin.cpp:check_html_preferred: No type or key for ReadAsPlain
08:21:29/127196/keycache.cpp:do_populate: Populating keycache
08:21:29/127196/keycache.cpp:do_populate_protocol: Starting keylisting for proto OpenPGP
08:21:29/127636/DBG_OOM/application-events.cpp:Invoke: Unhandled Event: f006

I added the "LoadBehavior" reg key as described above in the link- this didn't lead to success either (BTW: What type of a reg key is expected? DWORD, String etc?)

Any help is much appreciated.

Details

Version
3.1.4-gpg4win-3.1.5
thome created this task.Mar 18 2019, 1:04 PM

Thanks for the report. Log looks not unusual.

Can you please also enable call tracing and add the log here? You can upload files here simply by drag & drop in the text input area.
You can configure logging if you execute c:\Program Files\Gpg4win\bin\gpgolconfig.exe which gives you GpgOL's config dialog.

Maybe we have some bug in an error handling routine in our keylisting. Does Kleopatra start for you and show all your keys?

thome added a comment.Mar 18 2019, 4:25 PM

Since I configured call tracing the running O365 Client dies immediately after activating the addin. Same happens now if I activate the addin.
Anyways, here is the log.

Maybe we have some bug in an error handling routine in our keylisting. Does Kleopatra start for you and show all your keys?

Yes Kleopatra works as expected. Lists all keys and I can use it to encrypt/decrypt stuff.

One thing I forgot to mention: I installed the gpg4win suite for the current user only - so no global installation. Hence my executables/dlls/etc. are located under C:\Users\<username>\AppData\Local\Gpg4win\bin_64

This is very strange, common to all the crashes in the log is that they happen while a keylisting is running and before the first key from that keylisting is returned. But this could be a red herring because the keylisting is always started immediately in a background thread and so it would be normal that if the crash occurs immediately that it would still be running. The keylisting code is extremely similar to Kleopatra though. So I don't understand why Kleopatra would then work for you.

Can you please replace the gpgol.dll in your install dir and try again with: https://files.gpg4win.org/Beta/gpgol/2.3.2-beta16-STABLE-BRANCH-2-3/

That is an older Version which did not have the initial keylisting. If that does not crash for you we can be pretty sure that the keylisting code is to blame. It would help me a lot.

aheinecke triaged this task as Normal priority.Mar 19 2019, 3:49 PM
thome added a comment.Mar 22 2019, 3:39 PM

Hi - that did the trick. The linked gpgol.dll loads without any issues. However the decryption of e-Mails don't work. I get the
"OpenPGP Encrypted message (decryption not possible) Could not decrypt the data: Unsupported protocol" error.

aheinecke closed this task as Resolved.Apr 9 2019, 10:08 AM
aheinecke claimed this task.

Unsupported protocol still means something with your GnuPG installation is strange.
Whats surprising me most here is that Kleopatra works for you.

As the crash of the original post was resolved I'm closing this here.
If you still face the "Unsupported protocol" error with 3.1.7 please open another issue.