Office 365 on Win 10 - Application crashed unexpectedly

Add-in Express™ Support Service
That's what is more important than anything else

Office 365 on Win 10 - Application crashed unexpectedly
Office apps crash unexpectedly with plugin installed 
Gutek Jakub




Posts: 39
Joined: 2017-06-06
Looking for help/ideas

My client started migrating to Office 365 and straight away they encountered an issue. If plugin is installed, office apps (word/powerpoint/excel) every second run (yes, every second run) shows following after office is closed:

User added an image

when plugin is uninstalled, this error does not shows up.

It does not matter if this is full blown plugin or skeleton version of (just basic initialisation of UI components, no interactions). this error is showed.

Any ideas where to look for a clue what can be wrong?

log files does not say anything helpful. log from plugin shows initialize and shutdown without errors, and log for office shows:


Name der fehlerhaften Anwendung: WINWORD.EXE, Version: 16.0.9126.2116, Zeitstempel: 0x5ab58f3c
Name des fehlerhaften Moduls: ntdll.dll, Version: 10.0.15063.608, Zeitstempel: 0x802f667e
Ausnahmecode: 0xc0000374
Fehleroffset: 0x000d9aba
ID des fehlerhaften Prozesses: 0x42f0
Startzeit der fehlerhaften Anwendung: 0x01d3d16ae57bd7d4
Pfad der fehlerhaften Anwendung: C:Program Files (x86)Microsoft Office
ootOffice16WINWORD.EXE
Pfad des fehlerhaften Moduls: C:WINDOWSSYSTEM32
tdll.dll
Berichtskennung: e0c3bc36-566d-49e0-8ec1-c68a5f807602
Vollst?ndiger Name des fehlerhaften Pakets: 
Anwendungs-ID, die relativ zum fehlerhaften Paket ist: 


Name der fehlerhaften Anwendung: POWERPNT.EXE, Version: 16.0.9126.2116, Zeitstempel: 0x5ab559e4
Name des fehlerhaften Moduls: ntdll.dll, Version: 10.0.15063.608, Zeitstempel: 0x802f667e
Ausnahmecode: 0xc0000374
Fehleroffset: 0x000d9aba
ID des fehlerhaften Prozesses: 0x10fc
Startzeit der fehlerhaften Anwendung: 0x01d3d17134a61ef0
Pfad der fehlerhaften Anwendung: C:Program Files (x86)Microsoft Office
ootOffice16POWERPNT.EXE
Pfad des fehlerhaften Moduls: C:WINDOWSSYSTEM32
tdll.dll
Berichtskennung: 411170ee-1dbd-4dc1-8246-3f6a517ca0ba
Vollst?ndiger Name des fehlerhaften Pakets: 
Anwendungs-ID, die relativ zum fehlerhaften Paket ist: 


Any help would be really appreciated!
Posted 19 Apr, 2018 16:13:55 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Jakub,

Please reinstall the add-in, get copies of Add-in Express log files right after reproducing the issue and send them to the support email address.

Do you have logging in your add-in?


Andrei Smolin
Add-in Express Team Leader
Posted 20 Apr, 2018 06:16:12 Top
Gutek Jakub




Posts: 39
Joined: 2017-06-06
Hi,

