Ticket #32433

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

Open Date: 2013-11-11 11:49 Last Update: 2013-11-22 13:52

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

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'

Ticket History (3/3 Histories)

2013-11-11 11:49 Updated by: nishimoto
  • New Ticket "Firefox でマウスポインタ移動するとエラーが出る" created
2013-11-11 20:59 Updated by: nishimoto
Comment

暫定的なパッチ:

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 Updated by: nishimoto
Comment

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

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login