Skip to content

Error in NVDA 2026.1.1 when navigating in fractions #587

@MartheGjelstad

Description

@MartheGjelstad

I am using NVDA 2026.1.1 with the built in MathCAT. I updated NVDA from version 2025.3.3, where I had MathCAT as an add-on. This add-on is now disabled. I have replaced the libmathcat_py.pyd in the folder C:\Program files\NVDA with your new build @NSoiffer .

Below are some examples of MathML expressions and the error messages I get when I try to navigate in the expressions.

ClearSpeak

Navigation mode: It's not possible to change the navigation mode for the expressions where an error occur.

Summary: I think the navigation is not working for expressions following one of the rules:

  • fraction-over-text
  • default

Expression 1

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:05:26.066) - MainThread (14828):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/ClearSpeak in Enhanced mode, can't ZoomIn from expression with id 'M54sz3zn-2' inside:
 <math data-from-mathml='math' id='M54sz3zn-0' data-id-added='true'>
  <fraction data-from-mathml='mfrac' id='M54sz3zn-1' data-id-added='true'>
    <mrow data-from-mathml='mrow' id='M54sz3zn-2' data-id-added='true'>
      <mi data-from-mathml='mi' id='M54sz3zn-3' data-id-added='true'>x</mi>
      <mo data-from-mathml='mo' id='M54sz3zn-4' data-id-added='true'>+</mo>
      <mi data-from-mathml='mi' id='M54sz3zn-5' data-id-added='true'>y</mi>
    </mrow>
    <mrow data-from-mathml='mrow' id='M54sz3zn-6' data-id-added='true'>
      <mi data-from-mathml='mi' id='M54sz3zn-7' data-id-added='true'>x</mi>
      <mo data-from-mathml='mo' id='M54sz3zn-8' data-id-added='true'>-</mo>
      <mi data-from-mathml='mi' id='M54sz3zn-9' data-id-added='true'>y</mi>
    </mrow>
  </fraction>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
        <mfrac>
        <mrow>
        <mi>x</mi><mo>+</mo><mi>y</mi></mrow>
        <mrow>
        <mi>x</mi><mo>-</mo><mi>y</mi></mrow>
        </mfrac>
        </mrow>
    </math>
</p>

Expression 2

I get an error message when I try to navigate in the fraction.

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction._do_navigate (13:07:34.426) - MainThread (14828):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 159, in _do_navigate
OSError: Internal error: With en/ClearSpeak in Enhanced mode, can't ZoomIn from expression with id 'Mkjjrix2-5' inside:
 <math data-from-mathml='math' id='Mkjjrix2-0' data-id-added='true'>
  <mrow data-from-mathml='mrow' id='Mkjjrix2-1' data-id-added='true'>
    <mn data-from-mathml='mn' id='Mkjjrix2-2' data-id-added='true'>62</mn>
    <mo data-from-mathml='mo' data-changed='added' id='Mkjjrix2-3' data-id-added='true'>&#x2062;</mo>
    <fraction data-from-mathml='mfrac' id='Mkjjrix2-4' data-id-added='true' data-intent-property=':unit:'>
      <unit data-from-mathml='mi' id='Mkjjrix2-5' data-id-added='true' data-intent-property=':unit:'>mi</unit>
      <unit data-from-mathml='mi' id='Mkjjrix2-6' data-id-added='true' data-intent-property=':unit:'>hr</unit>
    </fraction>
  </mrow>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
        <mn>62</mn>
        <mfrac>
        <mi intent=':unit'>mi</mi>
        <mi intent=':unit'>hr</mi>
        </mfrac>
        </mrow>
    </math>
</p>

Expression 3

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:10:13.295) - MainThread (14828):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/ClearSpeak in Enhanced mode, can't ZoomIn from expression with id 'Mad3q3m6-2' inside:
 <math data-from-mathml='math' id='Mad3q3m6-0' data-id-added='true'>
  <fraction data-from-mathml='mfrac' id='Mad3q3m6-1' data-id-added='true'>
    <mi data-from-mathml='mi' id='Mad3q3m6-2' data-id-added='true'>rise</mi>
    <mi data-from-mathml='mi' id='Mad3q3m6-3' data-id-added='true'>run</mi>
  </fraction>
 </math>

MathML expression:

<p>
    <math>
        <mfrac> <mi>rise</mi> <mi>run</mi> </mfrac>
    </math>
</p>

Expression 4

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:12:08.275) - MainThread (14828):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/ClearSpeak in Enhanced mode, can't ZoomIn from expression with id 'Mrk4ti72-2' inside:
 <math data-from-mathml='math' id='Mrk4ti72-0' data-id-added='true'>
  <fraction data-from-mathml='mfrac' id='Mrk4ti72-1' data-id-added='true'>
    <fraction data-from-mathml='mfrac' id='Mrk4ti72-2' data-id-added='true'>
      <mn data-from-mathml='mn' id='Mrk4ti72-3' data-id-added='true'>10</mn>
      <mi data-from-mathml='mi' id='Mrk4ti72-4' data-id-added='true'>n</mi>
    </fraction>
    <fraction data-from-mathml='mfrac' id='Mrk4ti72-5' data-id-added='true'>
      <mn data-from-mathml='mn' id='Mrk4ti72-6' data-id-added='true'>2</mn>
      <mi data-from-mathml='mi' id='Mrk4ti72-7' data-id-added='true'>n</mi>
    </fraction>
  </fraction>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
            <mfrac>
            <mrow>
            <mfrac>
                <mn>10</mn>
                <mi>n</mi>
            </mfrac>
            </mrow>
            <mrow>
            <mfrac>
            <mn>2</mn>
            <mi>n</mi>
            </mfrac>
            </mrow>
            </mfrac>
            </mrow>
        </math>
