none
Our Application Crash with fault Module mso20win32client.dll RRS feed

  • Question

  • Hi,

    Our Application crashes and from the log i could make that mso20win32client.dll is the fault module.

    What could be the reason mso20win32client.dll crashes our application?

    Given below is the log from our application:

    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   1 .V 71b7c16d 71b7c0b8 05f2ea18 05f2ea0c Ordinal1005 +316 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1005
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1005
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   2 .V 71b7c0b8 71b7c00c 05f2ea6c 05f2ea20 Ordinal1005 +135 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1005
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1005
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   3 .V 71b7c00c 71b7b72c 05f2ea88 05f2ea74 Ordinal1142 +32 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1142
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1142
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   4 .V 71b7b72c 71b782ab 05f2eaa0 05f2ea90 Ordinal1460 +298 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1460
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1460
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   5 .V 71b782ab 71b78290 05f2eab0 05f2eaa8 Ordinal1151 +24379 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   6 .V 71b78290 71174e75 05f2eadc 05f2eab8 Ordinal1151 +24352 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   7 .V 71174e75 71dc62b3 05f2eaec 05f2eae4 Ordinal788 +14 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal788
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal788
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso30win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso30win32client.dll], base: 71170000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso30win32client.dll
    Sat 07/07 11:46:41.767      StackWalk: 462:Error  [16280]   8 .V 71dc62b3 74331046 05f2eb3c 05f2eaf4 MAPIInitialize +113 bytes
    Sat 07/07 11:46:41.767      StackWalk: 466:Error  [16280]     Sig:  MAPIInitialize
    Sat 07/07 11:46:41.767      StackWalk: 467:Error  [16280]     Decl: MAPIInitialize

    I would be grateful if someone could help me out some possible causes.

    our application converts EML to MSG and save them to Database. As per the information i got from the customer it happens only for some specific emails. But cannot be reproduced in my environment.

    Thanks 


    thopulou Associate Software Engineer

    Monday, July 16, 2018 10:42 AM

