Excel 2007 crashing with DNS/VP

I haven’t been using Excel much since I began using Dragon NaturallySpeaking. Just today I was trying to use it quite a bit and it crashed (became unresponsive and automatically restarted) numerous times. I didn’t take detailed enough notes to notice if there were certain commands that were causing this. At one point, I rebooted my computer to see if this would fix the problem (It didn’t). Once, I had two workbooks open side-by-side in Excel, and it appeared as though I was rapidly switching back and forth between the two. The cursor would flash in the left workbook and then in the right workbook multiple times within seconds. And all during this time, I was just watching my computer and no speech was being recognized. If I did choose to issue a command, Dragon would understand me as long as I wasn’t trying to use Excel. Oh, I should also add I didn’t have to restart Dragon, just Excel (and sometimes Word when it was open). I had Outlook open as well (I think), but it didn’t seem to be affected. Bizarre.

In two instances, the following error popped up sometime after Excel had crashed:

COM returned an unexpected error code: Details are The RPC server is unavailable.(RPC_S_SERVER_UNAVAILABLE, 1722)

Here’s a bit of my Dragon log which may be relevant:

18:22:29 SigQual[ uD 1523 | Nd 0 | sN 14 | cD 0 | wF 0x00 | aF 0x00 | dA 0.0 [62234] | sA 16.2 [62233] | Rt C ]
18:22:30 Speech starting to probable rich edit control 0x00050604 0x00020632 “DgnExcel.RichEdit” mod ""
18:22:30 Speech starting to probable rich edit control 0x00050604 0x00020632 “DgnExcel.RichEdit” mod ""
18:22:33 Speech starting to probable rich edit control 0x00050604 0x00020632 “DgnExcel.RichEdit” mod ""
18:22:33 LOG (Perf): DgnSAPI paused -> BeginUtt = 150 msec
18:22:35 Info: updating sig proc in uttchan
18:22:35 SigQual[ uD 1132 | Nd 0 | sN 18 | cD 0 | wF 0x00 | aF 0x00 | dA 0.0 [61162] | sA 16.3 [61161] | Rt C ]
18:23:05 Exception thrown (E:work1150rel_mobvoicebardragonbarinterfaces.cpp, 1893).
18:23:05
18:23:05 COM returned an unexpected error code: Details are The remote procedure call failed. 18:23:05 (RPC_S_CALL_FAILED, 1726)
18:23:05 DragonBar client notification error 0x800706ba
18:23:05 DragonBar client notification error 0x800706ba
18:23:05 DragonBar client notification error 0x800706ba
18:23:05 WARNING: VDct Unable to get sink flags from IDgnGetSinkFlags. Error 0x800706ba
18:23:05 WARNING: VDct deactivated grammar because a client is disconnected. IDgnVDctSink::JITPause result = 0x800706BA , this = 0xA77B2D0
18:23:05 Starting C:Program Files (x86)Microsoft OfficeOffice12EXCEL.EXE
18:23:05 Dragon NS ActiveX Components: File C:PROGRA~2NuanceNATURA~1Programdnstk10.dll: Version 11.50.100.092
18:23:06 LOG (Perf): DgnSAPI paused -> BeginUtt = 9617 msec
18:23:08 Info: updating sig proc in uttchan
18:23:08 SigQual[ uD 1292 | Nd 0 | sN 8 | cD 0 | wF 0x00 | aF 0x00 | dA 0.0 [61162] | sA 16.3 [61161] | Rt R ]x
18:23:08 LOG (Perf): DgnMicBtn::Register() = 0 msec
18:23:08 EXCEL: File C:PROGRA~2NuanceNATURA~1Programdgnexcel.dll: Version 11.50.100.092
18:23:08 EXCEL: Microsoft Excel support started.
18:23:08 LOG (Perf): Time to track desktop = 137 msec
18:23:08 LOG (Perf): Time to track start menu = 48 msec
18:23:09 LOG (Perf): Time to track common start menu = 396 msec
18:23:09 LOG (Perf): Time to track common desktop = 0 msec
18:23:09 LOG (Perf): Time to track my documents = 0 msec
18:23:09 LOG (Perf): Time to track desktop apps = 601 msec
18:23:09 Info: using word pairs <‘enx_excel12 293’>
18:23:09 Info: using word pairs <‘enx_ribbon_menu 15’>

