sabaatworld / HyperionScreenCap

Screen capture program for Hyperion ambilight. Updated to support DirectX 11, multiple displays and multiple Hyperion servers.
MIT License
118 stars 18 forks source link

Capture stops working at random times, HRESULT: [0x887A0001] #42

Open ProtoxiDe22 opened 3 years ago

ProtoxiDe22 commented 3 years ago

I'm trying to get this to work. it works fine when i first start it, but after a little while, the ambient lighting stops working, and hyperion reverts to it's default effect, after disabling and re enabling hyperionscreencap, or waiting ~20 seconds it starts to work again, until the next "crash". there's some DX errors in the logs:

2020-11-19 18:56:26 [ERROR] [12] HyperionScreenCap.Helper.HyperionTask.StartCapture:0 - HyperionTask[ConfigurationId: f482ab]: Exception in screen capture attempt: 13
System.Exception: Error occured while sending image to server: HRESULT: [0x887A0001], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall], Message: Chiamata dell'applicazione non valida. I parametri della chiamata o lo stato di un oggetto non è corretto.
Abilitare il livello di debug D3D per visualizzare i dettagli tramite i messaggi di debug.
 ---> SharpDX.SharpDXException: HRESULT: [0x887A0001], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall], Message: Chiamata dell'applicazione non valida. I parametri della chiamata o lo stato di un oggetto non è corretto.
Abilitare il livello di debug D3D per visualizzare i dettagli tramite i messaggi di debug.

   in HyperionScreenCap.DX11ScreenCapture.ManagedCapture()
   in HyperionScreenCap.DX11ScreenCapture.Capture()
   in HyperionScreenCap.Helper.HyperionTask.TransmitNextFrame()
   --- Fine della traccia dello stack dell'eccezione interna ---
   in HyperionScreenCap.Helper.HyperionTask.TransmitNextFrame()
   in HyperionScreenCap.Helper.HyperionTask.StartCapture()
2020-11-19 18:56:26 [INFO] [12] HyperionScreenCap.Helper.HyperionTask.StartCapture:0 - HyperionTask[ConfigurationId: f482ab]: Waiting before next screen capture attempt

sorry for the italian error messages, they roughly translate to "call from the application invalid. calls parameters or the status of some object is not correct"

i'm running the application on Windows 10 2004, gpu is 2080 super, i have all the dependencies installed, and i'm using the dx11 capture method

sabaatworld commented 3 years ago

Can you please share the connected adapter and monitors info using the "Click here" link in the setup window?

ProtoxiDe22 commented 3 years ago

image Here, sorry for not doing that in the first place. I should note that the second monitor (index1 i guess) is actually running at 4k, not 1440p