Skip to content

UIA in Console and WSL: crashes in some contexts #11428

Closed

Description

@AAClause

Steps to reproduce:

Unfortunately I don't have a precise scenario. The bug is random but it sometimes occurs when I want to edit a file (with nano for instance).

Actual behavior:

The following traceback is raised in the log and WSL/cmd sometimes crash completely (window is closed):

ERROR - eventHandler.executeEvent (08:57:52.084) - MainThread (14160):
error executing event: caret on <NVDAObjects.Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA object at 0x045C7670> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 214, in executeEvent
  File "eventHandler.pyc", line 94, in __init__
  File "eventHandler.pyc", line 102, in next
  File "NVDAObjects\behaviors.pyc", line 191, in event_caret
  File "editableText.pyc", line 343, in detectPossibleSelectionChange
  File "editableText.pyc", line 350, in _updateSelectionAnchor
  File "NVDAObjects\UIA\__init__.pyc", line 776, in compareEndPoints
  File "comtypesMonkeyPatches.pyc", line 26, in __call__
_ctypes.COMError: (-2147467259, ''Unspecified error', (None, None, None, 0, None))

Expected behavior:

No such crash

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-20601,3a9484fb

Windows version:

10 Insider (64-bit) build 20175.1000

Name and version of other software in use when reproducing the issue:

WSL

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

Yes, the bug is present since UIA was introduced in Windows Console. I don't usually use UIA in Windows Console because I can't accept such bugs, I've just retested it.

If addons are disabled, is your problem still occuring?

Yes

Did you try to run the COM registry fixing tool in NVDA menu / tools?

Yes

CC @codeofdusk

Activity

  1. codeofdusk commented on Jul 27, 2020

    @codeofdusk
    Contributor
  2. Neurrone commented on Jul 28, 2020

    @Neurrone

    I encountered something similar today, but I'm not sure if the underlying cause is the same because my keyboard and NVDA locked up so badly that I was forced to do a hard reboot, losing unsaved files in the process.

    I was interacting with the console via WSL 1 and the command was just a curl which did not produce a lot of output. Unfortunately, NVDA just stopped speaking and most keyboard commands wouldn't work so I couldn't recover at all. This occured right after I pressed enter to execute the command so I'm fairly sure this is a problem with NVDA.

  3. codeofdusk commented on Sep 18, 2020

    @codeofdusk
    Contributor

    Inbox console recently received some UIA fixes (notably microsoft/terminal#7530). Could you please re-test on the latest insider dev build (or download OpenConsole.exe from the terminal repo by extracting it from the msix)?

  4. AAClause commented on Sep 18, 2020

    @AAClause
    ContributorAuthor

    @codeofdusk thanks for the information. Unfortunately my WSL is currently broken due to microsoft/WSL#5902
    I'll retry ASAP.

  5. codeofdusk commented on Sep 19, 2020

    @codeofdusk
    Contributor

    I suspect that microsoft/terminal#7677 will fix many of the remaining crashes.

  6. codeofdusk commented on Sep 23, 2020

    @codeofdusk
    Contributor

    Could users experiencing this issue please test the OpenConsole.exe in this build with UIA console enabled and report back? On my system, I'm running OpenConsole as the default (follow the steps in microsoft/terminal#1817, and note that you'll also need to take ownership of conhost.exe in advanced security properties before adding/changing permissions), but you can also just run this build for testing while leaving your default console untouched.

  7. codeofdusk commented on Sep 23, 2020

    @codeofdusk
    Contributor

    Also CC @carlos-zamora (Microsoft dev), @DHowett (Microsoft dev lead), and @Simon818 (user who reported some crashes to me directly).

  8. Adriani90 commented on Sep 23, 2020

    @Adriani90
    Collaborator
  9. AAClause commented on Oct 4, 2020

    @AAClause
    ContributorAuthor

    I get the following traceback with NVDA version alpha-21096,c61eb42d and Windows 10 Insider (64-bit) build 20226.1000 when I open a file with nano (addons disabled):

    Traceback (most recent call last):
      File "eventHandler.pyc", line 220, in executeEvent
      File "eventHandler.pyc", line 96, in __init__
      File "eventHandler.pyc", line 105, in next
      File "NVDAObjects\behaviors.pyc", line 197, in event_caret
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 776, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    
  10. codeofdusk commented on Oct 4, 2020

    @codeofdusk
    Contributor

    I'm assuming that NVDA/the console continues working normally though? If so, this will be fixed in #11039.

  11. AAClause commented on Oct 4, 2020

    @AAClause
    ContributorAuthor

    @codeofdusk yes apart this traceback, no problem.

  12. codeofdusk commented on Oct 4, 2020

    @codeofdusk
    Contributor

    Assuming the crash has been resolved, could this issue please be closed?

  13. AAClause commented on Oct 8, 2020

    @AAClause
    ContributorAuthor

    I've just reproduced the original issue (one of my instance of cmd crashed completely during a compilation through a SSH connection). So the issue doesn't seem fully solved yet.
    However I used UIA in Windows Consoles intensely these last days and it's the first crash.
    (alpha-21126,7df2560a, Windows 10 Insider (64-bit) build 20231.1000)

  14. 24 remaining items

  15. codeofdusk commented on Oct 24, 2020

    @codeofdusk
    Contributor

    I can now reproduce the crash, however only with my physical Braille display connected (i.e. not with Braille viewer running).

    Your log suggests that the console is crashing in moveEndPointByRange: line 789 of uia/__init__.py reads:

    		self._rangeObj.MoveEndpointByRange(src,other._rangeObj,target)

    Since this crash happens during a switch to/from the alt buffer, I suspect it is an uncaught fail fast in conhost, but see the following lines in the console source code (starting at around line 677 of types/UiaTextRangeBase.cpp:

    IFACEMETHODIMP UiaTextRangeBase::MoveEndpointByRange(_In_ TextPatternRangeEndpoint endpoint,
                                                         _In_ ITextRangeProvider* pTargetRange,
                                                         _In_ TextPatternRangeEndpoint targetEndpoint) noexcept
    try
    {
        _pData->LockConsole();
        auto Unlock = wil::scope_exit([&]() noexcept {
            _pData->UnlockConsole();
        });
    
        const UiaTextRangeBase* range = static_cast<UiaTextRangeBase*>(pTargetRange);
        if (range == nullptr)
        {
            return E_INVALIDARG;
        }
    
        // TODO GH#5406: create a different UIA parent object for each TextBuffer
        //   This is a temporary solution to comparing two UTRs from different TextBuffers
        //   Ensure both endpoints fit in the current buffer.
        const auto bufferSize = _pData->GetTextBuffer().GetSize();
        const auto mine = GetEndpoint(endpoint);
        const auto other = range->GetEndpoint(targetEndpoint);
        if (!bufferSize.IsInBounds(mine, true) || !bufferSize.IsInBounds(other, true))
        {
            return E_FAIL;
        }

    So that must not be it...

    @carlos-zamora or @DHowett, Is there a way I can collect a stack trace to see where in the console code this is breaking? (since it only crashes with a display connected and not when using the Braille viewer, I'd be willing to let you remotely connect to my machine for data gathering/debugging purposes if necessary).

  16. codeofdusk commented on Oct 27, 2020

    @codeofdusk
    Contributor

    Can you please try this build and let me know if the crash is fixed?

  17. AAClause commented on Oct 27, 2020

    @AAClause
    ContributorAuthor

    I can still reproduce the issue. However it seems to happen after a longer period. I was able to open/exit nano ~40-50 times before crash (based on 4 tests).

    Log (snippets)
    INFO - __main__ (07:15:41.351) - MainThread (19612):
    Starting NVDA version alpha-21261,2d7d2988
    [...]
    INFO - core.main (07:15:43.349) - MainThread (19612):
    Add-ons are disabled. Restart NVDA to enable them.
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:27.881) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:31.593) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    ERROR - core.CorePump.run (07:16:37.459) - MainThread (19612):
    errors in this core pump cycle
    Traceback (most recent call last):
      File "core.pyc", line 525, in run
      File "braille.pyc", line 2221, in pumpAll
      File "braille.pyc", line 1957, in handlePendingCaretUpdate
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1014, in update
      File "NVDAObjects\UIA\__init__.pyc", line 789, in setEndPoint
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:39.006) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    ERROR - eventHandler.executeEvent (07:16:43.793) - MainThread (19612):
    error executing event: caret on <NVDAObjects.Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA object at 0x08DE04D0> with extra args of {}
    Traceback (most recent call last):
      File "eventHandler.pyc", line 246, in executeEvent
      File "eventHandler.pyc", line 96, in __init__
      File "eventHandler.pyc", line 105, in next
      File "NVDAObjects\behaviors.pyc", line 195, in event_caret
      File "NVDAObjects\__init__.pyc", line 1180, in event_caret
      File "review.pyc", line 174, in handleCaretMove
      File "documentBase.pyc", line 24, in makeTextInfo
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 37, in __init__
      File "NVDAObjects\UIA\__init__.pyc", line 313, in __init__
      File "NVDAObjects\UIA\__init__.pyc", line 767, in collapse
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:55.456) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:57.557) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:59.148) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:16:59.689) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    ERROR - NVDAObjects.behaviors.LiveText._monitor (07:16:59.659) - Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread (12104):
    Error getting lines or calculating new text
    Traceback (most recent call last):
      File "NVDAObjects\behaviors.pyc", line 312, in _monitor
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 371, in _getTextLines
      File "NVDAObjects\behaviors.pyc", line 276, in _getTextLines
      File "textInfos\__init__.pyc", line 525, in getTextInChunks
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    ERROR - core.CorePump.run (07:17:00.798) - MainThread (19612):
    errors in this core pump cycle
    Traceback (most recent call last):
      File "core.pyc", line 525, in run
      File "braille.pyc", line 2221, in pumpAll
      File "braille.pyc", line 1957, in handlePendingCaretUpdate
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1041, in update
      File "documentBase.pyc", line 24, in makeTextInfo
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 39, in __init__
      File "NVDAObjects\UIA\__init__.pyc", line 767, in collapse
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:02.338) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:06.578) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:08.193) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:14.011) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:21.412) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:26.177) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:32.536) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:38.374) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.detectPossibleSelectionChange (07:17:39.957) - MainThread (19612):
    Exception raised when comparing selections, probably due to a switch to/from the alt buffer.
    Traceback (most recent call last):
      File "NVDAObjects\UIA\winConsoleUIA.pyc", line 382, in detectPossibleSelectionChange
      File "editableText.pyc", line 348, in detectPossibleSelectionChange
      File "editableText.pyc", line 355, in _updateSelectionAnchor
      File "NVDAObjects\UIA\__init__.pyc", line 778, in compareEndPoints
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147467259, 'Unspecified error', (None, None, None, 0, None))
    [...]
    DEBUGWARNING - watchdog._watcher (07:17:43.117) - watchdog (21264):
    Trying to recover from freeze. Listing stacks for Python threads:
    Python stack for thread 14368 (Dummy-2):
      File "comtypes\_comobject.pyc", line 147, in call_without_this
      File "_UIAHandler.pyc", line 456, in IUIAutomationEventHandler_HandleAutomationEvent
      File "_UIAHandler.pyc", line 737, in getNearestWindowHandle
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    Python stack for thread 12104 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 21264 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 127, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 6088 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 5400 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 10272 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 19612 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 525, in run
      File "braille.pyc", line 2221, in pumpAll
      File "braille.pyc", line 1957, in handlePendingCaretUpdate
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1016, in update
      File "braille.pyc", line 854, in _addTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 718, in getTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 706, in _getTextWithFieldsForUIARange
      File "NVDAObjects\UIA\__init__.pyc", line 491, in _getTextWithFields_text
      File "NVDAObjects\UIA\__init__.pyc", line 457, in _getTextFromUIARange
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    DEBUGWARNING - NVDAObjects.__call__ (07:17:45.383) - Dummy-2 (14368):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    DEBUG - _UIAHandler.UIAHandler.IUIAutomationEventHandler_HandleAutomationEvent (07:17:45.385) - Dummy-2 (14368):
    HandleAutomationEvent: Ignoring event textChange because no object or ignored by object itself
    DEBUGWARNING - NVDAObjects.__call__ (07:17:45.388) - Dummy-2 (14368):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    DEBUG - _UIAHandler.UIAHandler.IUIAutomationEventHandler_HandleAutomationEvent (07:17:45.388) - Dummy-2 (14368):
    HandleAutomationEvent: Ignoring event textChange because no object or ignored by object itself
    DEBUGWARNING - NVDAObjects.__call__ (07:17:45.391) - Dummy-2 (14368):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    DEBUG - _UIAHandler.UIAHandler.IUIAutomationEventHandler_HandleAutomationEvent (07:17:45.391) - Dummy-2 (14368):
    HandleAutomationEvent: Ignoring event textChange because no object or ignored by object itself
    ERROR - core.CorePump.run (07:17:45.376) - MainThread (19612):
    errors in this core pump cycle
    Traceback (most recent call last):
      File "core.pyc", line 525, in run
      File "braille.pyc", line 2221, in pumpAll
      File "braille.pyc", line 1957, in handlePendingCaretUpdate
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1016, in update
      File "braille.pyc", line 854, in _addTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 718, in getTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 706, in _getTextWithFieldsForUIARange
      File "NVDAObjects\UIA\__init__.pyc", line 491, in _getTextWithFields_text
      File "NVDAObjects\UIA\__init__.pyc", line 457, in _getTextFromUIARange
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2147418113, 'Catastrophic Failure', (None, None, None, 0, None))
    DEBUGWARNING - NVDAObjects.IAccessible.IAccessible._get_IAccessibleRole (07:17:45.574) - MainThread (19612):
    accRole failed: (-2147024809, 'The parameter is incorrect.', (None, None, None, 0, None))
    DEBUG - appModuleHandler.cleanup (07:17:45.690) - MainThread (19612):
    application openconsole closed
    
  18. codeofdusk commented on Oct 27, 2020

    @codeofdusk
    Contributor

    I cannot reproduce the issue with the linked build, even when running/exiting Nano over 100 times.

  19. codeofdusk commented on Oct 27, 2020

    @codeofdusk
    Contributor

    Just for consistency in setup, could you please run the following in the Python console (nvda+control+z) and put the output here?

    {k: v for k,v in config.conf["documentFormatting"].items()}
  20. AAClause commented on Oct 27, 2020

    @AAClause
    ContributorAuthor
    >>> {k: v for k,v in config.conf["documentFormatting"].items()}
    {'reportTableCellCoords': True, 'reportClickable': True, 'reportTableHeaders': True, 'reportTables': True, 'autoLanguageSwitching': 'False', 'reportArticles': True, 'reportFontAttributes': True, 'reportSuperscriptsAndSubscripts': True, 'reportColor': False, 'reportEmphasis': True, 'reportStyle': False, 'reportLinks': True, 'reportBorderStyle': False, 'reportBorderColor': False, 'reportAlignment': True, 'reportLineIndentationWithTones': False, 'reportParagraphIndentation': True, 'reportLineSpacing': True, 'reportLineNumber': False, 'detectFormatAfterCursor': False, 'reportLineIndentation': False, 'reportFontName': False, 'reportFontSize': False, 'reportRevisions': True, 'reportHighlight': True, 'reportSpellingErrors': True, 'reportPage': True, 'includeLayoutTables': False, 'reportGraphics': True, 'reportComments': True, 'reportLists': True, 'reportHeadings': True, 'reportBlockQuotes': True, 'reportGroupings': True, 'reportLandmarks': True, 'reportFrames': True}
    
  21. AAClause commented on Oct 27, 2020

    @AAClause
    ContributorAuthor

    I've just created a portable version of NVDA (without my configuration) and I'm unable to reproduce the issue (running/exiting Nano over 100 times too).

  22. codeofdusk commented on Oct 27, 2020

    @codeofdusk
    Contributor

    I've copied your exact config, using:

    console fragment
    Details
    d = {'reportTableCellCoords': True, 'reportClickable': True, 'reportTableHeaders': True, 'reportTables': True, 'autoLanguageSwitching': 'False', 'reportArticles': True, 'reportFontAttributes': True, 'reportSuperscriptsAndSubscripts': True, 'reportColor': False, 'reportEmphasis': True, 'reportStyle': False, 'reportLinks': True, 'reportBorderStyle': False, 'reportBorderColor': False, 'reportAlignment': True, 'reportLineIndentationWithTones': False, 'reportParagraphIndentation': True, 'reportLineSpacing': True, 'reportLineNumber': False, 'detectFormatAfterCursor': False, 'reportLineIndentation': False, 'reportFontName': False, 'reportFontSize': False, 'reportRevisions': True, 'reportHighlight': True, 'reportSpellingErrors': True, 'reportPage': True, 'includeLayoutTables': False, 'reportGraphics': True, 'reportComments': True, 'reportLists': True, 'reportHeadings': True, 'reportBlockQuotes': True, 'reportGroupings': True, 'reportLandmarks': True, 'reportFrames': True}
    for k, v in d.items():
        config.conf["documentFormatting"][k] = v

    With a Braille display connected, in that build of UIA console, I still can't reproduce the crash running over 100 times. So it must not be formatting settings.

    Could you please paste the contents of your nvda.ini file in %appdata%\nvda?

  23. ghost added a commit that references this issue on Oct 27, 2020
  24. AAClause commented on Oct 28, 2020

    @AAClause
    ContributorAuthor

    Sorry, I forgot to enable "Use UI Automation to access the Windows Console when available" on my fresh copy of NVDA. I can reproduce the issue with no personal customization.

    Also during a test, I received a serious freeze (about 30 seconds)...

    Log extract
    DEBUGWARNING - watchdog._watcher (09:42:36.473) - watchdog (18896):
    Trying to recover from freeze. Listing stacks for Python threads:
    Python stack for thread 19432 (Dummy-1):
      File "comtypes\_comobject.pyc", line 147, in call_without_this
      File "_UIAHandler.pyc", line 456, in IUIAutomationEventHandler_HandleAutomationEvent
      File "_UIAHandler.pyc", line 737, in getNearestWindowHandle
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    Python stack for thread 9664 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 22504 (synthDrivers._espeak.BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "synthDrivers\_espeak.pyc", line 191, in run
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 460 (watchdog.CancellableCallThread.execute(<_FuncPtr object at 0x09CF7B70>)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "watchdog.pyc", line 332, in run
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 18896 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 127, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 16376 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 22336 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 19496 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 1236 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 523, in run
      File "queueHandler.pyc", line 88, in pumpAll
      File "queueHandler.pyc", line 55, in flushQueue
      File "eventHandler.pyc", line 65, in _queueEventCallback
      File "eventHandler.pyc", line 246, in executeEvent
      File "eventHandler.pyc", line 96, in __init__
      File "eventHandler.pyc", line 105, in next
      File "NVDAObjects\behaviors.pyc", line 195, in event_caret
      File "NVDAObjects\__init__.pyc", line 1180, in event_caret
      File "review.pyc", line 177, in handleCaretMove
      File "api.pyc", line 215, in setReviewPosition
      File "braille.pyc", line 2036, in handleReviewMove
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1016, in update
      File "braille.pyc", line 854, in _addTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 718, in getTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 706, in _getTextWithFieldsForUIARange
      File "NVDAObjects\UIA\__init__.pyc", line 491, in _getTextWithFields_text
      File "NVDAObjects\UIA\__init__.pyc", line 457, in _getTextFromUIARange
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    ERROR - watchdog._watcher (09:42:51.486) - watchdog (18896):
    Core frozen in stack!
    INFO - watchdog._watcher (09:42:51.533) - watchdog (18896):
    Listing stacks for Python threads:
    Python stack for thread 15768 (nvwave.playWaveFile(error.wav)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "nvwave.pyc", line 426, in idle
      File "nvwave.pyc", line 436, in _idleUnbuffered
      File "nvwave.pyc", line 386, in sync
      File "winKernel.pyc", line 228, in waitForSingleObject
    
    Python stack for thread 19432 (Dummy-1):
      File "comtypes\_comobject.pyc", line 147, in call_without_this
      File "_UIAHandler.pyc", line 456, in IUIAutomationEventHandler_HandleAutomationEvent
      File "_UIAHandler.pyc", line 737, in getNearestWindowHandle
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    Python stack for thread 9664 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 22504 (synthDrivers._espeak.BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "synthDrivers\_espeak.pyc", line 191, in run
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 460 (watchdog.CancellableCallThread.execute(<_FuncPtr object at 0x09CF7B70>)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "watchdog.pyc", line 332, in run
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 18896 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 142, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 16376 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 22336 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 19496 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 1236 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 523, in run
      File "queueHandler.pyc", line 88, in pumpAll
      File "queueHandler.pyc", line 55, in flushQueue
      File "eventHandler.pyc", line 65, in _queueEventCallback
      File "eventHandler.pyc", line 246, in executeEvent
      File "eventHandler.pyc", line 96, in __init__
      File "eventHandler.pyc", line 105, in next
      File "NVDAObjects\behaviors.pyc", line 195, in event_caret
      File "NVDAObjects\__init__.pyc", line 1180, in event_caret
      File "review.pyc", line 177, in handleCaretMove
      File "api.pyc", line 215, in setReviewPosition
      File "braille.pyc", line 2036, in handleReviewMove
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1016, in update
      File "braille.pyc", line 854, in _addTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 718, in getTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 706, in _getTextWithFieldsForUIARange
      File "NVDAObjects\UIA\__init__.pyc", line 491, in _getTextWithFields_text
      File "NVDAObjects\UIA\__init__.pyc", line 457, in _getTextFromUIARange
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    
    DEBUGWARNING - NVDAObjects.__call__ (09:42:56.111) - Dummy-1 (19432):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    DEBUGWARNING - NVDAObjects.__call__ (09:42:56.116) - Dummy-1 (19432):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    DEBUGWARNING - NVDAObjects.__call__ (09:42:56.119) - Dummy-1 (19432):
    Invalid NVDAObject: no windowHandle
    Traceback (most recent call last):
      File "NVDAObjects\__init__.pyc", line 82, in __call__
      File "NVDAObjects\UIA\__init__.pyc", line 1060, in __init__
    NVDAObjects.InvalidNVDAObject: no windowHandle
    ERROR - eventHandler.executeEvent (09:42:56.103) - MainThread (1236):
    error executing event: caret on <NVDAObjects.Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA object at 0x014B17D0> with extra args of {}
    Traceback (most recent call last):
      File "eventHandler.pyc", line 246, in executeEvent
      File "eventHandler.pyc", line 96, in __init__
      File "eventHandler.pyc", line 105, in next
      File "NVDAObjects\behaviors.pyc", line 195, in event_caret
      File "NVDAObjects\__init__.pyc", line 1180, in event_caret
      File "review.pyc", line 177, in handleCaretMove
      File "api.pyc", line 215, in setReviewPosition
      File "braille.pyc", line 2036, in handleReviewMove
      File "braille.pyc", line 1963, in _doCursorMove
      File "braille.pyc", line 1016, in update
      File "braille.pyc", line 854, in _addTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 718, in getTextWithFields
      File "NVDAObjects\UIA\__init__.pyc", line 706, in _getTextWithFieldsForUIARange
      File "NVDAObjects\UIA\__init__.pyc", line 491, in _getTextWithFields_text
      File "NVDAObjects\UIA\__init__.pyc", line 457, in _getTextFromUIARange
      File "comtypesMonkeyPatches.pyc", line 26, in __call__
    _ctypes.COMError: (-2146233083, None, (None, None, None, 0, None))
    DEBUGWARNING - watchdog._watcher (09:42:56.683) - watchdog (18896):
    Trying to recover from freeze. Listing stacks for Python threads:
    Python stack for thread 9664 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 22504 (synthDrivers._espeak.BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "synthDrivers\_espeak.pyc", line 191, in run
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 460 (watchdog.CancellableCallThread.execute(<_FuncPtr object at 0x09CF7B70>)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "watchdog.pyc", line 332, in run
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 18896 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 127, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 16376 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 22336 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 19496 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 1236 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 522, in run
      File "IAccessibleHandler\__init__.pyc", line 1099, in pumpAll
      File "IAccessibleHandler\__init__.pyc", line 691, in processGenericWinEvent
      File "IAccessibleHandler\__init__.pyc", line 636, in winEventToNVDAEvent
      File "NVDAObjects\IAccessible\__init__.pyc", line 42, in getNVDAObjectFromEvent
      File "IAccessibleHandler\__init__.pyc", line 412, in accessibleObjectFromEvent
      File "oleacc.pyc", line 265, in AccessibleObjectFromEvent
    
    ERROR - watchdog._watcher (09:43:11.728) - watchdog (18896):
    Core frozen in stack!
    INFO - watchdog._watcher (09:43:11.776) - watchdog (18896):
    Listing stacks for Python threads:
    Python stack for thread 19028 (nvwave.playWaveFile(error.wav)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "nvwave.pyc", line 426, in idle
      File "nvwave.pyc", line 436, in _idleUnbuffered
      File "nvwave.pyc", line 386, in sync
      File "winKernel.pyc", line 228, in waitForSingleObject
    
    Python stack for thread 9664 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 22504 (synthDrivers._espeak.BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "synthDrivers\_espeak.pyc", line 191, in run
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 460 (watchdog.CancellableCallThread.execute(<_FuncPtr object at 0x09CF7B70>)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "watchdog.pyc", line 332, in run
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 18896 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 142, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 16376 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 22336 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 19496 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 1236 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 522, in run
      File "IAccessibleHandler\__init__.pyc", line 1099, in pumpAll
      File "IAccessibleHandler\__init__.pyc", line 691, in processGenericWinEvent
      File "IAccessibleHandler\__init__.pyc", line 636, in winEventToNVDAEvent
      File "NVDAObjects\IAccessible\__init__.pyc", line 42, in getNVDAObjectFromEvent
      File "IAccessibleHandler\__init__.pyc", line 412, in accessibleObjectFromEvent
      File "oleacc.pyc", line 265, in AccessibleObjectFromEvent
    
    ERROR - watchdog._watcher (09:43:26.746) - watchdog (18896):
    Core frozen in stack!
    INFO - watchdog._watcher (09:43:26.802) - watchdog (18896):
    Listing stacks for Python threads:
    Python stack for thread 10672 (nvwave.playWaveFile(error.wav)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "nvwave.pyc", line 426, in idle
      File "nvwave.pyc", line 436, in _idleUnbuffered
      File "nvwave.pyc", line 386, in sync
      File "winKernel.pyc", line 228, in waitForSingleObject
    
    Python stack for thread 9664 (Dynamic_WinConsoleUIAEditableTextWithAutoSelectDetectionUIA._monitorThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "NVDAObjects\behaviors.pyc", line 300, in _monitor
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 22504 (synthDrivers._espeak.BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "synthDrivers\_espeak.pyc", line 191, in run
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 460 (watchdog.CancellableCallThread.execute(<_FuncPtr object at 0x09CF7B70>)):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "watchdog.pyc", line 332, in run
      File "threading.pyc", line 552, in wait
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 18896 (watchdog):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "watchdog.pyc", line 142, in _watcher
      File "watchdog.pyc", line 63, in getFormattedStacksForAllThreads
    
    Python stack for thread 16376 (winInputHook):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "winInputHook.pyc", line 79, in hookThreadFunc
    
    Python stack for thread 22336 (_UIAHandler.UIAHandler.MTAThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "_UIAHandler.pyc", line 310, in MTAThreadFunc
      File "queue.pyc", line 170, in get
      File "threading.pyc", line 296, in wait
    
    Python stack for thread 19496 (braille._BgThread):
      File "threading.pyc", line 890, in _bootstrap
      File "threading.pyc", line 926, in _bootstrap_inner
      File "threading.pyc", line 870, in run
      File "braille.pyc", line 2187, in func
    
    Python stack for thread 1236 (MainThread):
      File "nvda.pyw", line 236, in <module>
      File "core.pyc", line 553, in main
      File "wx\core.pyc", line 2134, in MainLoop
      File "gui\__init__.pyc", line 1062, in Notify
      File "core.pyc", line 522, in run
      File "IAccessibleHandler\__init__.pyc", line 1099, in pumpAll
      File "IAccessibleHandler\__init__.pyc", line 691, in processGenericWinEvent
      File "IAccessibleHandler\__init__.pyc", line 636, in winEventToNVDAEvent
      File "NVDAObjects\IAccessible\__init__.pyc", line 42, in getNVDAObjectFromEvent
      File "IAccessibleHandler\__init__.pyc", line 412, in accessibleObjectFromEvent
      File "oleacc.pyc", line 265, in AccessibleObjectFromEvent
    
    DEBUG - appModuleHandler.cleanup (09:43:28.802) - MainThread (1236):
    application openconsole closed
    

    For reference, here's my minimal configuration (on this copy):

    schemaVersion = 4
    [update]
    	autoCheck = True
    	startupNotification = True
    	allowUsageStats = False
    	askedAllowUsageStats = True
    [general]
    	language = en
    	saveConfigurationOnExit = True
    	askToExit = True
    	playStartAndExitSounds = False
    	loggingLevel = DEBUG
    	showWelcomeDialogAtStartup = False
    [development]
    	enableScratchpadDir = False
    [upgrade]
    [speech]
    	synth = espeak
    	outputDevice = Mappeur de sons Microsoft
    	[[oneCore]]
    		voice = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_frFR_HortenseM
    		volume = 100
    	[[espeak]]
    		voice = fr
    		variant = max
    		rate = 70
    		pitch = 40
    		inflection = 75
    		volume = 100
    [braille]
    	[[noBraille]]
    	[[baum]]
    [keyboard]
    	keyboardLayout = laptop
    	useCapsLockAsNVDAModifierKey = True
    	speakTypedCharacters = False
    [vision]
    	[[NVDAHighlighter]]
    		highlightFocus = False
    		highlightNavigator = False
    		highlightBrowseMode = False
    	[[screenCurtain]]
    [UIA]
    	useInMSWordWhenAvailable = True
    	winConsoleImplementation = UIA
    [debugLog]
    	UIA = True
    
  25. codeofdusk commented on Oct 30, 2020

    @codeofdusk
    Contributor

    OK, please try the following:

    1. Download and extract this build.
    2. Open (and add to registry) EnableCrashDumps.reg (feel free to view it in notepad, it's mostly human-readable).
    3. Run OpenConsole.exe and reproduce the crash from that console.
      • this is a debug build, so UIA (particularly word navigation) may be very slow. However, the debug symbols available will allow me or Microsoft to find the problem more easily.
    4. Navigate (in Windows Explorer) to %localappdata%\CrashDumps and send the most recent .dmp file for OpenConsole.
      • The file should attach to GitHub, but if it's too big DM me.

    Also going to CC @miniksa on this issue.

  26. AAClause commented on Oct 31, 2020

    @AAClause
    ContributorAuthor

    I'm not familiar with dmp files and I don't know if can contain sensitive data. So I prefer to avoid publicly sharing this. Sent to @codeofdusk in DM.

  27. AAClause commented on Feb 1, 2021

    @AAClause
    ContributorAuthor

    Windows 10 Insider 21301.1000, NVDA alpha-21685,90dd4e9a: I'm no longer able to reproduce the crash. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions