Skip to content

sharedMemoryAPI.py failures when run #10

@thoraxe

Description

@thoraxe
 py -3.7 .\sharedMemoryAPI.py
Traceback (most recent call last):
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_common.py", line 449, in wrapper
    ret = self._cache[fun]
AttributeError: _cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_pswindows.py", line 679, in wrapper
    return fun(self, *args, **kwargs)
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_common.py", line 452, in wrapper
    return fun(self)
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_pswindows.py", line 766, in exe
    exe = cext.proc_exe(self.pid)
PermissionError: [WinError 24] The program issued a command but the command length is incorrect: '(originated from NtQuerySystemInformation)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\sharedMemoryAPI.py", line 336, in <module>
    test_main()
  File ".\sharedMemoryAPI.py", line 236, in test_main
    info = SimInfoAPI()
  File ".\sharedMemoryAPI.py", line 32, in __init__
    self.__find_rf2_pid()
  File ".\sharedMemoryAPI.py", line 100, in __find_rf2_pid
    if p.name().lower().startswith('rfactor2.exe'):
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\__init__.py", line 630, in name
    name = self._proc.name()
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_pswindows.py", line 750, in name
    return os.path.basename(self.exe())
  File "C:\Users\erikm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psutil\_pswindows.py", line 681, in wrapper
    raise convert_oserror(err, pid=self.pid, name=self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=2336)

This is on Win11 x64. Running rF2data.py works fine, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions