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

Adrilight not capture screen #108

Open
fabiogfabio opened this issue Dec 30, 2020 · 8 comments
Open

Adrilight not capture screen #108

fabiogfabio opened this issue Dec 30, 2020 · 8 comments

Comments

@fabiogfabio
Copy link

Hello!
as the title suggests I can not capture the colors of the screen.
as soon as I load the code on arduino I see the rainbow in motion but when I set the com and send the data the rainbow remains stationary.

from the logs I detect

020-12-30 13:16:54.1748 DEBUG adrilight.SerialStream Exception catched. System.IO.IOException: Un dispositivo collegato al sistema non e in funzione.

in System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
in System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
in System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
in System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
in adrilight.SerialStream.DoWork(Object tokenObject)
2020-12-30 13:17:00.0203 DEBUG adrilight.SerialStream Exception catched. System.IO.IOException: Un dispositivo collegato al sistema non e in funzione.

in System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
in System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
in System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
in System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
in adrilight.SerialStream.DoWork(Object tokenObject)
2020-12-30 13:17:10.6680 ERROR adrilight.DesktopDuplicatorReader GetNextFrame() failed. adrilight.DesktopDuplication.DesktopDuplicationException: Failed to acquire next frame. ---> SharpDX.SharpDXException: HRESULT: [0x887A0026], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_ACCESS_LOST/AccessLost], Message: Mutex con chiave abbandonata.

in SharpDX.Result.CheckError()
in adrilight.DesktopDuplication.DesktopDuplicator.RetrieveFrame()
--- Fine della traccia dello stack dell'eccezione interna ---
in adrilight.DesktopDuplication.DesktopDuplicator.RetrieveFrame()
in adrilight.DesktopDuplication.DesktopDuplicator.GetLatestFrame(Bitmap reusableImage)
in adrilight.DesktopDuplicatorReader.GetNextFrame(Bitmap reusableBitmap)
2020-12-30 13:48:46.5037 ERROR adrilight.DesktopDuplicatorReader GetNextFrame() failed. adrilight.DesktopDuplication.DesktopDuplicationException: Failed to acquire next frame. ---> SharpDX.SharpDXException: HRESULT: [0x887A0026], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_ACCESS_LOST/AccessLost], Message: Mutex con chiave abbandonata.

in SharpDX.Result.CheckError()
in adrilight.DesktopDuplication.DesktopDuplicator.RetrieveFrame()
--- Fine della traccia dello stack dell'eccezione interna ---
in adrilight.DesktopDuplication.DesktopDuplicator.RetrieveFrame()
in adrilight.DesktopDuplication.DesktopDuplicator.GetLatestFrame(Bitmap reusableImage)
in adrilight.DesktopDuplicatorReader.GetNextFrame(Bitmap reusableBitmap)

what could it have depended on?

thanks.

@fabsenet
Copy link
Owner

fabsenet commented Dec 30, 2020 via email

@fabiogfabio
Copy link
Author

hello again

the com port is correct I also tried to restart the system and when it turns off the LEDs also turn off.
when I start the software the rainbow mode remains static.

@fabsenet
Copy link
Owner

this is expected behavior

@fabsenet
Copy link
Owner

does the preview work?

please compare the number of LEDs in the arduino script with the number of leds in the windows software and also with the physical number of leds you have

@fabiogfabio
Copy link
Author

fabiogfabio commented Dec 30, 2020

no it doesn't work.

only static rainbow remains.

the LED numbers are correct

could be the cause of a very Chinese arduino? : D

@fabiogfabio
Copy link
Author

Hello
I tried to change the arduino but it remains the same behavior.

I also tried to use an older software version but with the same result (0.1.4).
these are the logs

2020-12-31 09: 31: 09.7456 DEBUG adrilight.Program adrilight 0.1.4: Main () started.
2020-12-31 09: 31: 09.8384 DEBUG adrilight.MainForm Creating Mainform
2020-12-31 09: 31: 10.1532 DEBUG adrilight.MainForm UseLinearLighting changed to False
2020-12-31 09: 31: 10.3511 DEBUG adrilight.MainForm Created Mainform
2020-12-31 09: 31: 35.9096 DEBUG adrilight.MainForm UseLinearLighting changed to True
2020-12-31 09: 31: 35.9096 DEBUG adrilight.MainForm UseLinearLighting changed to True
2020-12-31 09: 31: 37.9612 DEBUG adrilight.MainForm UseLinearLighting changed to False
2020-12-31 09: 31: 37.9612 DEBUG adrilight.MainForm UseLinearLighting changed to False
2020-12-31 09: 31: 39.3390 DEBUG adrilight.SerialStream Start called.
2020-12-31 09: 31: 39.5644 DEBUG adrilight.DesktopDuplicatorReader The frame size changed from x to 1920x1080
2020-12-31 09: 31: 52.3868 DEBUG adrilight.DesktopDuplicatorReader The frames are null since 12/31/2020 08:31:52
2020-12-31 09: 31: 52.4098 DEBUG adrilight.DesktopDuplicatorReader There is again a frame which is not null!
2020-12-31 09: 32: 22.8394 DEBUG adrilight.DesktopDuplicatorReader The frames are null since 12/31/2020 08:32:21
2020-12-31 09: 32: 23.9011 DEBUG adrilight.DesktopDuplicatorReader There is again a frame which is not null!
2020-12-31 09: 33: 01.5042 DEBUG adrilight.DesktopDuplicatorReader The frames are null since 12/31/2020 08:33:01
2020-12-31 09: 33: 01.5391 DEBUG adrilight.DesktopDuplicatorReader There is again a frame which is not null!
2020-12-31 09: 33: 35.2102 DEBUG adrilight.DesktopDuplicatorReader The frames are null since 12/31/2020 08:33:35
2020-12-31 09: 33: 35.6710 DEBUG adrilight.DesktopDuplicatorReader There is again a frame which is not null!

the reason could be that I have 3 monitors connected and the software cannot recognize which monitor it should work on?

@fabiogfabio
Copy link
Author

i managed to get it to work by changing led strip :O both are WS2812B.
the weird thing is that the ones that don't work with adrilight work with ambibox
thanks for the support and happy new year!

@fabsenet
Copy link
Owner

fabsenet commented Dec 31, 2020 via email

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

No branches or pull requests

2 participants