Any help that anyone can offer is most appreciated!

Windows 7 Ultimate 64-bit, Microsoft Office 2007, Dragon NaturallySpeaking Premium 11.5, Sennheiser ME3 microphone

It seems like my computer may be yanking my chain again. I opened Excel again just now and haven’t been able to do anything that will make it crash. I’m not sure if this is a good thing or a bad thing (I’m hoping for good :-)). I’ll post again if it rears its ugly head once again.

[quote] I haven't been using Excel much since I began using Dragon NaturallySpeaking. Just today I was trying to use it quite a bit and it crashed (became unresponsive and automatically restarted) numerous times. I didn't take detailed enough notes to notice if there were certain commands that were causing this. At one point, I rebooted my computer to see if this would fix the problem (It didn't). Once, I had two workbooks open side-by-side in Excel, and it appeared as though I was rapidly switching back and forth between the two. The cursor would flash in the left workbook and then in the right workbook multiple times within seconds. And all during this time, I was just watching my computer and no speech was being recognized. If I did choose to issue a command, Dragon would understand me as long as I wasn't trying to use Excel. Oh, I should also add I didn't have to restart Dragon, just Excel (and sometimes Word when it was open). I had Outlook open as well (I think), but it didn't seem to be affected. Bizarre. [/quote]

</font><p>RJ,</p>

<p>First, just to give you a little bit of background, the RPC server is what is called the Remote Procedure Call server used by Windows to handle the execution of DLL files in every application<font face="Arial">. DLL files are executable files that are called and perform certain operations when needed. In other words, the main executable file for any program, such as natspeak.exe or WinWord.exe/Excel.exe/Outlook.exe does not load the entire application because not everything is needed. This preserves memory allocation. DNS makes extensive use of the RPC server because all of its DLLs are ActiveX controls (COM – Common Object Modules). For example, when you say "correct that" or access any particular command or feature of DNS, the corresponding request from DNS is passed to the RPC server via Windows command-and-control, which puts it in a queue to be executed when the server is free. It is important to understand that Windows controls input/output, the execution of applications and their associated DLLs, yada yada yada ad infinitum. Applications do not control Windows or other applications, Windows controls all and applications make requests of Windows, not vice versa, which is why the operating system is critically important and essential to running all applications and their associated secondary (DLL) executable or ActiveX controls. In short, anything that goes on on your computer is absolutely controlled by Windows, or the operating system.</font></p><font face="Arial">

</font><p>Second, DNS has a timer on how long the request made through Windows to the RPC server, which is part of "Windows" command-and-control<font face="Arial">, can go until not receiving a response results in the timeout error (RPC_S_Call_Failed, 1726) or (RPC_Server Unavailable, 1722). The RPC server unavailable error simply means that DNS can't access the RPC server either because it's queue (buffer) is full, or it is not accessible when the call is made. In other words, in the case of 1722 the RPC server is literally unavailable. This can be for any number of reasons. However, in most cases this is caused by the RPC server attempting to execute something else which as either produced an error or which has failed leaving the RPC server unavailable because it can't clear the queue. You don't see this in applications like Microsoft Office because these applications and other applications don't report RPC server failures the way DNS does in the Dragon log. These problems are usually caused by an application crashing, which would be in your case Microsoft Excel or Microsoft Word, and sometimes Microsoft Outlook. In many cases when these applications crash they take down DNS with it. However, when they crash on their own without impacting on DNS, this is usually a problem with that application alone. It all depends upon whether the functioning of DNS is inextricably linked to (hooked to) the application. By virtue of your description, this does not seem to be the case. It appears that Microsoft Excel in your case was attempting to do something on its own independent of DNS and it crashed. However, when it crashes under this circumstance it either restarts itself or you have to restart it manually. As long as the restart doesn't interfere with the hook or link that DNS has to that application (dgnword.dll, dgnexcel.dll or dgnoutlook.dll), then DNS will continue to function as you note. However, there are occasions when this occurs where you must shutdown Excel manually and restart it, which then reestablishes the appropriate link between DNS and Excel.</font></p><font face="Arial">

<p>On the other hand, when you get the 1726 error, this means that whatever was attempted through the RPC server simply failed because of an error in terms of the information that the RPC server is attempting to pass back to DNS. This could be an improper code (i.e., DNS expected one thing and the RPC server return something else, or whatever processes were occurring resulted in corrupted information or a memory error. Since we can see what's going on internally, we can only guess at the process. In your case I suspect that the problem is occurring within Microsoft Excel and not DNS itself. The 1726 error is usually fatal, the 1722 error usually is resolved in one or two iterations of DNS resubmitting the request to Windows via the RPC server, or if the RPC server has inadvertently shut down and can't be restarted, the request to the RPC server eventually times out. DNS 11-11.5 is better at trapping this error and preventing DNS from spontaneously shutting down. In earlier versions up to 10.1, DNS would close without warning or without error and all you would see in the Dragon log is a long string of COM returned an unexpected error code: Details are the RPC server is unavailable…, after which DNS just performs a re-sync and goes on its merry way. Occasionally, the re-sync can't be performed and DNS will spontaneously shut down, which you can see in a long string of engine sink errors, principally that the engine sink failed to unregister itself. It's a complex process and I've only scratched the surface. Another way of putting it is if you have to ask 100 people for directions to San Jose, you'll get 100 different responses. There are too many reasons why this occurs and too many explanations to get any more in depth than this. Sometimes the problems have to do with an application on its own. Sometimes the problems have to do with DNS on its own. Sometimes it's a combination (comedy of errors) of both because the interaction between two applications is so inextricably linked such that if one side of the link breaks down, it takes the other side with it as already noted. And still yet at other times Windows itself can fail, such as the RPC server failing for no apparent reason and not being caused by either application. I realize that this is an oversimplified view and may appear to be somewhat confusing and I apologize for the treatise. However, this leads me to my last point.</p>

</font><p>Lastly, regardless of what occurs and why, based on the above, the symptoms always point in a generally specific direction. In your case, the problem points in the direction of Excel. This could be caused by corruption in Excel or Word, or Microsoft Office in general requiring a repair<font face="Arial">. If I read you correctly, you indicated that the behavior (bizarre) in Excel appear to be occurring during no apparent dictation or command execution and appears to be independent of the functioning of DNS. You also stipulate that closing Microsoft Excel and restarting it seemed to address the problem. Therefore, I would look at Excel and/or Microsoft Office and try running a repair of such just to see whether or not doing so results in Microsoft Word or Microsoft Excel functioning correctly afterwards. However, if the problem persists, then I would attempt and uninstall and reinstall of Microsoft Office. And, if the problem still persists, try creating a new user profile and/or a repair of DNS. But, note that the latter to are the least likely to solve the problem because I don't think the problem is with either DNS or your user profile.</font></p><font face="Arial">

<p>One further point. Some of the behavior that you observe can be, although least likely, a result of memory (hardware) problems. If all else fails, you might try carefully removing your RAM chips and reseating them. Downloading one of the many free applications for running tests on your memory (RAM chips) or taking your system into a good hardware tech and have them tested. I wouldn't, however, replace your RAM unless there was substantial proof that your RAM chips were bad. Hardware technicians have special test hardware that will actually physically test your RAM chips using tried-and-true algorithms that will show if your RAM is failing and where and in what chip. Software that checks your RAM on your system is not as sophisticated or as reliable. The RAM testing hardware that technicians use is much more sophisticated and virtually 100% reliable. That is, if there is a problem with your RAM, no matter how subtle or intermittent, this RAM testing equipment will find it where the PC software can't or won't. Nevertheless, this is the solution of absolute last resort because RAM seldom fails. More often than not the cause of RAM failure is due to the oxidation that is always occurring with the passing of current between the connections on the RAM chips and the connections in the RAM slot. Eventually, this oxidation can build up to the point where the RAM chips failed to work properly. Removing and re-seating your RAM chips removes this oxidation and returns the contact between the RAM chips and the RAM slot contacts to their proper condition. Note that it doesn't take much oxidation to produce this effect and cause RAM to fail or corrupt data transfer. Still this is more or less highly unusual also. It most often occurs in cases like mine where I'm running my systems 24/7/365. Nonetheless, it's worth considering.</p></font>

I was still having problems with Excel 2007 even after running a repair. So, I installed Office 2010 to see if that would fix the problem (I actually have a installation disc and product code for Office 2010). When I installed it, I clicked on the upgrade option. I’m still having problems with Excel, however. Would it help to completely uninstall Office 2010 and then reinstall it again?




Today, I started the process of doing a repair of Dragon NaturallySpeaking 11, but didn’t finish it. I first tried to repair it through programs and features from the control panel but got a message message saying I could only change the program from the source (or something like that). I inserted the dragon naturallyspeaking disc and clicked on the repair option. However, then the window said it was installing the software, not reparing. I was afraid of losing an activation since I had not uninstalled the product, so I canceled the installation by clicking cancel. Is this an irrational fear?


And I’ve pasted some possibly relevant lines from my dragon log below for anyone who’s interested.


20:05:57 VDCT retrieveITNParams: VDCT uses locale m_lcid =1033
20:07:01 Timeout waiting for some client to Resume the server.
20:07:01 Outstanding pause count = 0, JIT count = 10, timeout = 60000
20:07:01 Info: jitpaused name dnsspserver, SDK engine sink key 610 cookie 1037 time 8569567500690322996
20:07:01 Info: jitpaused name natspeak, SDK engine sink key 2338 cookie 1037 time 5245100173569616490
20:07:01 Info: jitpaused name VoicePower3246, vcmd sink, CWS Global3246, hWnd 0x0 key 2754 cookie 1037 time 5245101049742944874
20:07:01 Info: jitpaused name natspeak, SDK engine sink key 2882 cookie 1037 time 5245100946663729770
20:07:01 Info: jitpaused name natspeak, SDK DictationEdit vdct sink key 3234 cookie 1037 time 5245088353819617898
20:07:01 Info: jitpaused name WebIE, vcmd sink, web_ie.GlobalCmdsLimMulBrFr, hWnd 0x106ae key 3426 cookie 1037 time 5245099692533279338
20:07:01 Info: jitpaused name EXCEL, SDK engine sink key 6466 cookie 1037 time 8569567500690322996
20:07:01 Info: jitpaused name EXCEL, SDK engine sink key 6722 cookie 1037 time 8569567500690322996
20:07:01 Info: jitpaused name EXCEL, SDK DictationEdit vdct sink key 7010 cookie 1037 time 5245100018950793834
20:07:01 Info: jitpaused name DgnExcel, vcmd sink, DgnExcel.CellEditor, hWnd 0x808d6 key 7362 cookie 1037 time 5245075778155375210
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘dnsspserver, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘dnsspserver, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘natspeak, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘VoicePower3246, vcmd sink, CWS Global3246, hWnd 0x0’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘dnsspserver, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘natspeak, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘natspeak, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘natspeak, SDK engine sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘natspeak, SDK DictationEdit vdct sink’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘VoicePower3246, vcmd sink, CWS Global3246, hWnd 0x0’. Please close the application and try again.
20:07:01 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘WebIE, vcmd sink, web_ie.GlobalCmdsLimMulBrFr, hWnd 0x106ae’. Please close the application and try again.


20:24:25 Info: updating sig proc in uttchan
20:24:25 Warning: Invised 0x09afff60 with 1 lock(s), locked from E:work1150rel_mobvdct2invstr.cpp(2093)
20:24:25 Previous lock from E:work1150rel_mobvdct2invutt.cpp(566)

20:28:21 Info: updating sig proc in uttchan
20:28:21 Warning: Recognizer terminated recognition, result code 4
20:28:21 SigQual[ uD 1262 | Nd 0 | sN 17 | cD 0 | wF 0x00 | aF 0x00 | dA 0.0 [61410] | sA 16.3 [61410] | Rt D ]


20:29:45 Info: updating sig proc in uttchan
20:29:45 SigQual[ uD 1172 | Nd 0 | sN 19 | cD 0 | wF 0x00 | aF 0x00 | dA 0.0 [62632] | sA 16.7 [62632] | Rt D ]
20:29:53 Speech starting to probable rich edit control 0x000808d6 0x000807e6 “DgnExcel.RichEdit” mod ""
20:29:57 Speech starting to probable rich edit control 0x000808d6 0x000807e6 “DgnExcel.RichEdit” mod ""
20:32:45 Timeout waiting for some client to Resume the server.
20:32:45 Outstanding pause count = 0, JIT count = 2, timeout = 60000
20:32:45 Info: jitpaused name EXCEL, SDK DictationEdit vdct sink key 7010 cookie 1141 time 5245100018950793834
20:32:45 Info: jitpaused name DgnExcel, vcmd sink, DgnExcel.CellEditor, hWnd 0x808d6 key 7362 cookie 1141 time 5245075778155375210
20:32:45 (E:work1150rel_mobnatsdkactivexvedtcust.cpp,1986) : m_pIText->TextSet() returned unexpected value RPC_E_SERVERFAULT (0x80010105) in “EXCEL.EXE” process.
20:32:45
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘EXCEL, SDK DictationEdit vdct sink’. Please close the application and try again.
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘EXCEL, SDK DictationEdit vdct sink’. Please close the application and try again.
20:32:45 LOG (Perf): DgnSAPI paused -> BeginUtt = 168914 msec
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘EXCEL, SDK DictationEdit vdct sink’. Please close the application and try again.
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘DgnExcel, vcmd sink, DgnExcel.CellEditor, hWnd 0x808d6’. Please close the application and try again.
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘DgnExcel, vcmd sink, DgnExcel.CellEditor, hWnd 0x808d6’. Please close the application and try again.
20:32:45 ERROR (EngSink): NaturallySpeaking is having trouble with the application or module ‘DgnExcel, vcmd sink, DgnExcel.CellEditor, hWnd 0x808d6’. Please close the application and try again.
20:32:46 Info: updating sig proc in uttchan
20:32:46 Warning: Invised 0x09afff60 with 1 lock(s), locked from E:work1150rel_mobvdct2mdselect.cpp(2141)
20:32:46 Previous lock from E:work1150rel_mobvdct2invdict.cpp(1255)
20:32:46 Exception thrown (E:work1150rel_mobvoicebardragonbarinterfaces.cpp, 1893).
20:32:46
20:32:46 Stack: (ThreadID 0x928)
20:32:46 0560D1D0: 48cfaa44 80010005 0560d1ec 0560d1d0 0560d230 2212d869 ffffffff

This stack stuff went on for pages and pages.

Just a quick update:
When I started up Excel today, I was warned that an add-in was having major problems with Dragon NaturallySpeaking, and then asked me if I wanted to disable this add-in. I clicked no and continued. After using Excel for just about five minutes or so I tried to correct something (if my memory serves me correctly) and Excel crashed. If I just navigate within a worksheet I don’t seem to have any problems. I have also noticed that Excel will sometimes crash when I issue the command “press alt tab” to switch back and forth between two sheets quickly. At this point, I cannot use Excel with Dragon NaturallySpeaking, so if someone can answer my questions from my previous post or point me in the right direction, I’d be most grateful. I’ve got work to do! :slight_smile:

I think I may have found a bug with either Dragon NaturallySpeaking premium 11.5 or Excel 2010. In my situation, I have two Excel workbooks open side-by-side. I’m constantly switching between the two, but am generally only editing one of them (this really isn’t that important, just giving some background info). If I’m editing one worksheet within a workbook and want to switch to the worksheet in the other workbook, the command “press alt tab” works well. However, if I try to use this command when switching to a worksheet that is protected, I must make sure that the current active worksheet does not have any cell highlighted light tan or blue (that is, when I’m editing a cell using Dragon). If any cell in the current active worksheet is highlighted light tan or blue, Excel will crash if I try to switch to the other workbook with a voice command. This is really annoying since I like to have my worksheets protected to prevent unintentional editing! Can anyone else duplicate this? Suggestions?

Since my previous post, I have run a repair on Office 2010 and Dragon NaturallySpeaking. I have also uninstalled and reinstalled Office 2010 and Dragon NaturallySpeaking 11 (including Visual C++ 9.0 runtime for Dragon NaturallySpeaking). I then installed the Dragon NaturallySpeaking 11.5 patch and rebooted my computer. Having done all this, Excel will still crash if I switch to a protected worksheet from another worksheet while editing a cell in the unprotected sheet. It’s especially annoying since the workbook with the protected worksheet has many other tabs visible with abbreviations on these tabs. Sometimes, when dictating in the other worksheet, I need to use these abbreviations. If DNS mistakenly interprets these as commands instead of dictation, it will try to switch to the protected worksheet and thus crash Excel again. Can someone please test this on their system to see if this is a bug? I would greatly appreciate it! (All you need to do is open up two workbooks in Excel 2010 and arrange them on your screen so that they are side-by-side. Protect the first sheet in one workbook. Then dictate something into the nonprotected worksheet in the other workbook. While the cell you are editing is still blue or light tan, try switching to the protected worksheet using the “press alt tab” command or a “mouseclick” command and see if Excel crashes or automatically restarts.) Then I’ll know whether this is something I need to spend time trying to fix, or something I need to work around. Thanks again!

rj,

<p>I spent about 45 min. trying to duplicate your problem and I can't<font face="Arial">. I put up two spreadsheets side-by-side, one in protected view and one in normal view. I dictated something into the non-protected view workbook (spreadsheet) and then I say "press alt tab". Excel does not crash on either of my systems. One system I tested on was running Microsoft Office 2007, the other two were running Microsoft Office 2010 64-bit and 32-bit. Neither crashed when switching back and forth under any condition with the nonprotected view spreadsheet and something dictated into any particular cell while continuing to remain in edit mode (yellow or blue) whether I simply dictated it and then said "press alt tab" or selected a cell and press F2 (blue background edit mode). In both cases, I was able to switch back and forth using either a mouse command or "press alt tab" without Excel crashing.</font></p><font face="Arial">

</font><p>I suspect that you have other issues that are causing this particular problem. That is, it's not normal behavior with DNS 11-11.5 and Microsoft Excel 2007 or 2010 (32 bit or 64-bit).</p>

<p>You might want to send me another Dragon log that shows the crash so that I can see what exactly is going on behind the scenes if Dragon will report that in the Dragon log.</p><div>Rather than using "press alt tab", why not try using the VoicePower commands  for changing focus (i.e.,  "place focus left" or "place focus right". These are reliable and shouldn't cause  Excel to crash. However, if  Excel continues to crash, then the problem is not  with Dragon or VoicePower, the problem is either with Microsoft Excel or something else that you have installed.</div><div> </div><div>Also, review my e-mail that I sent directly to you.</div>


<edited><editID>Chucker</editID><editDate>2011-10-25 05:41:36</editDate></edited>

For anyone else who is curious, my problem was solved by opening two instances (or spawnings) of Excel, rather than one. In other words, I could not just directly open two workbooks that I wanted to work with. After I opened one workbook, I then had to open a new instance of Excel and then open the other workbook I wanted to work with. Once I did this, I had no problem switching back and forth between the two workbooks, even if one of the workbooks had protected sheets showing.