Ticket #36509

Open Date: 2016-08-02 14:50

Last Update: 2016-08-24 11:09

「ヘルプを独自のウィンドウで開く」で TypeError

Reporter:nishimotoOwner:(None)
Priority:5 - MediumMileStone:2016.3jp (closed)
Type:BugsSeverity:5 - Medium
Component:(None)Status:Closed
ResolutionNone

Details

Windows 10 (14393) + 2016.3jp-beta-160802 において、日本語設定「ヘルプを独自のウィンドウで開く」チェックの設定で「ヘルプ」の「NVDA日本語版の説明」や「ユーザーガイド」などを開くと下記のエラーが出ています。 ヘルプのウィンドウそのものは正常に開いています。

INFO - __main__ (14:43:43):
Starting NVDA
INFO - core.main (14:43:44):
Config dir: C:\Users\nishimotz\AppData\Roaming\nvda
INFO - core.main (14:43:44):
NVDA version 2016.3jp-beta-160802
INFO - core.main (14:43:44):
Using Windows version 10.0.14393 workstation
INFO - core.main (14:43:44):
Using Python version 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]
INFO - core.main (14:43:44):
Using comtypes version 0.6.2
INFO - synthDrivers.jtalk.mecab.Mecab_initialize (14:43:46):
dic: C:\Program Files\NVDA\synthDrivers\jtalk\dic
INFO - synthDrivers.jtalk.mecab.Mecab_initialize (14:43:46):
mecab:0.996 nvdajp-jtalk-dic (utf-8) 20160802-025534
INFO - synthDrivers.jtalk.jtalkDriver.initialize (14:43:46):
loaded C:\Program Files\NVDA\synthDrivers\jtalk\mei\mei_happy.htsvoice
INFO - synthDrivers.jtalk.jtalkDriver.initialize (14:43:46):
loaded C:\Program Files\NVDA\synthDrivers\jtalk\tohokuf01\tohoku-f01-neutral.htsvoice
INFO - synthDriverHandler.setSynth (14:43:46):
Loaded synthDriver nvdajp_jtalk
INFO - core.main (14:43:46):
Using wx version 3.0.2.0 msw (classic)
INFO - braille.initialize (14:43:46):
Using liblouis version 2.6.5
INFO - braille.BrailleHandler.setDisplayByName (14:43:46):
Loaded braille display driver noBraille, current display has 0 cells.
INFO - brailleInput.initialize (14:43:46):
Braille input initialized
INFO - _UIAHandler.UIAHandler.MTAThreadFunc (14:43:46):
UIAutomation: IUIAutomation3
INFO - core.main (14:43:47):
NVDA initialized
INFO - config.ConfigManager.save (14:43:48):
Base configuration saved
ERROR - eventHandler.executeEvent (14:43:53):
error executing event: gainFocus on <NVDAObjects.Dynamic_UIADesktopWindowNVDAObject object at 0x04547F50> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyo", line 143, in executeEvent
  File "eventHandler.pyo", line 91, in __init__
  File "eventHandler.pyo", line 98, in next
  File "NVDAObjects\__init__.pyo", line 892, in event_gainFocus
  File "NVDAObjects\__init__.pyo", line 804, in reportFocus
  File "speech.pyo", line 479, in speakObject
  File "speech.pyo", line 396, in speakObjectProperties
  File "baseObject.pyo", line 34, in __get__
  File "baseObject.pyo", line 110, in _getPropertyViaCache
  File "NVDAObjects\UIA\__init__.pyo", line 540, in _get_keyboardShortcut
TypeError: cannot concatenate 'str' and 'NoneType' objects

ビルド jpbeta-85

https://ci.appveyor.com/project/TakuyaNishimoto/nvdajp/build/jpbeta-85/artifacts

Attachment File

Attachment File ListNo attachments
Add New attachment
Add attachment filesPlease login to add new attachment

Ticket History - 3/5 Histories [Show all old Histories]

2016-08-02 14:50 Updated by: nishimoto

  • New Ticket "「ヘルプを独自のウィンドウで開く」で TypeError" created

2016-08-02 15:15 Updated by: nishimoto

Comment

関係ありそうな件:

NVDAObjects.UIA._get_keyboardShortcut

https://github.com/nvaccess/nvda/issues/6021

2016-08-02 15:23 Updated by: nishimoto

Comment

本家にフィードバックが必要かどうか、もうすこし調べる。

とりあえず修正案:

diff --git a/source/NVDAObjects/UIA/__init__.py b/source/NVDAObjects/UIA/__init__.py
index cff517f..4022ffb 100644
--- a/source/NVDAObjects/UIA/__init__.py
+++ b/source/NVDAObjects/UIA/__init__.py
@@ -538,7 +538,7 @@ class UIA(Window):
                ret = ""
                try:
                        ret += self.UIAElement.currentAccessKey
-               except COMError:
+               except COMError, TypeError:
                        pass
                if ret:
                        #add a double space to the end of the string

2016-08-02 15:38 Updated by: nishimoto

  • Details Updated

2016-08-24 11:09 Updated by: nishimoto

  • Ticket Close date is changed to 2016-08-24 11:09
  • Status Update from Open to Closed

Add Comment/Update #36509 (「ヘルプを独自のウィンドウで開く」で TypeError)

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login