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

startsWith() on null object at ScreenEncoder.java:158 #365

Open
SwayChen opened this Issue Dec 4, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@SwayChen
Copy link

SwayChen commented Dec 4, 2018

Model: Meizu 16th
OS: Flyme 7.1.1.2A base on Android 8.1.0

log like this:

MacBook-Pro:~ allconnected$ scrcpy
/usr/local/Cellar/scrcpy/1.5/share/scrcpy/scrcpy-server.jar: 1 file pushed. 1.2 MB/s (19308 bytes in 0.016s)
ERROR: Exception on thread Thread[main,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
	at android.media.MediaCodec.configure(MediaCodec.java:1918)
	at android.media.MediaCodec.configure(MediaCodec.java:1873)
	at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:158)
	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:68)
	at com.genymobile.scrcpy.Server.scrcpy(Server.java:25)
	at com.genymobile.scrcpy.Server.main(Server.java:109)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:285)
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
2018-12-04 10:17:42.744 scrcpy[1111:16013] ERROR: Could not open video stream
2018-12-04 10:17:42.789 scrcpy[1111:15936] INFO: Initial texture: 1080x2160

@rom1v rom1v added the device label Dec 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.