Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First attempt to edit a com port on Windows threw an exception #255

Open
wb8tyw opened this issue Oct 7, 2023 · 4 comments
Open

First attempt to edit a com port on Windows threw an exception #255

wb8tyw opened this issue Oct 7, 2023 · 4 comments
Labels
bug Something isn't working Config Subsystem Issues related to Configuration subsystem

Comments

@wb8tyw
Copy link
Contributor

wb8tyw commented Oct 7, 2023

I tried to check the configuration for a serial port, and got a exception popup instead.

On the second try, the configuration dialog came up.

Also note that the name assigned to a radio port can not be changed.

@wb8tyw wb8tyw added bug Something isn't working Config Subsystem Issues related to Configuration subsystem labels Oct 7, 2023
@maurizioandreotti
Copy link
Contributor

maurizioandreotti commented Oct 11, 2023

In Windows10, when I try adding a new port I see in the console:

10/11/2023 15:38:11:INFO:Win32Platform:list_serial_ports
Traceback (most recent call last):
  File "C:/msys64/home/mauri/D-Rats-master/d_rats/dplatform_win32.py", line 136, in list_serial_ports
    port = win32file.CreateFile(  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.error: (121, 'CreateFile', 'The semaphore timeout period has expired.')
10/11/2023 15:38:11:INFO:APRSicons:get_icon: Unknown APRS symbol table: x
10/11/2023 15:38:11:INFO:Spelling:Tested spelling okay: ['spelling,', 'spieling,', 'sapling,', 'spewing,', 'spilling,', 'spoiling,', '
spooling,', 'spline,', 'spellings,', 'pealing,', 'peeling,', 'sealing,', 'selling,', 'soling,', 'spleen,', 'sling,', 'speckling,', 'pa
ling,', 'piling,', 'poling,', 'puling,', 'splint,', "spelling's"]
10/11/2023 15:38:28:INFO:Win32Platform:list_serial_ports
Traceback (most recent call last):
  File "C:/msys64/home/mauri/D-Rats-master/d_rats/dplatform_win32.py", line 136, in list_serial_ports
    port = win32file.CreateFile(  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.error: (121, 'CreateFile', 'The semaphore timeout period has expired.')
10/11/2023 15:38:28:INFO:Configure_prompt_for_port_chg_type:Changed to Serial
10/11/2023 15:39:02:INFO:emailgw:validate_access:No match found

anyhow this is not blocking the creation of the com

If I try to edit an existing port, it works but in console i see:


10/11/2023 15:48:57:INFO:DratsRadioPanel:Values: ('com3', True, 'COM3', '9600', False, False, 'com3')
10/11/2023 15:49:02:INFO:Win32Platform:list_serial_ports
Traceback (most recent call last):
 File "C:/msys64/home/mauri/D-Rats-master/d_rats/dplatform_win32.py", line 136, in list_serial_ports
   port = win32file.CreateFile(  # type: ignore
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.error: (121, 'CreateFile', 'The semaphore timeout period has expired.')
10/11/2023 15:49:02:INFO:Configure_prompt_for_port_chg_type:Changed to Serial
10/11/2023 15:49:02:INFO:emailgw:validate_access:No match found

@wb8tyw
Copy link
Contributor Author

wb8tyw commented Oct 11, 2023

Unfortunately I did not record the exception in the ticket..

Along with the line of code that throws the exception we need the name of the exception that got thrown in order to fix this.

@maurizioandreotti
Copy link
Contributor

I have updated the previous post with more text from the console

@wb8tyw
Copy link
Contributor Author

wb8tyw commented Oct 12, 2023

The log entry is intentional to allow us to map the various exceptions that seem to sometimes occur.
Error code 121 is now known and will be added to the list of exceptions conditions that will not be shown in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Config Subsystem Issues related to Configuration subsystem
Projects
None yet
Development

No branches or pull requests

2 participants