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

--no-audio, error when exit terminal #4975

Open
2 tasks done
webinizam opened this issue Jun 6, 2024 · 4 comments
Open
2 tasks done

--no-audio, error when exit terminal #4975

webinizam opened this issue Jun 6, 2024 · 4 comments

Comments

@webinizam
Copy link

webinizam commented Jun 6, 2024

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 11 Pro
  • scrcpy version: 2.4
  • installation method: Windows release (portable x64)
  • device model: Xiaomi MI 9T
  • Android version: 11

Describe the bug
I use in terminal command "scrcpy.exe --shortcut-mod=lctrl --stay-awake --always-on-top --no-audio --kill-adb-on-close"
for USB and WIFI connection.

When I click "x" on terminal with parameters from above I got error scrcpy.exe has stopped working (hang on while Windows reports the problem to Microsoft" and ADB.exe is not closed.

I have removed one by one parameter and noticed that error accrued only when I use "--no-audio" parameter.

When I click "x" on scrcpy, with "--no-audio", there is no error and adb.exe is killed on close.

I have also tried with "--no-audio-playback" but all is the same.

I am updating windows and programs with winget weekly and I have noticed this few days ago.

Hope that this information is helpful for some new scrcpy releases.

scrcpy.exe --shortcut-mod=lctrl --stay-awake --always-on-top --no-audio --kill-adb-on-close
scrcpy 2.4 https://github.com/Genymobile/scrcpy

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    INFO: ADB device found:
    INFO: --> (usb) e20d4e91 device Mi_9T
    C:\scrcpy-krle\scrcpy-server: 1 file pushed, 0 skipped. 45.8 MB/s (69007 bytes in 0.001s)
    [server] INFO: Device: [Xiaomi] Xiaomi Mi 9T (Android 11)
    INFO: Renderer: direct3d
    INFO: Texture: 1080x2336
@rom1v
Copy link
Collaborator

rom1v commented Jun 8, 2024

I am updating windows and programs with winget weekly and I have noticed this few days ago.

Please test with the official release (there were issues on the winget package).

When I click "x" on scrcpy

Just to confirm: you're closing the scrcpy window, not the terminal directly?

@webinizam
Copy link
Author

I am updating windows and programs with winget weekly and I have noticed this few days ago.

Please test with the official release (there were issues on the winget package).

I am using scrcpy from here (scrcpy-win64-v2.4.zip) like portable version.

When I click "x" on scrcpy

Just to confirm: you're closing the scrcpy window, not the terminal directly?

When I close scrpy window there is no error, only when I close terminal while scrcpy is on with parameter --no-audio I get error message.

@webinizam
Copy link
Author

SCRCPY-with-NO-AUDIO - error when close terminal
SCRCPY-with-NO-AUDIO
SCRCPY-without-NO-AUDIO - all is ok, no error
SCRCPY-without-NO-AUDIO

@rom1v
Copy link
Collaborator

rom1v commented Jun 11, 2024

You should never close the terminal directly, it just kills the app abruptly. For example, if you record (scrcpy --record=file.mp4), your recorded file would be corrupted.

That being said, it should not crash ("has stopped working") the way it does. The problem is that I have no idea how to get a meaningful stacktrace to understand why it crashes.

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