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

Wear OS support #725

Closed
marius137 opened this issue Aug 15, 2019 · 2 comments
Closed

Wear OS support #725

marius137 opened this issue Aug 15, 2019 · 2 comments

Comments

@marius137
Copy link

marius137 commented Aug 15, 2019

Kind of similar to #407 and #82 But i have a misfit Vapor (also by Fossil) running Wear OS 2.0
IDK if it is even supported, but here are my log outputs

When I tried the first time:

INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
D:\Downloads\scrcpy-win64-v1.10\scrcpy-server.jar: 1 file pushed. 0.5 MB/s (22546 bytes in 0.039s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: Failed to initialize video/avc, error 0xfffffffe
        at android.media.MediaCodec.native_setup(Native Method)
        at android.media.MediaCodec.<init>(MediaCodec.java:1786)
        at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1752)
        at com.genymobile.scrcpy.ScreenEncoder.createCodec(ScreenEncoder.java:137)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:62)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:32)
        at com.genymobile.scrcpy.Server.main(Server.java:133)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:284)
[server] ERROR: Exception on thread Thread[Thread-1,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
        at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:31)
        at com.genymobile.scrcpy.Device.injectInputEvent(Device.java:124)
        at com.genymobile.scrcpy.Controller.injectEvent(Controller.java:194)
        at com.genymobile.scrcpy.Controller.injectKeyEvent(Controller.java:185)
        at com.genymobile.scrcpy.Controller.injectKeycode(Controller.java:189)
        at com.genymobile.scrcpy.Controller.control(Controller.java:60)
        at com.genymobile.scrcpy.Server$1.run(Server.java:45)
        at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:29)
        ... 7 more
Caused by: java.lang.RuntimeException: Bad file descriptor
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(Binder.java:748)
        at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:625)
        ... 9 more
INFO: Initial texture: 448x448
Press any key to continue...

When I tried the second time

INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
D:\Downloads\scrcpy-win64-v1.10\scrcpy-server.jar: 1 file pushed. 0.5 MB/s (22546 bytes in 0.044s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: Failed to initialize video/avc, error 0xfffffffe
        at android.media.MediaCodec.native_setup(Native Method)
        at android.media.MediaCodec.<init>(MediaCodec.java:1786)
        at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1752)
        at com.genymobile.scrcpy.ScreenEncoder.createCodec(ScreenEncoder.java:137)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:62)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:32)
        at com.genymobile.scrcpy.Server.main(Server.java:133)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:284)
INFO: Initial texture: 448x448
Press any key to continue...
@rom1v
Copy link
Collaborator

rom1v commented Aug 15, 2019

Kind of similar to #407 and #82

Indeed, it seems the very same problem: #82 (comment)

@yingding
Copy link

yingding commented Apr 20, 2020

It would be really nice to have Wear OS support and super helpful to scrcrp two devices.

I am using bluetooth to forward the Wear OS through Pixel Phone to scrcpy. It would be fantastic to have phone screen and Wear OS screen show in my PC at the same time for integrated Apps demo.

From Device Huawei Watch 2 and Wear OS 2.14 , Android OS 8.0.0 got the following error two.

scrcpy -s 127.0.0.1:4444 
2020-04-20 22:03:31.508 scrcpy[76556:147109] INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
/usr/local/Cellar/scrcpy/1.12.1/share/scrcpy/scrcpy-serve... file pushed, 0 skipped. 0.1 MB/s (26202 bytes in 0.201s
adb: error: more than one device/emulator
2020-04-20 22:03:33.315 scrcpy[76556:147109] ERROR: "adb reverse" returned with value 1
2020-04-20 22:03:33.315 scrcpy[76556:147109] WARN: 'adb reverse' failed, fallback to 'adb forward'
27183
2020-04-20 22:03:36.681 scrcpy[76556:147109] INFO: Initial texture: 384x384
[server] ERROR: Exception on thread Thread[main,5,main]2020-04-20 22:03:37.520 scrcpy[76556:147109] WARN: Device disconnected
kaukura:~ yingding$ scrcpy -s 127.0.0.1:4444 
2020-04-20 22:07:18.632 scrcpy[76564:147978] INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
/usr/local/Cellar/scrcpy/1.12.1/share/scrcpy/scrcpy-serve... file pushed, 0 skipped. 0.1 MB/s (26202 bytes in 0.231s
adb: error: more than one device/emulator
2020-04-20 22:07:20.535 scrcpy[76564:147978] ERROR: "adb reverse" returned with value 1
2020-04-20 22:07:20.535 scrcpy[76564:147978] WARN: 'adb reverse' failed, fallback to 'adb forward'
27183
2020-04-20 22:07:23.792 scrcpy[76564:147978] INFO: Initial texture: 384x384
[server] ERROR: Exception on thread Thread[main,5,main]2020-04-20 22:07:24.690 scrcpy[76564:147978] WARN: Device disconnected

@rom1v rom1v closed this as completed May 24, 2020
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

3 participants