Unexpected restart when closing Office 2016 using an adx addin at debug time

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

Unexpected restart when closing Office 2016 using an adx addin at debug time
 
Xavier N


Guest


Hello,
I got a kind of bug in Office 2016 (Excel, Word, Powerpoint) when closing an ADX addin at debug time. When i debug an addin any of those application in Office 2016, everything is ok. When i close the application, all seems ok (not bug/exception message is displayed) but the application restart.
At first time i thought it was linked to the addin i developed. But i unregistered it and load an adx sample addin i was using for others test(dpinotresize) and succeed to reproduce the effect many time. This problems does not always produce but the longer (timer) the office file is loaded the more likely this crash and restart may arrive...I tried to modify Office backup options to cope with this issue but without success.

This bug does not exists in Office 2010 neither in Office 2016 at release time.

Do you already meet this problem ? have any idea how to solve it ?

Thanks for any answer.

Xavier
Posted 23 Nov, 2015 05:27:50 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Xavier,

That is, the Office application restarts after you close it? Is that correct? Are there any traces in the Application log? See Control Panel | Administrative Tools | Event Viewer.

Also, please point me to that Add-in Express add-in; I'm going to replicate the issue. What steps do I have to follow?


Andrei Smolin
Add-in Express Team Leader
Posted 23 Nov, 2015 06:07:04 Top
tttmack




Posts: 12
Joined: 2015-02-17
I also experienced this issue, I thought it may be something specific to my computer until I read the above post.

When debugging in Excel 2016, after I close the last Excel window I would get an 'Excel is trying to recover your work...' dialog box followed by an 'Excel is restarting...' dialog box.

This is only happens when run in Debug. I am using Visual Studio 2015 Community Edition on Windows 10 x64.

I never experienced this issue when running on Win 8.1 with Excel 2013.
I also follow the proper procedure for releasing all COM objects so I don't think that is the issue.

At first I thought I may have had a corrupt install of either VS or Office and tried repair from 'Programs and Features' via Control Panel but the repairs did not fix the issue.
Posted 23 Nov, 2015 06:22:15 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Taylour,

tttmack writes:
When debugging in Excel 2016, after I close the last Excel window I would get an 'Excel is trying to recover your work...' dialog box followed by an 'Excel is restarting...' dialog box.


This is a result of a crash which might be caused by your add-in. I strongly recommend to use try/catch blocks to find the cause of the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Nov, 2015 06:27:55 Top
Xavier N


Guest


Hello Andrei,
Thanks for your reply (and also for Taylour answer)
Yes the office application (either excel, word, or pp) restart after i close it in debug mode. I'm not sur you 'll be able to reproduce the issue because many people would have tell you. I tried with the addin DPINotResize (http://temp.add-in-express.com/support/DPINotResize.zip) I was using for other test and it reproduce it also (my addin was unregistered during that test). I'm not sur it's related to ADX (maybe VS...)
The stranger is that it doesn't arrive if i debug in Office 2010 (also installed on that computer) or in release mode..

I will try to investigate using event log but i dont' really know how :

My last event report is (sorry it's in french)
--------------
Nom de l?Â?Ð?éapplication d?faillante exCEL.EXE, version : 16.0.6001.1038, horodatage : 0x563492ff
Nom du module d?faillant : ntdll.dll, version : 10.0.10586.0, horodatage : 0x5632d9fc
Code d?Â?Ð?éexception : 0xc0000005
D?calage d?Â?Ð?éerreur : 0x00032bde
ID du processus d?faillant : 0x1edc
Heure de d?but de l?Â?Ð?éapplication d?faillante : 0x01d125eaa5b60bc2
Chemin d?Â?Ð?éaccès de l?Â?Ð?éapplication d?faillante : C:\Program Files (x86)\Microsoft Office\root\Office16\exCEL.EXE
Chemin d?Â?Ð?éaccès du module d?faillant: C:\WINDOWS\SYSTEM32\ntdll.dll
ID de rapport : cfc742f5-7c7b-49da-8922-cc01a7bf676a
Nom complet du package d?faillant???:
ID de l?Â?Ð?éapplication relative au package d?faillant???:
-----
Thanks for any suggestion,
Regards. Xavier
Posted 23 Nov, 2015 07:49:58 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Xavier,

I've reproduced the crash; the faulting module is mso20win32client.dll in my case. We are looking into the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Nov, 2015 09:15:49 Top
Xavier N


Guest


Hello Andrei,
No message related to mso20win32client.dll on my side..
Following this thread refering to Office/ntdll.dll trouble (http://answers.microsoft.com/en-us/office/forum/office_2013_release-outlook/ntdlldll-crashing-office-2013/15e092b5-6e5f-4d90-8fe3-b13401b1af20?auth=1) i try to make a full repare online of Office 365 but it didn't solve the problem...

when i look at the event viewer log i can see a lot of Office 2016 Licensing Service security check and i'm wondering if it may cause the error... but not sure (my windows 10 account is not the same as the office 365 account but i think its for most of users..)..
At the stage i find no solution and will partially debug the addin in Office 2010.
If you find an issue, don't hesitate to share it..
Regards. Xavier
Posted 23 Nov, 2015 11:04:29 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Xavier,

We've found out that the crash occurs even if the add-in project is unregistered. This means the issue is outside of Add-in Express. Also, I confirm that with all add-ins turned off, the faulting module is ntdll.dll:

Faulting application name: EXCEL.EXE, version: 16.0.6001.1038, time stamp: 0x563492ff
Faulting module name: ntdll.dll, version: 6.1.7601.19045, time stamp: 0x56258e62
Exception code: 0xc0000005
Fault offset: 0x0002e056
Faulting process id: 0x29d0
Faulting application start time: 0x01d1268ed3f1d710
Faulting application path: C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: 177cd265-9282-11e5-84e6-d8fee3a7a654


I use Windows 7 SP1 64bit and Office 2016 32bit.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Nov, 2015 03:14:42 Top
Xavier N


Guest


Hello Andrei,
Thanks a lot for your investigation..
Regards. Xavier
Posted 24 Nov, 2015 03:40:52 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
I've published a note about this issue on the Excel for Developers forum at https://social.msdn.microsoft.com/Forums/en-US/cfda89a1-f1f9-4a09-bdf5-068880fc8e60/excel-2016-crashes-after-a-debug-session?forum=exceldev.

Let's see what will come out of this.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Nov, 2015 06:29:33 Top