Sorry, did not get email notification about this :(

I will prepare installation with logs enabled for Add-in express so I can provide more details.

As for application logging - yes, I do, but its not helpful. In skeleton version (without logic connected) all we got in logs is:


START AddinModule_AddinInitialize
// noting as in skeleton mode 
END AddinModule_AddinInitialize
START AddinModule_AddinBeginShutdown
// nothing as actions are not connected
END AddinModule_AddinBeginShutdown


So Add in loads and unloads without throwing any errors. Is just after closing office, office seams like it can't fully release an office application. issue is gone once plugin is uninstalled.

Will provide logs ASAP.

Kind regards
Posted 24 Apr, 2018 14:41:46 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Jakub,

Does the skeleton version have any components on the add-in module? Does "without logic connected" mean no event handler is connected on any of the component on the module? Is the issue reproducible on a newly created add-in with no code?


Andrei Smolin
Add-in Express Team Leader
Posted 25 Apr, 2018 02:31:50 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Jakub,

Thank you for the files. Could you please respond to my previous message (see above)?


Andrei Smolin
Add-in Express Team Leader
Posted 26 Apr, 2018 09:51:34 Top
Gutek Jakub




Posts: 39
Joined: 2017-06-06
Hi,

The skeleton that is having this issue is pure UI Ribbon controls initialisation with click handlers. no Outlook events etc.

We did not tried with empty new project. I can create one and share with affected user.

Kind regards
Posted 26 Apr, 2018 14:46:16 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Thank you.

Could you please send me a) the skeleton project, b) a setup project for the skeleton project, and c) an installer that deploys the skeleton add-in?


Andrei Smolin
Add-in Express Team Leader
Posted 27 Apr, 2018 01:50:46 Top
Gutek Jakub




Posts: 39
Joined: 2017-06-06
Hi,

sorry, my subscription had ended and I was not able to answer.

after upgrading to newest version of Add In Express issue had gone away.

but we have new one now related to Excel and opening files in Protected View saved from internet. I was not able to reproduce this on any other office application and it only happen to me when I'm double clicking on file to open it.

Error received:

Faulting application name: EXCEL.EXE, version: 16.0.9330.2124, time stamp: 0x5b16fa16
Faulting module name: mso40uiwin32client.dll, version: 0.0.0.0, time stamp: 0x5b10a214
Exception code: 0xc0000005
Fault offset: 0x0000000000078f37
Faulting process id: 0x19ac0
Faulting application start time: 0x01d40c864e7774af
Faulting application path: C:Program FilesMicrosoft OfficeRootOffice16EXCEL.EXE
Faulting module path: C:Program FilesCommon FilesMicrosoft SharedOffice16mso40uiwin32client.dll
Report Id: bca4c160-318e-4b72-bdf3-3d8acff39f08
Faulting package full name: 
Faulting package-relative application ID: 



Application: EXCEL.EXE
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 00007FFB3C668F37
Stack:


My current investigation:
1) Debugging solution in Visual Studio (elevated to admin) F5 with proper parameters works OK. File opens every time, from parameters of from file menu. it just works and does not throw exception.
2) Opening file from chrome download bard (on bottom of screen) always works
3) Opening file from Excel (file menu open) always works
4) Right click on file and selecting open always works
5) Opening that file from double click in explorer does not work and every try ends in exception above.

I've notice that generally Excel doubly click opening have issues. But only above case I can reproduce every time (downloading file from internet using Chrome).

This is not our plugin doing. I've even removed all code except current event wires (so i used my skeleton version of code) and this still happens exactly as steps above.

This also started to happens now - like since Version 9.0.4610. On 8.* it used to work. Right now I'm on the latest version - 9.1.4620 and issue still persist. My Excel version is 1805 (Build 9330.2124 click-to-run), Office Professional Plus 2016. So not office 365 in this case. Shall I create new post for this issue?

Kind regards
Posted 25 Jun, 2018 08:46:13 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Jakub,

A new post would be better. Please check if this issue is reproducible with an new empty add-in and all other add-ins disabled, and also without add-ins at all. This should point to Add-in Express, Excel, or your code.

Gutek Jakub writes:
On 8.* it used to work.


I suppose that was tested on another Excel build.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Jun, 2018 10:06:00 Top
Gutek Jakub




Posts: 39
Joined: 2017-06-06
will create new thread but:
1) without adding express (ie. add in disabled) double clicking works
2) as for the build, its the same computer, same excel, the only thing that might changed are patches to Office.
3) my code - there is no code at all. skeleton version is just and AddInModule with wired up events for buttons but we have abstraction over all action - so whenever something is happening, _presenter.Action is executed. and this _presenter is dummy one doing nothing (empty methods). but will try with empty add in.

Regards
Posted 25 Jun, 2018 10:13:15 Top