チケット #32433

Firefox でマウスポインタ移動するとエラーが出る

登録: 2013-11-11 11:49 最終更新: 2013-11-22 13:52

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
(未割り当て)
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし

詳細

Firefox でマウスポインタが移動するとたまにエラーが出る現象を確認しています。

おそらく本家のバグだと思うのですが、うまくログを取れたので記録しておきます。

環境は jpbranch (本家 master 相当)と Firefox 25.0, Windows 8.1 (64bit) です。

ERROR - eventHandler.executeEvent (11:24:44):
error executing event: mouseMove on <NVDAObjects.IAccessible.mozilla.Mozilla object at 0x048A7350> with extra args of {'y': 12, 'x': 447}
Traceback (most recent call last):
  File "eventHandler.py", line 136, in executeEvent
    _EventExecuter(eventName,obj,kwargs)
  File "eventHandler.py", line 84, in __init__
    self.next()
  File "eventHandler.py", line 91, in next
    return func(*args, **self.kwargs)
  File "NVDAObjects\__init__.py", line 803, in event_mouseMove
    info.expand(info.unit_mouseChunk)
  File "NVDAObjects\IAccessible\__init__.py", line 141, in expand
    self._startOffset=text.rindex(u'\ufffc',0,oldStart-self._startOffset)
AttributeError: 'NoneType' object has no attribute 'rindex'

チケットの履歴 (3 件中 3 件表示)

2013-11-11 11:49 更新者: nishimoto
  • 新しいチケット "Firefox でマウスポインタ移動するとエラーが出る" が作成されました
2013-11-11 20:59 更新者: nishimoto
コメント

暫定的なパッチ:

diff --git a/source/NVDAObjects/IAccessible/__init__.py b/source/NVDAObjects/IAccessible/__init__.py
index b4c272f..a496a1a 100644
--- a/source/NVDAObjects/IAccessible/__init__.py
+++ b/source/NVDAObjects/IAccessible/__init__.py
@@ -139,11 +139,11 @@ class IA2TextTextInfo(textInfos.offsets.OffsetsTextInfo):
 			text=self._getTextRange(self._startOffset,self._endOffset)
 			try:
 				self._startOffset=text.rindex(u'\ufffc',0,oldStart-self._startOffset)
-			except ValueError:
+			except (ValueError, AttributeError):
 				pass
 			try:
 				self._endOffset=text.index(u'\ufffc',oldEnd-self._startOffset)
-			except ValueError:
+			except (ValueError, AttributeError):
 				pass
 
 	def _getCaretOffset(self):
2013-11-22 13:52 更新者: nishimoto
コメント

本家チケット 3654 が登録されました: http://community.nvda-project.org/ticket/3654

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする