nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.11k stars 637 forks source link

Outlook raises error at opening received mail with Excel/Word attachments #4351

Open nvaccessAuto opened 10 years ago

nvaccessAuto commented 10 years ago

Reported by nishimotz on 2014-08-02 08:15 Outlook 2013 raises error at opening received mail with Excel/Word attachments.

setup:

procedure:

error log is as follows:

ERROR - scriptHandler.executeScript (17:04:41):
error executing script: <bound method Dynamic_IAccessibleWordDocumentWindowNVDAObject.script_tab of <NVDAObjects.Dynamic_IAccessibleWordDocumentWindowNVDAObject object at 0x046D7F70>> with gesture u'\u30b7\u30d5\u30c8+\u30bf\u30d6'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 174, in executeScript
  File "NVDAObjects\window\winword.pyc", line 845, in script_tab
  File "NVDAObjects\window\winword.pyc", line 855, in getLocalizedMeasurementTextForPointSize
  File "comtypesMonkeyPatches.pyc", line 32, in new__getattr__
  File "comtypes\client\lazybind.pyc", line 149, in __getattr__
  File "comtypes\automation.pyc", line 664, in _invoke
COMError: (-2146823683, None, (u'\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002', u'Microsoft Word', u'wdmain11.chm', 37373, None))
ERROR - eventHandler.executeEvent (17:04:54):
error executing event: gainFocus on <NVDAObjects.Dynamic_IAccessibleExcel7WindowWindowNVDAObject object at 0x047C2770> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 141, in executeEvent
  File "eventHandler.pyc", line 89, in __init__
  File "eventHandler.pyc", line 96, in next
  File "NVDAObjects\window\excel.pyc", line 116, in event_gainFocus
  File "NVDAObjects\window\excel.pyc", line 98, in _getSelection
AttributeError: 'NoneType' object has no attribute 'mergeCells'
ERROR - core.Notify (17:05:03):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.pyc", line 318, in Notify
  File "mouseHandler.pyc", line 134, in pumpAll
  File "mouseHandler.pyc", line 95, in executeMouseMoveEvent
  File "NVDAObjects\__init__.pyc", line 246, in objectFromPoint
  File "NVDAObjects\__init__.pyc", line 186, in findBestAPIClass
  File "NVDAObjects\__init__.pyc", line 185, in findBestAPIClass
  File "NVDAObjects\window\excel.pyc", line 466, in kwargsFromSuper
  File "comtypes\client\lazybind.pyc", line 163, in caller
  File "comtypes\automation.pyc", line 664, in _invoke
COMError: (-2147352567, '\x97\xe1\x8aO\x82\xaa\x94\xad\x90\xb6\x82\xb5\x82\xdc\x82\xb5\x82\xbd\x81B', (None, None, None, 0, None))
ERROR - core.Notify (17:05:03):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.pyc", line 318, in Notify
  File "mouseHandler.pyc", line 134, in pumpAll
  File "mouseHandler.pyc", line 95, in executeMouseMoveEvent
  File "NVDAObjects\__init__.pyc", line 246, in objectFromPoint
  File "NVDAObjects\__init__.pyc", line 186, in findBestAPIClass
  File "NVDAObjects\__init__.pyc", line 185, in findBestAPIClass
  File "NVDAObjects\window\excel.pyc", line 466, in kwargsFromSuper
  File "comtypes\client\lazybind.pyc", line 163, in caller
  File "comtypes\automation.pyc", line 664, in _invoke
COMError: (-2147352567, '\x97\xe1\x8aO\x82\xaa\x94\xad\x90\xb6\x82\xb5\x82\xdc\x82\xb5\x82\xbd\x81B', (None, None, None, 0, None))
ERROR - core.Notify (17:05:03):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.pyc", line 318, in Notify
  File "mouseHandler.pyc", line 134, in pumpAll
  File "mouseHandler.pyc", line 95, in executeMouseMoveEvent
  File "NVDAObjects\__init__.pyc", line 246, in objectFromPoint
  File "NVDAObjects\__init__.pyc", line 186, in findBestAPIClass
  File "NVDAObjects\__init__.pyc", line 185, in findBestAPIClass
  File "NVDAObjects\window\excel.pyc", line 466, in kwargsFromSuper
  File "comtypes\client\lazybind.pyc", line 163, in caller
  File "comtypes\automation.pyc", line 664, in _invoke
COMError: (-2147352567, '\x97\xe1\x8aO\x82\xaa\x94\xad\x90\xb6\x82\xb5\x82\xdc\x82\xb5\x82\xbd\x81B', (None, None, None, 0, None))
ERROR - core.Notify (17:05:03):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.pyc", line 318, in Notify
  File "mouseHandler.pyc", line 134, in pumpAll
  File "mouseHandler.pyc", line 95, in executeMouseMoveEvent
  File "NVDAObjects\__init__.pyc", line 246, in objectFromPoint
  File "NVDAObjects\__init__.pyc", line 186, in findBestAPIClass
  File "NVDAObjects\__init__.pyc", line 185, in findBestAPIClass
  File "NVDAObjects\window\excel.pyc", line 466, in kwargsFromSuper
  File "comtypes\client\lazybind.pyc", line 163, in caller
  File "comtypes\automation.pyc", line 664, in _invoke
