marlon-sousa / EnhancedDictionaries

Nvda ADDON for handling more advanced dictionaries processing
MIT License
4 stars 7 forks source link

Addon breaks menus on the secure desktop #4

Closed tspivey closed 3 years ago

tspivey commented 3 years ago

STR:

  1. Switch to NVDA on the secure desktop, with this addon installed.
  2. Activate one of the menu items, like settings.

I get this traceback:

IO - speech.speech.speak (07:34:05.633) - MainThread (20660):
Speaking ['Settings...', 's', CancellableSpeech (still valid)]
IO - inputCore.InputManager.executeGesture (07:34:06.184) - winInputHook (22228):
Input: kb(laptop):enter
DEBUG - external:globalPlugins.EnhancedDictionaries.ConfigManager.getActiveProfile (07:34:06.190) - MainThread (20660):
safe profile
ERROR - unhandled exception (07:34:06.191) - MainThread (20660):
Traceback (most recent call last):
  File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries\__init__.py", line 76, in onVoiceDictionaryCommand
    dic = dictHelper.getDictionary("voice")
  File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries\dictHelper.py", line 71, in getDictionary
    return _getVoiceDictionary(profile)
  File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries\dictHelper.py", line 50, in _getVoiceDictionary
    if not profile.name or _hasVoiceDictionaryProfile(profile.name, synth.name, dictionaryFilename):
AttributeError: 'NoneType' object has no attribute 'name'

An easier way to debug this is to restart NVDA with --secure --debug on the normal desktop, cause the error, restart NVDA and look at %temp%\nvda-old.log.

marlon-sousa commented 3 years ago

Hello, Thanks for reporting. I couldn’t replicate it. What I did?

I pressed Ctrl plus alt plus delete to access secure screen. Then, I tried to access several menus and didn’t get any error. what is your version of windows and also the versions of the addom and NVDA?

anyways, the trace back is interesting enough that I can start working on it. I should have a new version in a couple of days. Obrigado, Marlon

Em 28 de jul. de 2021, à(s) 11:44, Tyler Spivey @.***> escreveu:

 STR:

Switch to NVDA on the secure desktop, with this addon installed. Activate one of the menu items, like settings. I get this traceback:

IO - speech.speech.speak (07:34:05.633) - MainThread (20660): Speaking ['Settings...', 's', CancellableSpeech (still valid)] IO - inputCore.InputManager.executeGesture (07:34:06.184) - winInputHook (22228): Input: kb(laptop):enter DEBUG - external:globalPlugins.EnhancedDictionaries.ConfigManager.getActiveProfile (07:34:06.190) - MainThread (20660): safe profile ERROR - unhandled exception (07:34:06.191) - MainThread (20660): Traceback (most recent call last): File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries__init__.py", line 76, in onVoiceDictionaryCommand dic = dictHelper.getDictionary("voice") File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries\dictHelper.py", line 71, in getDictionary return _getVoiceDictionary(profile) File "C:\Users\tyler\AppData\Roaming\nvda\addons\EnhancedDictionaries\globalPlugins\EnhancedDictionaries\dictHelper.py", line 50, in _getVoiceDictionary if not profile.name or _hasVoiceDictionaryProfile(profile.name, synth.name, dictionaryFilename): AttributeError: 'NoneType' object has no attribute 'name' An easier way to debug this is to restart NVDA with --secure --debug on the normal desktop, cause the error, restart NVDA and look at %temp%\nvda-old.log.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

tspivey commented 3 years ago

NVDA: Version: alpha-23410,f9fc324c

Windows: Version 2004 (OS Build 19041.1083)

Addon version 1.2.0.

marlon-sousa commented 3 years ago

Can you try to replicate this on regular 2021.1 version? thanks a lot.

Obrigado, Marlon

Em 29 de jul. de 2021, à(s) 08:49, Tyler Spivey @.***> escreveu:

 NVDA: Version: alpha-23410,f9fc324c

Windows: Version 2004 (OS Build 19041.1083)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.