-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Start scrcpy 2.0 by NodeJS but cannot receive "Recording Started" in stdout pipe #3933
Comments
What does it mean? What is the full console output? See commit a039124. |
I use NodeJs to start scrcpy code like this
Command Console output
|
So you get the adb and server logs immediately, but the client logs when you exit. There is additional buffering somewhere… |
Yes. When I use 1.24, it's normal, but 2.0 doesn't work anymore. Is there any suggestion? |
Maybe related: in 2.0, info logs are printed to |
I listen to But i got the same situation. Not fixed.. |
@rom1v |
You have to disable stdout buffering in some way in your program (I don't know NodeJS). Also see: https://unix.stackexchange.com/a/25378 |
Well, Lets see is there any way to disable stdout buffering in NodeJS. Thanks for your helping ~~ |
@rom1v I found that stdout has a buffer area while stderr does not. In my case, I use Reference material: |
Environment
Describe the bug
Hi,
I just start scrcpy 2.0 by NodeJs but cannot receive "Recording Started" in stdout pipe.
I tried scrcpy 1.24 Its ok. So i think this is a new bug from 1.45 to 2.0
More Information:
I guess its something wrong between buffer area? Maybe print but not '\n' or cout but not "<< endl;" ? Just a guess
The text was updated successfully, but these errors were encountered: