exelix11 / SysDVR

Stream switch games to your PC via USB or network
GNU General Public License v2.0
1.52k stars 88 forks source link

SafeHandle cannot be null. #239

Closed mio-19 closed 1 year ago

mio-19 commented 1 year ago

[To submit a bug report fill all the parts of the template, then remove all the text within square brackets "[ ]" ] [Issues that don't follow the template will be closed]

Describe the bug

Getting SafeHandle cannot be null. error when running SysDVR in usb mode

To Reproduce

log:

dotnet SysDVR-Client.dll usb
SysDVR-Client - SysDVR 5.5.6 by exelix
https://github.com/exelix11/SysDVR 

Initializing video player with h264 codec.
Connecting to the console with serial xaw00000000000...
Starting stream, close the player window to stop.
Press F11 for full screen, esc to quit.

Initialized SDL with opengl renderer
USB warning: Couldn't communicate with the console (Timeout). Try entering a compatible game, unplugging your console or restarting it.
USB warning: Couldn't communicate with the console (NoDevice). Resetting the connection...
USB warning: Couldn't communicate with the console (SafeHandle cannot be null. (Parameter 'pHandle')). Resetting the connection...

Expected behavior

Setup information

Additional context

mio-19 commented 1 year ago

Oh. It means that the game is incompatible

exelix11 commented 1 year ago

It shouldn't, this could be an actual bug

exelix11 commented 1 year ago

I checked: it depends on libusb, on windows it means it could not connect to the console. In practice it's not an issue since it will just attemp to reconnect automatically once a compatible game is launched.

Also you can use dvr-patches to stream incompatible games.