Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Errors in Virtual Machines #48

Open
megadox opened this issue Jul 20, 2021 · 0 comments
Open

Errors in Virtual Machines #48

megadox opened this issue Jul 20, 2021 · 0 comments

Comments

@megadox
Copy link

megadox commented Jul 20, 2021

I am using the d3dshot module in a virtual machine.

The d3dshot module works normally the first time after booting the virtual machine, but it does not work after that.
Restarting after logging out of the session does not work.

I don't know what the problem is.

However, the following message occurs:
I've been trying for days to find the cause,
but I can't figure it out.

I need help~~~

========= Error Message ==================
Traceback (most recent call last):

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\python36.zip\runpy.py", line 193, in _run_module_as_main

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\python36.zip\runpy.py", line 85, in _run_code

File "C:\Program Files (x86)\BATEM\Common\Resource\engine\rpa\library\screen_capture.py", line 5, in

__INSTANCE__ = d3dshot.create()

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot_init_.py", line 74, in create

pytorch_gpu_is_available=pytorch_gpu_is_available,

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\d3dshot.py", line 17, in call

cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\d3dshot.py", line 37, in init

self.detect_displays()

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\d3dshot.py", line 216, in detect_displays

self.displays = Display.discover_displays()

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\display.py", line 129, in discover_displays

dxgi_adapter=dxgi_adapter,

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\display.py", line 39, in init

self.dxgi_output_duplication = self._initialize_dxgi_output_duplication()

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\display.py", line 69, in _initialize_dxgi_output_duplication

self.dxgi_output, self.d3d_device

File "C:\Program Files (x86)\BATEM\Common\Resource\embedded\lib\site-packages\d3dshot\dll\dxgi.py", line 284, in initialize_dxgi_output_duplication

dxgi_output.DuplicateOutput(d3d_device, ctypes.byref(dxgi_output_duplication))

ctypes.COMError: (-2147418113, 'Error', (None, None, None, 0, None))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant