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

NullPointerException when using scrcpy with Hisense TV on Android 11 #5061

Closed
fangxiaofelix opened this issue Jul 5, 2024 · 1 comment
Closed

Comments

@fangxiaofelix
Copy link

Environment:

  • Device: Hisense TV
  • Android version: 11
  • scrcpy version: 2.5
  • Command: scrcpy --no-audio -m 1024

Error Log:
[server] INFO: Device: [Skyworth] Skyworth 8R145_A5D (Android 11)
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.Object android.content.Context.getSystemService(java.lang.String)’ on a null object reference at android.media.MediaCodec.getCurProcessName(MediaCodec.java:2430) at android.media.MediaCodec.setSkyMediaStatus(MediaCodec.java:2443) at android.media.MediaCodec.(MediaCodec.java:1915) at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1893) at com.genymobile.scrcpy.SurfaceEncoder.createMediaCodec(SurfaceEncoder.java:207) at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:52) at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253) at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:923) INFO: Renderer: direct3d
ERROR: Demuxer ‘video’: stream disabled due to connection error
ERROR: Demuxer error

@rom1v
Copy link
Collaborator

rom1v commented Jul 5, 2024

Duplicate of #4922 for Skyworth devices.

@rom1v rom1v closed this as completed Jul 5, 2024
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