All replies

  • Do you develop a standalone application? If so, when and where do you run it? What line of code exactly causes application crashes? 


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Monday, July 16, 2018 3:01 PM
  • Hello D thopulou,

    What application are you developing? What's the related code?

    What's the specific emails? Is there any obviously characteristic?

    What's the building number of your customer's Office 2016? If they try to update to latest version, will the issue still exist?

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, July 17, 2018 3:17 AM
  • Hi Eugene,

    It is a standalone application. 

    I suspect customer upgraded Microsoft office (checking with customer)

    i got below result from analyzing crash dump file.

    The stored exception information can be accessed via .ecxr.
    (36c8.3f98): Access violation(36c8.3f98): Access violation - code c0000005 (first/second chance not available)
     - code c0000005 (first/second chance not available)

    what could be the possible cause of Access Violation when calling MAPIInitialize?

    Thanks


    thopulou Associate Software Engineer

    Tuesday, July 17, 2018 6:06 PM
  • Hi Terry,

    Our Application is a Standalone Application. we are calling MAPIInitialize and it crashes while calling.

    I will check with my Customer on their Office's Build Number. And i will ask them to try by updating to the latest build number.

    I suspect the issue occurs because of upgrading Office.

    Is there any issue with some specific build numbers of Office 2016? 

    I came across people are also facing this kind of issue.

    https://social.msdn.microsoft.com/Forums/office/en-US/dd9d6604-082c-4141-9afb-78f397d795a0/mapiinitialize-crash-when-using-inside-service-when-client-is-installed-outlook-2016?forum=outlookdev

    https://answers.microsoft.com/en-us/msoffice/forum/msoffice_officeinsider-mso_win10-msoinsider_outlook/outlook-build-16069652053-for-office-2016-causing/4ad99f17-fc9a-4b2c-acd9-0f3adcac5c52

    I will check with customer and update you.

    Thanks a lot for response.



    thopulou Associate Software Engineer

    Tuesday, July 17, 2018 6:25 PM
  • Hi thopulou ,

    Are you able to reproduce the issue with the MAPIInitialize method when MFCMAPI is used instead?


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Wednesday, July 18, 2018 10:27 AM
  • Are you loading msmapi32.dll or olmapi32.dll?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, July 18, 2018 1:47 PM
  • Hi Eugene,

    we are not able to reproduce this issue in our environment but only in customer's environment.

    But i will try reproducing it with different outlook versions.

    Thanks.


    thopulou Associate Software Engineer

    Wednesday, July 18, 2018 3:25 PM
  • Hi Dmitry,

    This is the log from customer's environment

    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   6 .V 71b78290 71174e75 05f2eadc 05f2eab8 Ordinal1151 +24352 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal1151
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso20win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll], base: 71b70000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso20win32client.dll
    Sat 07/07 11:46:41.751      StackWalk: 462:Error  [16280]   7 .V 71174e75 71dc62b3 05f2eaec 05f2eae4 Ordinal788 +14 bytes
    Sat 07/07 11:46:41.751      StackWalk: 466:Error  [16280]     Sig:  Ordinal788
    Sat 07/07 11:46:41.751      StackWalk: 467:Error  [16280]     Decl: Ordinal788
    Sat 07/07 11:46:41.751      StackWalk: 541:Error  [16280]     Mod:  mso30win32client[C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso30win32client.dll], base: 71170000h
    Sat 07/07 11:46:41.751      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso30win32client.dll
    Sat 07/07 11:46:41.767      StackWalk: 462:Error  [16280]   8 .V 71dc62b3 74331046 05f2eb3c 05f2eaf4 MAPIInitialize +113 bytes
    Sat 07/07 11:46:41.767      StackWalk: 466:Error  [16280]     Sig:  MAPIInitialize
    Sat 07/07 11:46:41.767      StackWalk: 467:Error  [16280]     Decl: MAPIInitialize
    Sat 07/07 11:46:41.767      StackWalk: 541:Error  [16280]     Mod:  olmapi32[C:\Program Files (x86)\Microsoft Office\Office16\olmapi32.dll], base: 71dc0000h
    Sat 07/07 11:46:41.767      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Microsoft Office\Office16\olmapi32.dll
    Sat 07/07 11:46:41.767      StackWalk: 462:Error  [16280]   9 .V 74331046 73685724 05f2eb50 05f2eb44 MAPIInitialize +70 bytes
    Sat 07/07 11:46:41.767      StackWalk: 466:Error  [16280]     Sig:  MAPIInitialize
    Sat 07/07 11:46:41.767      StackWalk: 467:Error  [16280]     Decl: MAPIInitialize
    Sat 07/07 11:46:41.767      StackWalk: 541:Error  [16280]     Mod:  MSMAPI32[C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033\MSMAPI32.DLL], base: 74330000h
    Sat 07/07 11:46:41.767      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033\MSMAPI32.DLL
    Sat 07/07 11:46:41.939      StackWalk: 462:Error  [16280]  10 .V 73685724 6ff29fab 05f2eb70 05f2eb58 MAPIInitialize +100 bytes
    Sat 07/07 11:46:41.939      StackWalk: 466:Error  [16280]     Sig:  MAPIInitialize
    Sat 07/07 11:46:41.939      StackWalk: 467:Error  [16280]     Decl: MAPIInitialize
    Sat 07/07 11:46:41.939      StackWalk: 541:Error  [16280]     Mod:  MAPI32[C:\Windows\SYSTEM32\MAPI32.dll], base: 73680000h
    Sat 07/07 11:46:41.939      StackWalk: 542:Error  [16280]     Sym:  type: -exported-, file: C:\Windows\SYSTEM32\MAPI32.dll
    Sat 07/07 11:46:41.939      StackWalk: 462:Error  [16280]  11 .V 6ff29fab 6ff29623 05f2eb80 05f2eb78 CMIMEToMSG::FinalConstruct +11 bytes
    Sat 07/07 11:46:41.939      StackWalk: 466:Error  [16280]     Sig:  CMIMEToMSG::FinalConstruct
    Sat 07/07 11:46:41.939      StackWalk: 467:Error  [16280]     Decl: CMIMEToMSG::FinalConstruct

    In our code we are calling MAPIInitialize. So as per my understanding MAPIInitialize is calling msmapi32.dll or olmapi32.dll internally.

    This is how we are calling MAPIInitialize

    HRESULT CMIMEToMSG::FinalConstruct()
    {
    HRESULT hr = S_OK;
    do
    {
    hr = ::MAPIInitialize(NULL);
    if (FAILED(hr))
    {
    Log.Add(_T("Failed to initialize MAPI (0x%x)"), hr); break;
    }
    m_bMAPIInitialized = TRUE;
    }
    while(false);
    return hr;
    }

    Does it has to do with outlook version.

    this just happen to them recently

    Thank you so for your response.


    thopulou Associate Software Engineer


    • Edited by D thopulou Wednesday, July 18, 2018 3:40 PM
    Wednesday, July 18, 2018 3:39 PM
  • But how do you load the MAPI dll? Or do you just statically link to mapi32.dll?

    Look at the MFCMAPI source code for an example of how the MAPI system must be loaded.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, July 18, 2018 4:17 PM
  • Hi Dmitry,

    We are statically linking Mapi32.lib(implicit linking). I check with MFCMAPI they does Explicit linking.

    Implicit linking must have caused issue? 

    What if i use MapiStubLibrary?

    https://archive.codeplex.com/?p=mapistublibrary

    Thanks


    thopulou Associate Software Engineer

    Thursday, July 19, 2018 4:29 PM
  • Yes, MAPIStub library is the way to go.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Thursday, July 19, 2018 4:33 PM
  • We use MAPIStubLibrary, but we have the crash issue too. When the application is started, some dlls will be dynamically loaded with "LoadLibrary". When MAPIInitialize and those dlls loading run at the same time, then the App will crash.(100%). However, when MAPIInitialize is called about 10s after those dlls are loaded, then there is no crash. This is really weird, we have tested office2016 and office365, they all have such issue.

    0:103> kc
      *** Stack trace for last set context - .thread/.cxr resets it
     # Call Site
    00 mso20win32client!Ordinal2055
    01 mso20win32client!Ordinal2055
    02 ucrtbase!raise
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for libglib-2.0-0.dll - 
    03 ucrtbase!abort
    04 libglib_2_0_0!g_string_vprintf
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for libpme.dll - 
    05 libglib_2_0_0!g_assertion_message_expr
    06 libpme!pme_main_pipeline_update_renderer_pad
    07 libpme!pme_main_pipeline_startup
    08 libglib_2_0_0!g_once_impl
    09 libpme!pme_main_pipeline_close
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for libgobject-2.0-0.dll - 
    0a libpme!pme_main_pipeline_close
    0b libgobject_2_0_0!g_object_newv
    0c libgobject_2_0_0!g_object_new_valist
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for libcxypme.dll - 
    0d libgobject_2_0_0!g_object_new

    0:103> ~0s
    ntdll!NtWaitForMultipleObjects+0x14:
    00007ffd`c174b4f4 c3              ret
    0:000> k
     # Child-SP          RetAddr           Call Site
    00 00000007`6a958688 00007ffd`be716069 ntdll!NtWaitForMultipleObjects+0x14
    01 00000007`6a958690 00007ffd`be715f5e KERNELBASE!WaitForMultipleObjectsEx+0xf9
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for OLMAPI32.DLL - 
    02 00000007`6a958990 00007ffd`4fbe0845 KERNELBASE!WaitForMultipleObjects+0xe
    03 00000007`6a9589d0 00007ffd`4fbe0378 OLMAPI32!HrUninitMso+0xa65
    04 00000007`6a958ac0 00007ffd`4fb72fee OLMAPI32!HrUninitMso+0x598
    05 00000007`6a958d50 00007ffd`4fb72e1e OLMAPI32!MAPIInitialize+0x23e
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for MSMAPI32.DLL - 
    06 00000007`6a958da0 00007ffd`80051182 OLMAPI32!MAPIInitialize+0x6e

    • Edited by chengzhl Tuesday, March 17, 2020 5:00 PM
    Tuesday, March 17, 2020 4:57 PM
  • If you have a crash dump (you can use procdump.exe for that) (and a sample project that exhibits this problem), I will get it to Microsoft.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, March 17, 2020 5:23 PM