COMError: (-2147352567, '\x97\xe1\x8aO\x82\xaa\x94\xad\x90\xb6\x82\xb5\x82\xdc\x82\xb5\x82\xbd\x81B', (None, None, None, 0, None))
nvaccessAuto commented 10 years ago

Attachment test1.xlsx added by nishimotz on 2014-08-02 08:15 Description: test1.xlsx

nvaccessAuto commented 10 years ago

Attachment test2.docx added by nishimotz on 2014-08-02 08:16 Description: test2.docx

nvaccessAuto commented 10 years ago

Attachment nvda.log added by nishimotz on 2014-08-02 08:16 Description: nvda.log

nvaccessAuto commented 10 years ago

Comment 1 by jteh on 2014-08-03 22:08 Is this a regression; i.e. does this happen with NVDA 2014.2?

nvaccessAuto commented 10 years ago

Comment 2 by nishimotz on 2014-08-04 01:30 Although error sound cannot be heard, this error happens with 2014.2.

The most annoying thing is: once the attached excel file gets focus, the focus automatically moves to the preview of the worksheet, and after that, there are no feedbacks for arrow keys, because NVDA seems to handle the location of input focus incorrectly after the occurence of this internal error.

bhavyashah commented 7 years ago

@nishimotz Assuming you still use Outlook 2013, do the reported errors still occur with the latest version of NVDA at your end? It seems like we have all necessary diagnostic information present - sample documents (Word and Excel attachment), NVDA log, STR, system information and software version information. Unfortunately however, I do not have Office 2013 and I do not use Outlook (2010) either, making me unable to provide substantial testing feedback. Anyways, while an internal error is a matter of concern but still low in terms of impact, a user-facing inconvenience has been described in https://github.com/nvaccess/nvda/issues/4351#issuecomment-155323955. To rephrase the same, @nishimotz essentially says that as a result of said error, when the Excel attachment is opened, NVDA's focus jumps to the preview of the Excel worksheet, wherein arrowing and other standard navigation commands trigger no speech feedback from NVDA.

nishimotz commented 7 years ago

Actually, Outlook 2013 is just for testing. Results with the latest version of NVDA.

setup:

procedure:

error log is as follows:

INFO - __main__ (18:32:26.157):
Starting NVDA
INFO - core.main (18:32:26.743):
Config dir: C:\Users\nishimotz\AppData\Roaming\nvda
INFO - config.ConfigManager._loadConfig (18:32:26.743):
Loading config: C:\Users\nishimotz\AppData\Roaming\nvda\nvda.ini
INFO - core.main (18:32:26.759):
NVDA version master-14508,17763fde
INFO - core.main (18:32:26.759):
Using Windows version 10.0.15063 workstation
INFO - core.main (18:32:26.759):
Using Python version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
INFO - core.main (18:32:26.759):
Using comtypes version 0.6.2
INFO - synthDriverHandler.setSynth (18:32:27.105):
Loaded synthDriver oneCore
INFO - core.main (18:32:27.105):
Using wx version 3.0.2.0 msw (classic)
INFO - brailleInput.initialize (18:32:27.105):
Braille input initialized
INFO - braille.initialize (18:32:27.105):
Using liblouis version 3.2.0
INFO - braille.BrailleHandler.setDisplayByName (18:32:27.105):
Loaded braille display driver noBraille, current display has 0 cells.
WARNING - core.main (18:32:27.190):
Java Access Bridge not available
INFO - _UIAHandler.UIAHandler.MTAThreadFunc (18:32:27.190):
UIAutomation: IUIAutomation3
INFO - core.main (18:32:28.151):
NVDA initialized
ERROR - eventHandler.executeEvent (18:32:53.326):
error executing event: gainFocus on <NVDAObjects.Dynamic_IAccessibleExcel7WindowWindowNVDAObject object at 0x04FBA650> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 143, in executeEvent
  File "eventHandler.pyc", line 91, in __init__
  File "eventHandler.pyc", line 98, in next
  File "NVDAObjects\window\excel.pyc", line 660, in event_gainFocus
  File "NVDAObjects\window\excel.pyc", line 629, in _getSelection
AttributeError: 'NoneType' object has no attribute 'mergeCells'

Book1.xlsx test1.docx

feerrenrut commented 7 years ago

Thanks for the updated details @nishimotz

While this is pretty annoying, and restricts the way that outlook 2003 can be used with NVDA, my assumption is that there are few people actually encountering this problem. As such, I have set this as a priority 3.

Brian1Gaff commented 7 years ago

There are lots of people using this version of outlook if the bug about html crashing is to believed on the users list. There are oodles of posts about that one. Brian

bglists@blueyonder.co.uk Sent via blueyonder. Please address personal email to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field.

Adriani90 commented 5 years ago

Any further updates regarding this issue? I am also having this Problem in Outlook. I have disabled that live pane draft in Outlook's Settings because it is very annoying that NVDA does not read the Content. I prefer to open the attachment by right click on it and open it directly in MS Excel or Word.