Re: nvMathViewer add-on for viewing math content in LaTeX and AsciiMath notations as MathML


rowen brian
 

Hi Nikita.
I did encounter an error. Here is my error log.

The formula for testing: x_{1, 2} = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}

INFO - __main__ (18:53:30.182) - MainThread (13524):
Starting NVDA version 2020.3beta1
INFO - core.main (18:53:30.277) - MainThread (13524):
Config dir: C:\Users\manch\AppData\Roaming\nvda
INFO - config.ConfigManager._loadConfig (18:53:30.277) - MainThread (13524):
Loading config: C:\Users\manch\AppData\Roaming\nvda\nvda.ini
INFO - core.main (18:53:30.352) - MainThread (13524):
Using Windows version 10.0.19041 workstation
INFO - core.main (18:53:30.352) - MainThread (13524):
Using Python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]
INFO - core.main (18:53:30.352) - MainThread (13524):
Using comtypes version 1.1.7
INFO - core.main (18:53:30.352) - MainThread (13524):
Using configobj version 5.1.0 with validate version 1.0.1
INFO - synthDriverHandler.setSynth (18:53:30.756) - MainThread (13524):
Loaded synthDriver vocalizer_expressive2
INFO - core.main (18:53:30.756) - MainThread (13524):
Using wx version 4.0.3 msw (phoenix) wxWidgets 3.0.5 with six version 1.12.0
INFO - brailleInput.initialize (18:53:30.757) - MainThread (13524):
Braille input initialized
INFO - braille.initialize (18:53:30.758) - MainThread (13524):
Using liblouis version 3.14.0
INFO - braille.initialize (18:53:30.761) - MainThread (13524):
Using pySerial version 3.4
INFO - braille.BrailleHandler.setDisplayByName (18:53:30.771) - MainThread (13524):
Loaded braille display driver brltty, current display has 40 cells.
INFO - core.main (18:53:30.975) - MainThread (13524):
Java Access Bridge support initialized
INFO - _UIAHandler.UIAHandler.MTAThreadFunc (18:53:30.985) - _UIAHandler.UIAHandler.MTAThread (10028):
UIAutomation: IUIAutomation6
DEBUGWARNING - inputCore.InputManager.loadLocaleGestureMap (18:53:31.087) - MainThread (13524):
No locale gesture map for language zh_CN
DEBUGWARNING - touchHandler.touchSupported (18:53:31.103) - MainThread (13524):
No touch devices found
INFO - external:globalPlugins.starClip.patch_speak_functions (18:53:31.901) - MainThread (13524):
Patched speak function
IO - external:globalPlugins.fixime.GuessComposition.get_code_by_name (18:53:31.941) - MainThread (13524):
controlconverted to 17
IO - external:globalPlugins.fixime.GuessComposition.get_code_by_name (18:53:31.942) - MainThread (13524):
numpadenterconverted to 13
IO - external:globalPlugins.fixime.GuessComposition.get_code_by_name (18:53:31.942) - MainThread (13524):
enterconverted to 13
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.946) - MainThread (13524):
2052
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.946) - MainThread (13524):
00000804
IO - inputCore.InputManager.executeGesture (18:53:31.949) - winInputHook (1372):
Input: kb(laptop):windows+shift+space
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.951) - MainThread (13524):
2052
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.951) - MainThread (13524):
00000804
IO - inputCore.InputManager.executeGesture (18:53:31.952) - winInputHook (1372):
Input: kb(laptop):windows+space
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.953) - MainThread (13524):
2052
INFO - external:globalPlugins.fixime.GlobalPlugin.refreshLayoutString (18:53:31.953) - MainThread (13524):
00000804
IO - braille.BrailleBuffer.update (18:53:32.029) - MainThread (13524):
Braille regions text: ['NVDA 已启动']
IO - braille.BrailleHandler.update (18:53:32.029) - MainThread (13524):
Braille window dots: 6 6 1345 1236 145 1 - 24 3 13 24 3 145 256 23
INFO - core.main (18:53:32.032) - MainThread (13524):
NVDA initialized
IO - braille.BrailleBuffer.update (18:53:32.046) - MainThread (13524):
Braille regions text: ['桌面 窗口']
INFO - external:globalPlugins.fixime.GlobalPlugin.event_typedCharacter (18:53:32.058) - MainThread (13524):
<NVDAObjects.window.Desktop object at 0x06656F30>
WARNING - characterProcessing.SpeechSymbolProcessor.__init__ (18:53:32.119) - MainThread (13524):
Replacement not defined in locale zh_CN for symbol: ﹔
IO - speech.speak (18:53:32.159) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '空格', EndUtteranceCommand()]
INFO - external:globalPlugins.fixime.GlobalPlugin.event_typedCharacter (18:53:32.160) - MainThread (13524):
<NVDAObjects.window.Desktop object at 0x06656F30>
IO - speech.speak (18:53:32.160) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '空格', EndUtteranceCommand()]
DEBUGWARNING - Python warning (18:53:32.192) - MainThread (13524):
C:\Program Files (x86)\NVDA\library.zip\api.py:287: DeprecationWarning: Yield() is deprecated
IO - speech.speak (18:53:32.193) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '任务栏', CancellableSpeech (still valid devInfo( isCanceledCache: False, isValidCallback: True, isValidCallbackDevInfo:  )]
IO - braille.BrailleBuffer.update (18:53:32.193) - MainThread (13524):
Braille regions text: ['任务栏']
IO - inputCore.InputManager.executeGesture (18:53:32.938) - winInputHook (1372):
Input: kb(laptop):alt+tab
INFO - external:globalPlugins.fixime.GlobalPlugin.event_typedCharacter (18:53:32.948) - MainThread (13524):
<NVDAObjects.IAccessible.Taskbar object at 0x0AA05530>
IO - speech.speak (18:53:33.041) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '*无标题 - 记事本', CancellableSpeech (still valid devInfo( isCanceledCache: False, isValidCallback: True, isValidCallbackDevInfo:  )]
IO - braille.BrailleBuffer.update (18:53:33.042) - MainThread (13524):
Braille regions text: ['*无标题 - 记事本']
IO - braille.BrailleHandler.update (18:53:33.042) - MainThread (13524):
Braille window dots: 35 35 136 2 12 345 1 2345 24 2 - 36 - 1245 24 23 156 23 12 356 3
IO - speech.speak (18:53:33.179) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '*无标题 - 记事本', CancellableSpeech (still valid devInfo( isCanceledCache: False, isValidCallback: True, isValidCallbackDevInfo:  )]
IO - braille.BrailleBuffer.update (18:53:33.180) - MainThread (13524):
Braille regions text: ['*无标题 - 记事本']
IO - braille.BrailleHandler.update (18:53:33.180) - MainThread (13524):
Braille window dots: 35 35 136 2 12 345 1 2345 24 2 - 36 - 1245 24 23 156 23 12 356 3
INFO - external:globalPlugins.fixime.GlobalPlugin.add_capture_function (18:53:33.225) - MainThread (13524):
Added capture function
IO - speech.speak (18:53:33.228) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), '文本编辑器', '编辑框', '多行', CancellableSpeech (still valid devInfo( isCanceledCache: False, isValidCallback: True, isValidCallbackDevInfo:  ), 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a}']
IO - braille.BrailleBuffer.update (18:53:33.232) - MainThread (13524):
Braille regions text: ['*无标题 - 记事本 ', '文本编辑器 菜单栏 可编辑 ', 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a} ']
IO - braille.BrailleHandler.update (18:53:33.233) - MainThread (13524):
Braille window dots: 456 16 56 234 12345 1235 2345 56 36 12 - 4 26 3456 12 - 36 3456 145 56 1 14 36 23 36 23 56 36 3456 12 56 1 36 23 -
IO - braille.BrailleHandler.update (18:53:33.235) - MainThread (13524):
Braille window dots: 456 16 56 234 12345 1235 2345 56 36 12 - 4 26 3456 12 - 36 3456 145 56 1 14 36 23 36 23 56 36 3456 12 56 1 36 23 -
IO - braille.BrailleBuffer.update (18:53:33.243) - MainThread (13524):
Braille regions text: ['*无标题 - 记事本 ', '文本编辑器 菜单栏 可编辑 ', 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a} ']
IO - braille.BrailleHandler.update (18:53:33.243) - MainThread (13524):
Braille window dots: 456 16 56 234 12345 1235 2345 56 36 12 - 4 26 3456 12 - 36 3456 145 56 1 14 36 23 36 23 56 36 3456 12 56 1 36 23 -
IO - braille.BrailleHandler.update (18:53:33.245) - MainThread (13524):
Braille window dots: 456 16 56 234 12345 1235 2345 56 36 12 - 4 26 3456 12 - 36 3456 145 56 1 14 36 23 36 23 56 36 3456 12 56 1 36 23 -
IO - inputCore.InputManager.executeGesture (18:53:33.774) - winInputHook (1372):
Input: kb(laptop):control+a
INFO - external:globalPlugins.fixime.GuessComposition.GuessedCompositionStatus.add_gesture (18:53:33.774) - winInputHook (1372):
Name:
control+a
ID:
control+a
vkCode:
65
IO - speech.speak (18:53:33.793) - MainThread (13524):
Speaking [LangChangeCommand ('zh_CN'), 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a},已选择']
IO - braille.BrailleBuffer.update (18:53:33.796) - MainThread (13524):
Braille regions text: ['*无标题 - 记事本 ', '文本编辑器 菜单栏 可编辑 ', 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a} ']
IO - braille.BrailleHandler.update (18:53:33.797) - MainThread (13524):
Braille window dots: 134678 78 4678 3678 5678 3678 345678 178 278 78 345678 1278 3678 2378 78 578 235678 78 45678 1678 5678 12478 123578 178 1478 5678 3678 3678 1278 78 45678 1678 5678 123478 13478 78 45678 1678 5678 23478
IO - braille.BrailleHandler.update (18:53:33.799) - MainThread (13524):
Braille window dots: 134678 78 4678 3678 5678 3678 345678 178 278 78 345678 1278 3678 2378 78 578 235678 78 45678 1678 5678 12478 123578 178 1478 5678 3678 3678 1278 78 45678 1678 5678 123478 13478 78 45678 1678 5678 23478
IO - inputCore.InputManager.executeGesture (18:53:34.836) - winInputHook (1372):
Input: kb(laptop):shift+NVDA+i
INFO - external:globalPlugins.fixime.GuessComposition.GuessedCompositionStatus.add_gesture (18:53:34.836) - winInputHook (1372):
Name:
shift+NVDA+i
ID:
shift+NVDA+i
vkCode:
73
IO - speech.speak (18:53:34.854) - Thread-4 (1512):
Speaking [LangChangeCommand ('zh_CN'), 'Convert LaTeX']
IO - braille.BrailleBuffer.update (18:53:34.855) - Thread-4 (1512):
Braille regions text: ['Convert LaTeX']
IO - braille.BrailleHandler.update (18:53:34.855) - Thread-4 (1512):
Braille window dots: 6 14 135 1345 1236 15 1235 2345 - 6 123 1 6 2345 15 6 1346
ERROR - stderr (18:53:34.858) - Thread-4 (1512):
Exception in thread Thread-4:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "C:\Users\manch\AppData\Roaming\nvda\addons\nvMathViewer\globalPlugins\nvMathViewer\__init__.py", line 120, in showMathML
    ui.message(_("Convert {format}").format(format=format))
  File "ui.pyc", line 78, in message
  File "braille.pyc", line 1873, in message
  File "braille.pyc", line 1887, in _resetMessageTimer
  File "wx\core.pyc", line 3284, in __init__
  File "wx\core.pyc", line 3305, in Start
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(60) in wxTimerImpl::Start(): timer can only be started from the main thread
IO - inputCore.InputManager.executeGesture (18:53:37.728) - winInputHook (1372):
Input: kb(laptop):NVDA+f1
INFO - external:globalPlugins.fixime.GuessComposition.GuessedCompositionStatus.add_gesture (18:53:37.728) - winInputHook (1372):
Name:
NVDA+f1
ID:
NVDA+f1
vkCode:
112
INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (18:53:37.857) - MainThread (13524):
Developer info for navigator object:
name: '文本编辑器'
role: ROLE_EDITABLETEXT
roleText: None
states: STATE_MULTILINE, STATE_FOCUSABLE, STATE_FOCUSED
isFocusable: True
hasFocus: True
Python object: <NVDAObjects.Dynamic_IAccessibleEditWindowNVDAObject object at 0x0AA05A30>
Python class mro: (<class 'NVDAObjects.Dynamic_IAccessibleEditWindowNVDAObject'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.edit.Edit'>, <class 'NVDAObjects.behaviors.EditableTextWithAutoSelectDetection'>, <class 'NVDAObjects.behaviors.EditableText'>, <class 'editableText.EditableText'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'documentBase.TextContainerObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <class 'garbageHandler.TrackedObject'>, <class 'object'>)
description: None
location: RectLTWH(left=109, top=152, width=927, height=393)
value: 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a}'
appModule: <'appModuleHandler' (appName 'notepad', process ID 15168) at address 446e630>
appModule.productName: 'Microsoft® Windows® Operating System'
appModule.productVersion: '10.0.19041.507'
TextInfo: <class 'NVDAObjects.window.edit.EditTextInfo'>
windowHandle: 1312054
windowClassName: 'Edit'
windowControlID: 15
windowStyle: 1345323268
extendedWindowStyle: 0
windowThreadID: 6664
windowText: 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a}'
displayText: 'x_{ ,  } = \\frac{-b \\pm \\sqrt{b^  - ac}}{ a}'
IAccessibleObject: <POINTER(IAccessible) ptr=0x68aa358 at aa76350>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=1312054, objectID=-4, childID=0
IAccessible accName: '文本编辑器'
IAccessible accRole: ROLE_SYSTEM_TEXT
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048580)
IAccessible accDescription: None
IAccessible accValue: 'x_{1, 2} = \\frac{-b \\pm \\sqrt{b^2 -4ac}}{2a}'
 

Join nvda-addons@nvda-addons.groups.io to automatically receive all group messages.