Skip to content

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

@SwayChen

Description

@SwayChen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions