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

Some error message when closing window in windows #333

Closed
npes87184 opened this issue Nov 12, 2018 · 3 comments
Closed

Some error message when closing window in windows #333

npes87184 opened this issue Nov 12, 2018 · 3 comments
Labels

Comments

@npes87184
Copy link
Contributor

npes87184 commented Nov 12, 2018

Hi,

When I close window in windows, it will show:

Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol

There may be some problem in closing resource.

btw, scrcpy works well on windows.

PS C:\Users\YuChenLin\Downloads\scrcpy-win64> .\scrcpy.exe
scrcpy-server.jar: 1 file pushed.
INFO: Initial texture: 1080x2280
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
PS C:\Users\YuChenLin\Downloads\scrcpy-win64> .\scrcpy.exe --version
scrcpy v1.5

dependencies:
 - SDL 2.0.9
 - libavcodec 58.18.100
 - libavformat 58.12.100
 - libavutil 56.14.100
PS C:\Users\YuChenLin\Downloads\scrcpy-win64>


windows 10 v1803

Thanks,
yuchenlin

rom1v added a commit that referenced this issue Nov 12, 2018
@rom1v rom1v added the bug label Nov 12, 2018
@rom1v
Copy link
Collaborator

rom1v commented Nov 12, 2018

Thank you. There is this warning for a long time (since this FFmpeg commit), I never investigated before.

So now, I did, and it's fixed on master.

@rom1v rom1v closed this as completed Nov 12, 2018
@curiousrom
Copy link

curiousrom commented Dec 28, 2018

Sorry to report the same problem on Windows 10 Home 10.0.17134 Build 17134, x64-based PC w/ scrcpy-win64-v1.5.zip when using the wireless feature (over TCP/IP) and closing scrcpy using the X above the mirrored display of a Galaxy S5 SM-G900M running haggertk's Unofficial S5 klte LineageOS 16.0 build 2018-12-10.

BTW it does not say how to close scrcpy in https://github.com/Genymobile/scrcpy > README.md.

Or is it better with a command-line argument? Which one would that be?

Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\adb\scrcpy-win64>adb connect 192.168.1.2:5555
connected to 192.168.1.2:5555
C:\adb\scrcpy-win64>scrcpy
scrcpy-server.jar: 1 file pushed. 0.2 MB/s (19178 bytes in 0.082s)
INFO: Initial texture: 1080x1920
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
C:\adb\scrcpy-win64>

scrcpy_wireless_cmd_invalid_return_value

Edit: Using scrcpy via USB, I got the same "Invalid return value 0 for stream protocol" after closing it:

Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\adb\scrcpy-win64>scrcpy -r scrcpy_USB-01.mp4
daemon not running; starting now at tcp:5037
daemon started successfully
scrcpy-server.jar: 1 file pushed. 0.2 MB/s (19178 bytes in 0.100s)
INFO: Initial texture: 1080x1920
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
C:\adb\scrcpy-win64>

@rom1v
Copy link
Collaborator

rom1v commented Dec 28, 2018

@curiousrom it is fixed in master so the fix will be included in the next release (2876463).

it does not say how to close scrcpy

Just close the window. You can even unplug the cable or disconnect adb.

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

No branches or pull requests

3 participants