</p>

SimpleSpeak

Navigation mode: It's not possible to change the navigation mode for the expressions where an error occur.

Summary: I think the navigation is not working for expressions following the default rule. However, I don't get an error message when I navigate in the expression below:

<p>
    <math>
        <mrow>
        <mfrac>
            <mrow>
            <mfrac>
                <mn>1</mn>
                <mn>2</mn>
            </mfrac>
            </mrow>
            <mrow>
            <mfrac>
                <mn>2</mn>
                <mn>3</mn>
            </mfrac>
            </mrow>
        </mfrac>
        </mrow>
    </math>
</p>

Expression 1

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:18:14.306) - MainThread (18584):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/SimpleSpeak in Enhanced mode, can't ZoomIn from expression with id 'Mlahttqj-2' inside:
 <math data-from-mathml='math' id='Mlahttqj-0' data-id-added='true'>
  <fraction data-from-mathml='mfrac' id='Mlahttqj-1' data-id-added='true'>
    <mrow data-from-mathml='mrow' id='Mlahttqj-2' data-id-added='true'>
      <mi data-from-mathml='mi' id='Mlahttqj-3' data-id-added='true'>x</mi>
      <mo data-from-mathml='mo' id='Mlahttqj-4' data-id-added='true'>+</mo>
      <mi data-from-mathml='mi' id='Mlahttqj-5' data-id-added='true'>y</mi>
    </mrow>
    <mrow data-from-mathml='mrow' id='Mlahttqj-6' data-id-added='true'>
      <mi data-from-mathml='mi' id='Mlahttqj-7' data-id-added='true'>x</mi>
      <mo data-from-mathml='mo' id='Mlahttqj-8' data-id-added='true'>-</mo>
      <mi data-from-mathml='mi' id='Mlahttqj-9' data-id-added='true'>y</mi>
    </mrow>
  </fraction>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
        <mfrac>
        <mrow>
        <mi>x</mi><mo>+</mo><mi>y</mi></mrow>
        <mrow>
        <mi>x</mi><mo>-</mo><mi>y</mi></mrow>
        </mfrac>
        </mrow>
    </math>
</p>

Expression 2

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction._do_navigate (13:19:20.453) - MainThread (18584):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 159, in _do_navigate
OSError: Internal error: With en/SimpleSpeak in Enhanced mode, can't ZoomIn from expression with id 'Msk4m6wu-5' inside:
 <math data-from-mathml='math' id='Msk4m6wu-0' data-id-added='true'>
  <mrow data-from-mathml='mrow' id='Msk4m6wu-1' data-id-added='true'>
    <mn data-from-mathml='mn' id='Msk4m6wu-2' data-id-added='true'>62</mn>
    <mo data-from-mathml='mo' data-changed='added' id='Msk4m6wu-3' data-id-added='true'>&#x2062;</mo>
    <fraction data-from-mathml='mfrac' id='Msk4m6wu-4' data-id-added='true' data-intent-property=':unit:'>
      <unit data-from-mathml='mi' id='Msk4m6wu-5' data-id-added='true' data-intent-property=':unit:'>mi</unit>
      <unit data-from-mathml='mi' id='Msk4m6wu-6' data-id-added='true' data-intent-property=':unit:'>hr</unit>
    </fraction>
  </mrow>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
        <mn>62</mn>
        <mfrac>
        <mi intent=':unit'>mi</mi>
        <mi intent=':unit'>hr</mi>
        </mfrac>
        </mrow>
    </math>
</p>

Expression 3

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:20:25.092) - MainThread (18584):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/SimpleSpeak in Character mode, can't ZoomIn from expression with id 'Mekd0nor-2' inside:
 <math id='Mekd0nor-0' data-id-added='true'>
  <mfrac id='Mekd0nor-1' data-id-added='true'>
    <mi id='Mekd0nor-2' data-id-added='true'>rise</mi>
    <mi id='Mekd0nor-3' data-id-added='true'>run</mi>
  </mfrac>
 </math>

MathML expression:

<p>
    <math>
        <mfrac> <mi>rise</mi> <mi>run</mi> </mfrac>
    </math>
</p>

Expression 4

Error message:

ERROR - mathPres.MathCAT.MathCAT.MathCATInteraction.reportFocus (13:23:19.219) - MainThread (18584):
Traceback (most recent call last):
  File "mathPres\MathCAT\MathCAT.pyc", line 81, in reportFocus
OSError: Internal error: With en/SimpleSpeak in Character mode, can't ZoomIn from expression with id 'M3r2jm8j-3' inside:
 <math id='M3r2jm8j-0' data-id-added='true'>
  <mfrac id='M3r2jm8j-1' data-id-added='true'>
    <mfrac id='M3r2jm8j-2' data-id-added='true'>
      <mn id='M3r2jm8j-3' data-id-added='true'>10</mn>
      <mi id='M3r2jm8j-4' data-id-added='true'>n</mi>
    </mfrac>
    <mfrac id='M3r2jm8j-5' data-id-added='true'>
      <mn id='M3r2jm8j-6' data-id-added='true'>2</mn>
      <mi id='M3r2jm8j-7' data-id-added='true'>n</mi>
    </mfrac>
  </mfrac>
 </math>

MathML expression:

<p>
    <math>
        <mrow>
            <mfrac>
            <mrow>
            <mfrac>
                <mn>10</mn>
                <mi>n</mi>
            </mfrac>
            </mrow>
            <mrow>
            <mfrac>
            <mn>2</mn>
            <mi>n</mi>
            </mfrac>
            </mrow>
            </mfrac>
            </mrow>
        </math>
</p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions