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

Scrcpy mirror window not coming #921

Closed
wilddeath1 opened this issue Nov 9, 2019 · 50 comments
Closed

Scrcpy mirror window not coming #921

wilddeath1 opened this issue Nov 9, 2019 · 50 comments

Comments

@wilddeath1
Copy link

All command runs as usual but the window that mirror phone screen does not comes

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

Which device? Which version on which platform?

Are there errors in adb logcat when you start?

Does screenrecord work?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

@wilddeath1
Copy link
Author

Device: Realme 3 pro
Platform: Android
Version: 9 pie

  • It was working fine before last update of my phone, two days ago I got an update and after that the the stop working.
    15732873530083624196524107936219

  • All command runs well but the mirroring window doesn't opens.

  • I tried with my second phone (realme 3 ) and it work on that

@wilddeath1
Copy link
Author

And when I type the screen recording command you mentioned above this happens.
15732879312595453617217394314925
Please help

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

Please copy-paste the text (surrounded by ```) instead of posting screenshots, so that it can be searched.

Device: Realme 3 pro

https://twitter.com/DeathRaiderPro/status/1192859167062552576

What about adb logcat when you start scrcpy?

@wilddeath1
Copy link
Author

wilddeath1 commented Nov 9, 2019

C:\mirror>cd c:\mirror
C:\mirror>adb devices
List of devices attached
d9a7f698        device
C:\mirror>scrcpy
scrcpy-server.jar: 1 file pushed. 0.3 MB/s (19342 bytes in 0.054s)
INFO: Initial texture: 1080x2336

And how to get my Twitter post?

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

In a separate terminal, execute adb logcat.
Then start scrcpy while adb logcat is running. Are there relevant error messages?

And how to get my Twitter post?

Was it your tweet? If yes, what did the support answer?

@wilddeath1
Copy link
Author

I didn't understand it 100% but it typed adb logcat in one cmd window then may lines were written with time I really don't understand meaning of that lines

And then I start scrcpy and I didn't notice anything

And about Twitter, yes it's my tweet and they replied sorry for the inconvenience please contact to your nearby customer care service centre

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

adb logcat -c to clean the logcat history.
Then adb logcat, start scrcpy, and copy paste the content here.

And about Twitter, yes it's my tweet and they replied sorry for the inconvenience please contact to your nearby customer care service centre

😄

@wilddeath1
Copy link
Author

wilddeath1 commented Nov 9, 2019

Unable to copy because cmd types so many command and very fast but still I tried please have a look

C:\mirror>adb logcat -c

C:\mirror>adb logcat
--------- beginning of main
11-09 16:45:49.249 14032 14032 I OppoClearManager: OKillerAppService: OppoClearSystemService onStartCommand action: oppo.intent.action.REQUEST_SMART_CLEAR_DELAY
--------- beginning of system
11-09 16:45:49.300  1725  7186 V ActivityManager: getAllTopPkgName 0 com.oppo.launcher
11-09 16:45:49.304 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 16:45:49.315  2818  2852 D Launcher.LauncherProvider: call method = requestGetWidgetPackageName, arg = null, extras = null
11-09 16:45:49.332  3772 19544 I Authzen : [DeviceStateSyncManager] The server is in sync with current state. Nothing to do
11-09 16:45:49.334  1725  1802 I ActivityManager: Start proc 19545:com.google.android.apps.maps/u0a107 for broadcast com.google.android.apps.maps/com.google.android.apps.gmm.transit.TransitStationService
11-09 16:45:49.337 19545 19545 E droid.apps.map: Not starting debugger since process cannot load the jdwp agent.
11-09 16:45:49.354  1725  4034 D DEBUG_VISIBILITY: mOccluded:false lastOccluded:false
11-09 16:45:49.367 19545 19557 I droid.apps.map: The ClassLoaderContext is a special shared library.
11-09 16:45:49.403 19545 19545 I droid.apps.map: The ClassLoaderContext is a special shared library.
11-09 16:45:49.535 19545 19545 W droid.apps.map: JIT profile information will not be recorded: profile file does not exits.
11-09 16:45:49.555 19545 19545 I Perf    : Connecting to perf service.
11-09 16:45:49.651 19545 19545 D Bard_Injector: isFlipFontUsed = false
11-09 16:45:49.717 19545 19566 I Adreno  : QUALCOMM build                   : d0827cb, Ifb6a96a2c0
11-09 16:45:49.717 19545 19566 I Adreno  : Build Date                       : 03/11/19
11-09 16:45:49.717 19545 19566 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.02
11-09 16:45:49.717 19545 19566 I Adreno  : Local Branch                     :
11-09 16:45:49.717 19545 19566 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.7.8.R3.09.00.00.539.009
11-09 16:45:49.717 19545 19566 I Adreno  : Remote Branch                    : NONE
11-09 16:45:49.717 19545 19566 I Adreno  : Reconstruct Branch               : NOTHING
11-09 16:45:49.717 19545 19566 I Adreno  : Build Config                     : S P 6.0.7 AArch64
11-09 16:45:49.727 19545 19566 I Adreno  : PFP: 0x016ee180, ME: 0x00000000
11-09 16:45:49.737 19545 19566 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1
11-09 16:45:49.941  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:49.941  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:49.974 19545 19579 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:49.986 19545 19579 I chatty  : uid=10107(com.google.android.apps.maps) Sensors identical 25 lines
11-09 16:45:49.987 19545 19579 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:49.989 19545 19579 E CheckPermission: _bluetooth code = 1
11-09 16:45:50.076 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.081 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.081 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.085  1725  8602 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.088 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.092  3772  4021 I PeopleChimeraService: onService. callbacks = aamv@eb54131, request = com.google.android.gms.common.internal.GetServiceRequest@9efe016
11-09 16:45:50.093 19545 19587 W droid.apps.map: Unsupported class loader
11-09 16:45:50.095 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.102  3191  6667 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_IDS Ids=[atn_geofence_request_id], packageName=com.google.android.apps.maps]
11-09 16:45:50.105 19545 19587 W droid.apps.map: Skipping duplicate class check due to unsupported classloader
11-09 16:45:50.116  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.117  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.139  1725  4921 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.142  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.142  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.146  1725  4034 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.147  1725  4034 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.171 19545 19587 I DynamiteLoaderV2: [71] Measurementdynamite
11-09 16:45:50.177 19545 19587 W droid.apps.map: Unsupported class loader
11-09 16:45:50.178  1725  5210 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.179  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.179  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.194 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.198 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.213  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.213  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.283 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.285 19545 19574 I chatty  : uid=10107(com.google.android.apps.maps) GoogleApiHandle identical 1 line
11-09 16:45:50.286 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.295  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.295  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.313  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.317 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.318  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.330  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.348  3191  3207 W ProviderHelper: Unknown dynamite feature providerinstaller
11-09 16:45:50.354  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.354  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.361 19545 19573 I droid.apps.map: The ClassLoaderContext is a special shared library.
11-09 16:45:50.363 19545 19573 I chatty  : uid=10107(com.google.android.apps.maps) DefaultPool8 identical 1 line
11-09 16:45:50.366 19545 19573 I droid.apps.map: The ClassLoaderContext is a special shared library.
11-09 16:45:50.390 19545 19573 V NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
11-09 16:45:50.397  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.397  3191  3191 W ChimeraUtils: Non Chimera context
11-09 16:45:50.404  3772  3804 W gle.android.gm: Couldn't lock the profile file /data/user/0/com.google.android.gms/cache/oat/1571257279724.jar.cur.prof: Failed to open file '/data/user/0/com.google.android.gms/cache/oat/1571257279724.jar.cur.prof': No such file or directory
11-09 16:45:50.404  3772  3804 W gle.android.gm: Could not forcefully load profile /data/user/0/com.google.android.gms/cache/oat/1571257279724.jar.cur.prof
11-09 16:45:50.405  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.412  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.420 19545 19573 D NetworkSecurityConfig: No Network Security Config specified, using platform default
11-09 16:45:50.422 19545 19573 I ProviderInstaller: Installed default security provider GmsCore_OpenSSL
11-09 16:45:50.427  3191  3191 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
11-09 16:45:50.433  1725  4921 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.434  1725  5210 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.435  1725  8602 D NotificationService: onTransact--cnms--code:7,flags:16
11-09 16:45:50.444 19545 19573 I DynamiteLoaderV2: [71] Cronetdynamite
11-09 16:45:50.445 19545 19573 W droid.apps.map: Unsupported class loader
11-09 16:45:50.448 19545 19574 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:50.501  1725  5210 D ConnectivityService: requestNetwork for uid/pid:10107/19545 NetworkRequest [ TRACK_DEFAULT id=295, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted:  Uid: 10107] ]
11-09 16:45:50.508 19545 19573 I cr_CronetLibraryLoader: Cronet version: 76.0.3809.111, arch: aarch64
11-09 16:45:50.518  1725  2341 D Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=295, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted:  Uid: 10107] ] with score 10
11-09 16:45:50.518  1725  2168 D WIFI_UT : got request NetworkRequest [ TRACK_DEFAULT id=295, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted:  Uid: 10107] ] with score 10
11-09 16:45:50.518  2780  2780 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=295, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted:  Uid: 10107] ] with score 10
11-09 16:45:50.519  1725  2168 D WIFI    : got request NetworkRequest [ TRACK_DEFAULT id=295, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted:  Uid: 10107] ] with score 10
11-09 16:45:50.520  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 1
11-09 16:45:50.522  2976  2976 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1642 length=24
11-09 16:45:50.524  2976  3007 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1642 error: 0length=0
11-09 16:45:50.524  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 2
11-09 16:45:50.529  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 1
11-09 16:45:50.531  2976  3007 I QcrilOemhookMsgTunnel: [0]processOemHookIndication length=28
11-09 16:45:50.531  2976  2976 I QcrilOemhookMsgTunnel: [1]invokeOemRilRequestRaw: serial=1643 length=24
11-09 16:45:50.531  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 0
11-09 16:45:50.534  2976  3007 I QcrilOemhookMsgTunnel: [1]processOemHookResponse serial no: 1643 error: 0length=0
11-09 16:45:50.535  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 2
11-09 16:45:50.537  2976  3007 I QcrilOemhookMsgTunnel: [1]processOemHookIndication length=28
11-09 16:45:50.537  2976  2976 D QcrilMsgTunnelIfaceManager: handleMessage what = 0
11-09 16:45:50.567 19545 19598 I FA      : App measurement is starting up, version: 19003
11-09 16:45:50.568 19545 19598 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
11-09 16:45:50.568 19545 19598 I FA      : To enable faster debug mode event logging run:
11-09 16:45:50.568 19545 19598 I FA      :   adb shell setprop debug.firebase.analytics.app com.google.android.apps.maps
11-09 16:45:50.643 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:51.558   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
11-09 16:45:51.558   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found
11-09 16:45:51.558   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
11-09 16:45:51.558   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
11-09 16:45:52.562 19545 19545 E Parcel  : Reading a NULL string not supported here.
11-09 16:45:52.573  3191  3206 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_IDS Ids=[atn_geofence_request_id], packageName=com.google.android.apps.maps]
11-09 16:45:53.275 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 16:45:54.978 23155 23190 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
11-09 16:45:55.024  1725  1725 V SettingsProvider: Notifying for 0: content://settings/system/oppo_data_traffic_used
11-09 16:45:57.022  1725  5204 D OsAgent : Action Battery changed
11-09 16:45:57.022  1725  5204 D OsAgent : Battery::Level - 100 Scale - 100Pct - 100
11-09 16:45:57.029   784   784 V LocSvc_HIDL_IzatSubscription: [batteryLevelUpdate][772] [HS] <<<<= [HC]
11-09 16:45:57.274 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 16:45:57.455   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
11-09 16:45:57.455   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found
11-09 16:45:57.455   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
11-09 16:45:57.455   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
11-09 16:45:57.948  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [3 3]
11-09 16:45:57.948  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:3,slotId:0
11-09 16:45:57.948  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:22250188
11-09 16:45:59.824 15303 15613 E Parcel  : Reading a NULL string not supported here.
11-09 16:46:00.966  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [3 3]
11-09 16:46:00.966  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:3,slotId:0
11-09 16:46:00.966  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:22253206
11-09 16:46:01.281 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 16:46:03.359   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
11-09 16:46:03.360   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found
11-09 16:46:03.360   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
11-09 16:46:03.360   703   730 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
11-09 16:46:03.975  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [3 3]
11-09 16:46:03.975  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:3,slotId:0
11-09 16:46:03.975  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:22256215
11-09 16:46:04.442 19670 19670 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
11-09 16:46:04.629 19670 19670 E libc    : Access denied finding property "ro.vendor.at_library"
11-09 16:46:04.641 19670 19670 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
11-09 16:46:04.662 19670 19670 I app_process: Thread[1,tid=19670,Native,Thread*=0x7c87e14c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 16:46:04.663 19670 19670 D MtpDeviceJNI: register_android_mtp_MtpDevice
11-09 16:46:04.663 19670 19670 I app_process: Thread[1,tid=19670,Native,Thread*=0x7c87e14c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 16:46:04.663 19670 19670 I app_process: Thread[1,tid=19670,Native,Thread*=0x7c87e14c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 16:46:04.665 19670 19670 I MediaCodec: CreateByType(), mime = video/avc, encoder = 1
11-09 16:46:04.669 19670 19670 I MediaCodec: new MediaCodec()
11-09 16:46:04.671 19670 19670 I ACodec  : new ACodec()
11-09 16:46:04.672 19670 19681 I ACodec  : onAllocateComponent()
11-09 16:46:04.684 19670 19681 I OMXClient: IOmx service obtained
11-09 16:46:04.686  1188  2586 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in omx@1.0-service process
11-09 16:46:04.701   787   847 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
11-09 16:46:04.702  1188  2586 I OMX-VENC: Video encode perflock acquired,handle=2119
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInstance: Enter
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInstance: Enter
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInstance: Enter
11-09 16:46:04.702  1188  2586 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
11-09 16:46:04.709  1188  2586 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
11-09 16:46:04.711 19670 19681 I ACodec  : Successfully allocate component [OMX.qcom.video.encoder.avc]
11-09 16:46:04.718 19670 19670 I MediaCodec: configure format is:{color-format=2130708361, i-frame-interval=10, mime=video/avc, width=1080, bitrate=8000000, frame-rate=60, repeat-previous-frame-after=100000, height=2336}
11-09 16:46:04.719 19670 19670 I MediaCodec: configure()
11-09 16:46:04.719 19670 19670 I MediaCodec: Video encode Width is = 1080 ,Height = 2336 ,isEncoder = 1 ,videobitrate = 8000000
11-09 16:46:04.719 19670 19681 I ACodec  : configureCodec() mime = video/avc
11-09 16:46:04.720 19670 19681 D IAtlas  : IAtlas::init CallingPid 19670
11-09 16:46:04.721 19670 19681 D IAtlas  : IAtlas::init this 0x7c8144a1c0
11-09 16:46:04.721   807   807 E MMListParser: open file /proc/19670/cmdline err 13
11-09 16:46:04.721 19670 19681 D ACodec  : INFO:(null)
11-09 16:46:04.721  1188 21835 E OMX-VENC: Enable/Disable allocate-native-handle allowed only in secure session
11-09 16:46:04.721  1188 21835 E OMXNodeInstance: setParameter(0xe776f884:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
11-09 16:46:04.721  1188 21835 E OMX-VENC: set_parameter: metamode is valid for input port only
11-09 16:46:04.721  1188 21835 W OMXNodeInstance: [0xe776f884:qcom.encoder.avc] component does not support metadata mode; using fallback
11-09 16:46:04.722 19670 19681 I ExtendedACodec: setupVideoEncoder()
11-09 16:46:04.722 19670 19681 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
11-09 16:46:04.723 19670 19681 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
11-09 16:46:04.723 19670 19681 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
11-09 16:46:04.723 19670 19681 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
11-09 16:46:04.724 19670 19681 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
11-09 16:46:04.724 19670 19681 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
11-09 16:46:04.724 19670 19681 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
11-09 16:46:04.725 19670 19681 W OMXUtils: do not know color format 0x7f000789 = 2130708361
11-09 16:46:04.726  1188 21835 E OMX-VENC: venc_dev: Unsupported eColorFormat 0x7f000789
11-09 16:46:04.729 19670 19681 D MMListParser: onlineVersion -1 defaultVersion 20190822
11-09 16:46:04.730  1188 21835 I OMX-VENC: venc_dev: v4l2 profile : 1 flags : 131095
11-09 16:46:04.730  1188 21835 I OMX-VENC: venc_dev: v4l2 profile : 0 flags : 131095
11-09 16:46:04.731  1188 21835 I OMX-VENC: venc_dev: v4l2 profile : 2 flags : 131095
11-09 16:46:04.731  1188 21835 I OMX-VENC: venc_dev: v4l2 profile : 17 flags : 131095
11-09 16:46:04.731  1188 21835 I OMX-VENC: venc_dev: v4l2 profile : 4 flags : 131095
11-09 16:46:04.731 19670 19681 I ACodec  : setupAVCEncoderParameters with [profile: High] [level: Level1]
11-09 16:46:04.732  1188 21835 E OMX-VENC: Failed to update the profile_level
11-09 16:46:04.733 19670 19681 I ACodec  : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
11-09 16:46:04.733 19670 19681 I ACodec  : setupVideoEncoder succeeded
11-09 16:46:04.733 19670 19681 I ExtendedACodec: [OMX.qcom.video.encoder.avc] configure, AMessage : AMessage(what = 'conf', target = 1) = {
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t color-format = 2130708361
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t i-frame-interval = 10
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   string mime = "video/avc"
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t width = 1080
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t bitrate = 8000000
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t frame-rate = 60
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int64_t repeat-previous-frame-after = 100000
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t height = 2336
11-09 16:46:04.733 19670 19681 I ExtendedACodec:   int32_t encoder = 1
11-09 16:46:04.733 19670 19681 I ExtendedACodec: }
11-09 16:46:04.734 19670 19681 W OMXUtils: do not know color format 0x7f000789 = 2130708361
11-09 16:46:04.734  1188 21835 E OMX-VENC: ERROR: unsupported index 1870659589
11-09 16:46:04.734  1188 21835 E OMXNodeInstance: getConfig(0xe776f884:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
11-09 16:46:04.752  1188  2586 E libc    : Access denied finding property "persist.report.tid"
11-09 16:46:04.754  1188  2586 E OMX-VENC: Does not handle dataspace request
11-09 16:46:04.754  1188  2586 E OMXNodeInstance: getConfig(0xe776f884:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
11-09 16:46:04.754  1188  2586 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
11-09 16:46:04.756  1188  2586 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
11-09 16:46:04.759 19670 19670 E Surface : Could not create instance of Surface from IGraphicBufferProducer.
11-09 16:46:04.760 19670 19670 E Surface : java.lang.NullPointerException: Attempt to read from field 'android.os.MessageQueue android.os.Looper.mQueue' on a null object reference
11-09 16:46:04.760 19670 19670 E Surface :      at android.os.Handler.<init>(Handler.java:234)
11-09 16:46:04.760 19670 19670 E Surface :      at android.os.Handler.<init>(Handler.java:141)
11-09 16:46:04.760 19670 19670 E Surface :      at com.realme.darkmode.DarkModeManager.<init>(DarkModeManager.java:149)
11-09 16:46:04.760 19670 19670 E Surface :      at com.realme.darkmode.DarkModeManager.getInstance(DarkModeManager.java:186)
11-09 16:46:04.760 19670 19670 E Surface :      at android.graphics.BaseCanvas.<init>(BaseCanvas.java:68)
11-09 16:46:04.760 19670 19670 E Surface :      at android.graphics.Canvas.<init>(Canvas.java:93)
11-09 16:46:04.760 19670 19670 E Surface :      at android.view.Surface$CompatibleCanvas.<init>(Surface.java:849)
11-09 16:46:04.760 19670 19670 E Surface :      at android.view.Surface$CompatibleCanvas.<init>(Surface.java:849)
11-09 16:46:04.760 19670 19670 E Surface :      at android.view.Surface.<init>(Surface.java:110)
11-09 16:46:04.760 19670 19670 E Surface :      at android.media.MediaCodec.createInputSurface(Native Method)
11-09 16:46:04.760 19670 19670 E Surface :      at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:63)
11-09 16:46:04.760 19670 19670 E Surface :      at com.genymobile.scrcpy.Server.scrcpy(Server.java:22)
11-09 16:46:04.760 19670 19670 E Surface :      at com.genymobile.scrcpy.Server.main(Server.java:78)
11-09 16:46:04.760 19670 19670 E Surface :      at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
11-09 16:46:04.760 19670 19670 E Surface :      at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:415)
11-09 16:46:04.768 19670 19670 I MediaCodec: Video start()
11-09 16:46:04.777   759   759 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x7887e2c100, 8)
11-09 16:46:04.822   759   759 I chatty  : uid=1000(system) allocator@1.0-s identical 7 lines
11-09 16:46:04.824   759   759 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x7887e2c100, 8)
11-09 16:46:04.829   759   759 W AshmemAllocator: ashmem_create_region(2541568) returning hidl_memory(0x7887e2c100, 2541568)
11-09 16:46:04.836   759   759 I chatty  : uid=1000(system) allocator@1.0-s identical 4 lines
11-09 16:46:04.838   759   759 W AshmemAllocator: ashmem_create_region(2541568) returning hidl_memory(0x7887e2c100, 2541568)
11-09 16:46:04.842  1188 19685 E OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
11-09 16:46:04.842  1188 19685 E OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
11-09 16:46:05.287 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 16:46:05.678  1030  1066 D         : power_monitor cpu0-gold-usr: open fail -1
11-09 16:46:05.820  1030  1064 D         : thermal_monitor msm_therm: open fail -1
11-09 16:46:05.821  1030  1064 D         : thermal_monitor gpu0-usr: open fail -1
11-09 16:46:05.821  1030  1064 D         : thermal_monitor cpu0-gold-usr: open fail -1
11-09 16:46:06.529  1725  2671 W Watchdog: !@WatchDog_918
11-09 16:46:07.028 23155 23190 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

> 11-09 16:46:04.760 19670 19670 E Surface : java.lang.NullPointerException: Attempt to read from field 'android.os.MessageQueue android.os.Looper.mQueue' on a null object reference
> 11-09 16:46:04.760 19670 19670 E Surface :      at android.os.Handler.<init>(Handler.java:234)
> 11-09 16:46:04.760 19670 19670 E Surface :      at android.os.Handler.<init>(Handler.java:141)
> 11-09 16:46:04.760 19670 19670 E Surface :      at com.realme.darkmode.DarkModeManager.<init>(DarkModeManager.java:149)
> 11-09 16:46:04.760 19670 19670 E Surface :      at com.realme.darkmode.DarkModeManager.getInstance(DarkModeManager.java:186)

Oh, that's a problem with their "dark mode manager". There is a similar problem on Meizu (#240).

@wilddeath1
Copy link
Author

Great sir you find the problem but how to solve this please provide solution

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

In your scrcpy 1.10 folder, could you try to replace scrcpy-server.jar by this one:
scrcpy-server.jar
SHA256: bdfc34d013250dd7c388a7733ec7f3e1b9df0e7b54dfbbae8a6741259c1c17dd

@see-see
Copy link

see-see commented Nov 9, 2019

I gave it a try but still the same issue..

@wilddeath1
Copy link
Author

wilddeath1 commented Nov 9, 2019

After replacing the file and running the scrcpy this is the output

C:\mirror>cd c:\mirror

C:\mirror>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
d9a7f698        device


C:\mirror>scrcpy
scrcpy-server.jar: 1 file pushed. 5.6 MB/s (87154 bytes in 0.015s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: Expecting 6 parameters
        at com.genymobile.scrcpy.Server.createOptions(Server.java:71)
        at com.genymobile.scrcpy.Server.main(Server.java:132)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:415)``

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

java.lang.IllegalArgumentException: Expecting 6 parameters

Did you replace the file in scrcpy v1.10? This error happens when the server and the client are from different versions.

@wilddeath1
Copy link
Author

I replace the files from the folder where I have paste the ADB driver and the scrcpy files

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

But what is your scrcpy version?

 scrcpy --version

From the screenshots, it seems you don't use v1.10 (the last version).

where I have paste the ADB driver

😕 you have nothing to paste, just download the release, everything necessary is included:
https://github.com/Genymobile/scrcpy#windows

@wilddeath1
Copy link
Author

Ok let me try this, by the way I think the version I'm using is v1.2

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

the version I'm using is v1.2

😱

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

@see-see

I gave it a try but still the same issue..

Could you try this new one, please?
scrcpy-server.jar
SHA256: ff53b39408503387bc36a3a470080989fc2167e0c7bf541a77920524f7201321

@see-see
Copy link

see-see commented Nov 9, 2019

The link is broken. Cant download.

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

The link is broken.

Oops, fixed.

@see-see
Copy link

see-see commented Nov 9, 2019

Hey Romain, glad its working again!!! Thanks was able to download and run successfully. I had made dark mode option off earlier. It ran perfectly. And even worked well with dark mode on. Attached log for your ref. Kindly let me know, if I have to make any further changes or I can use this scrcpy-server.jar
SHA256: ff53b39408503387bc36a3a470080989fc2167e0c7bf541a77920524f7201321...?
new 3.txt

@wilddeath1
Copy link
Author

I downloaded the last release replace it with my previous version and then I run scrcpy then this code comes
INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy> C:\mirror\scrcpy-server.jar: 1 file pushed. 2.2 MB/s (22546 bytes in 0.010s) INFO: Initial texture: 1080x2336

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

@see-see So the second scrcpy-server.jar (ff53b39408503387bc36a3a470080989fc2167e0c7bf541a77920524f7201321) works?

@wilddeath1 Could you test the second one, then, please? #921 (comment)

@see-see
Copy link

see-see commented Nov 9, 2019

Yes Romain, (ff53b39408503387bc36a3a470080989fc2167e0c7bf541a77920524f7201321 ) worked for me..

Just for info: I am using platform tools. I replaced the files from new version of scrcpy(v1.10) to platform tools. Replaced the scrcpy-server.jar to the latest one shared by @rom1v .. And its working smoothly now...

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

I replaced the files from new version of scrcpy(v1.10) to platform tools

Why did you do that? (adb is included in the windows release)

I'm asking because I have already seen tutorials to use scrcpy doing that, but I don't know why.

@see-see
Copy link

see-see commented Nov 9, 2019

Yes, it works either way... I had a cmd shortcut linked up to point adb in plat form tools, so I directly copied all files there..

@wilddeath1
Copy link
Author

Please provide solution for me

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

@wilddeath1 it's the same problem, so it should be the same solution. Did you test with the second server as I suggested? #921 (comment)

@wilddeath1
Copy link
Author

I download and tried new v1.10 but didn't work

I replaced it with new server nothing happened but every time I run scrcpy my phone screen turn on

When I run scrcpy this comes

INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy> C:\mirror\scrcpy-server.jar: 1 file pushed. 6.9 MB/s (87154 bytes in 0.012s) INFO: Initial texture: 1080x2336

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

@wilddeath1

Just to be absolutely sure, you replaced scrcpy-server.jar from v1.10 by this one: #921 (comment)
Not this one: #921 (comment)
?

If it does not work, please post the logs for adb logcat.

@wilddeath1
Copy link
Author

wilddeath1 commented Nov 9, 2019

Aren't both the above files are same? I mean recheck your message both are #921 (comment)

@wilddeath1
Copy link
Author

wilddeath1 commented Nov 9, 2019

Didn't work, here is adb logcat

C:\mirror>adb logcat -c

C:\mirror>adb logcat
--------- beginning of main
11-09 20:28:28.461  1725  5204 D OsAgent : Action Battery changed
11-09 20:28:28.461  1725  5204 D OsAgent : Battery::Level - 100 Scale - 100Pct - 100
11-09 20:28:28.462   784   784 V LocSvc_HIDL_IzatSubscription: [batteryLevelUpdate][772] [HS] <<<<= [HC]
11-09 20:28:28.579  2780  2780 E m.android.phon: Invalid ID 0x00000000.
11-09 20:28:28.579  2780  2780 D OppoTelephonyFunction: LONG_NAME_OPERATOR:405870long name:Jio 4G
11-09 20:28:28.591  1725  2185 D OppoSlaNetlinkHelper: MSG_SWITCH_STATE_CHANGE
11-09 20:28:28.591  1725  2185 D OppoSlaNetlinkHelper: After sendSwitchStateToKernel:enable=false result=true
11-09 20:28:28.594 13752 13752 I PhoneStatusBarView: NotificationIconUpdate onReceive: type: volte visible=true
11-09 20:28:28.595 13752 13752 I PhoneStatusBarView: NotificationIconUpdate onReceive: type: null visible=false
11-09 20:28:28.605  2780  2780 D ServiceStateProvider: subId=2
11-09 20:28:28.610  2780  2780 D NetworkDiagnoseService: onServiceStateChanged voiceState=0 dataState=0[0]
11-09 20:28:28.610  2780  2780 D NetworkDiagnoseService: ServiceState..mSimId0;serviceState:{mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=2484, duplexMode()=1, mCellBandwidths=[5000], mVoiceRoamingType=home, mDataRoamingType=home, mVoiceOperatorAlphaLong=Jio 4G, mVoiceOperatorAlphaShort=Jio 4G, mDataOperatorAlphaLong=Jio 4G, mDataOperatorAlphaShort=Jio 4G, isManualNetworkSelection=false(automatic), mRilVoiceRadioTechnology=14(LTE), mRilDataRadioTechnology=14(LTE), mCssIndicator=supported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, mIsDataRoamingFromRegistration=false, mIsUsingCarrierAggregation=false, mLteEarfcnRsrpBoost=0, mNetworkRegistrationStates=[NetworkRegistrationState{transportType=1 domain=PS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@a685815 cellIdentity=CellIdentityLte:{ mCi=811570 mPci=440 mTac=16 mEarfcn=2484 mBandwidth=5000 mMcc=405 mMnc=870 mAlphaLong=Jio 4G mAlphaShort=Jio 4G} voiceSpecificStates=null dataSpecificStates=DataSpecificRegistrationStates { mMaxDataCalls=20}}, NetworkRegistrationState{transportType=1 domain=CS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@e82172a cellIdentity=CellIdentityLte:{ mCi=811570 mPci=440 mTac=16 mEarfcn=2484 mBandwidth=5000 mMcc=405 mMnc=870 mAlphaLong=Jio 4G mAlphaShort=Jio 4G} voiceSpecificStates=VoiceSpecificRegistrationStates { mCssSupported=true mRoamingIndicator=1 mSystemIsInPrl=-1 mDefaultRoamingIndicator=-1} dataSpecificStates=null}]}
11-09 20:28:28.610 25077 25077 D CellBroadcastReceiver: onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
11-09 20:28:28.610 25077 25077 D CBReceiverApp: isInBlackListRegion currentRegion=IN
11-09 20:28:28.612 25077 25077 I CBReceiverApp: isHasCellBroadcast: true
11-09 20:28:28.612 25077 25077 D CellBroadcastReceiver: onReceiveWithPrivilege(), action: android.intent.action.SERVICE_STATE
11-09 20:28:28.612 25077 25077 D CellBroadcastReceiver: onReceiveWithPrivilege: ACTION_SERVICE_STATE_CHANGED--> onReceive  newState = 0
11-09 20:28:28.612 25077 25077 D CellBroadcastReceiver: onReceiveWithPrivilege, same state, return.
11-09 20:28:28.628  2780  2780 D CdmaVolteServiceChecker: onReceive, action = android.intent.action.SERVICE_STATE
11-09 20:28:28.628  2780  2780 D CdmaVolteServiceChecker: updateState, checking = false
11-09 20:28:28.629  2780  2780 D CdmaVolteServiceChecker: getMainCapabilitySubId = 2
11-09 20:28:28.629  2780  2780 D CdmaVolteServiceChecker: getSecondaryCapabilitySubId = 2147483644
11-09 20:28:28.632  2780  2780 D CdmaVolteServiceChecker: shouldShowVolteAlert, mSubIdNeedCheck = -1, mSlotIdNeedCheck = -1
11-09 20:28:28.633 13752 13752 I Kgd.StatusView: hasSimInfo, simId = 0, simInfoString = JIO
11-09 20:28:28.633 13752 13752 I Kgd.StatusView: hasSimInfo, simId = 1, simInfoString = No SIM
11-09 20:28:28.716  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:28.717  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:29.436 15709 15712 E adbd    : Could not register mDNS service (-65563).
11-09 20:28:29.473  3108  3228 E Parcel  : Reading a NULL string not supported here.
11-09 20:28:30.657 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 20:28:30.717  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:30.718  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:30.904  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [4 4]
11-09 20:28:30.904  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:4,slotId:0
11-09 20:28:30.904  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:40725727
11-09 20:28:32.721  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:32.722  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:33.145 23155 23190 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
11-09 20:28:33.351  1030  1064 D         : thermal_monitor msm_therm: open fail -1
11-09 20:28:33.351  1030  1064 D         : thermal_monitor gpu0-usr: open fail -1
11-09 20:28:33.351  1030  1066 D         : power_monitor cpu0-gold-usr: open fail -1
11-09 20:28:33.351  1030  1064 D         : thermal_monitor cpu0-gold-usr: open fail -1
11-09 20:28:33.916  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [4 4]
11-09 20:28:33.916  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:4,slotId:0
11-09 20:28:33.916  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:40728739
--------- beginning of system
11-09 20:28:34.242  1725  2671 W Watchdog: !@WatchDog_1330
11-09 20:28:34.657 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 20:28:34.722  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:34.723  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:35.957 15767 15767 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
11-09 20:28:36.035 15767 15767 E libc    : Access denied finding property "ro.vendor.at_library"
11-09 20:28:36.040 15767 15767 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
11-09 20:28:36.049 15767 15767 I app_process: Thread[1,tid=15767,Native,Thread*=0x7439214c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 20:28:36.049 15767 15767 D MtpDeviceJNI: register_android_mtp_MtpDevice
11-09 20:28:36.049 15767 15767 I app_process: Thread[1,tid=15767,Native,Thread*=0x7439214c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 20:28:36.049 15767 15767 I app_process: Thread[1,tid=15767,Native,Thread*=0x7439214c00,peer=0x12c01ef8,"main"] recursive attempt to load library "/system/lib64/libmedia_jni.so"
11-09 20:28:36.050 15767 15767 I MediaCodec: CreateByType(), mime = video/avc, encoder = 1
11-09 20:28:36.052 15767 15767 I MediaCodec: new MediaCodec()
11-09 20:28:36.052 15767 15767 I ACodec  : new ACodec()
11-09 20:28:36.056 15767 15779 I ACodec  : onAllocateComponent()
11-09 20:28:36.058 15767 15779 I OMXClient: IOmx service obtained
11-09 20:28:36.058  1188 21786 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in omx@1.0-service process
11-09 20:28:36.065   787   847 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
11-09 20:28:36.065  1188 21786 I OMX-VENC: Video encode perflock acquired,handle=2589
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInstance: Enter
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInstance: Enter
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInstance: Enter
11-09 20:28:36.065  1188 21786 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
11-09 20:28:36.069  1188 21786 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
11-09 20:28:36.070 15767 15779 I ACodec  : Successfully allocate component [OMX.qcom.video.encoder.avc]
11-09 20:28:36.072 15767 15767 I MediaCodec: configure format is:{color-format=2130708361, i-frame-interval=10, mime=video/avc, width=1080, bitrate=8000000, frame-rate=60, repeat-previous-frame-after=100000, height=2336}
11-09 20:28:36.073 15767 15767 I MediaCodec: configure()
11-09 20:28:36.073 15767 15767 I MediaCodec: Video encode Width is = 1080 ,Height = 2336 ,isEncoder = 1 ,videobitrate = 8000000
11-09 20:28:36.073 15767 15779 I ACodec  : configureCodec() mime = video/avc
11-09 20:28:36.073 15767 15779 D IAtlas  : IAtlas::init CallingPid 15767
11-09 20:28:36.074 15767 15779 D IAtlas  : IAtlas::init this 0x7439234640
11-09 20:28:36.074   807   807 E MMListParser: open file /proc/15767/cmdline err 13
11-09 20:28:36.074 15767 15779 D ACodec  : INFO:(null)
11-09 20:28:36.074  1188  2300 E OMX-VENC: Enable/Disable allocate-native-handle allowed only in secure session
11-09 20:28:36.074  1188  2300 E OMXNodeInstance: setParameter(0xe16abb84:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
11-09 20:28:36.074  1188  2300 E OMX-VENC: set_parameter: metamode is valid for input port only
11-09 20:28:36.074  1188  2300 W OMXNodeInstance: [0xe16abb84:qcom.encoder.avc] component does not support metadata mode; using fallback
11-09 20:28:36.074 15767 15779 I ExtendedACodec: setupVideoEncoder()
11-09 20:28:36.075 15767 15779 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
11-09 20:28:36.075 15767 15779 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
11-09 20:28:36.076 15767 15779 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
11-09 20:28:36.076 15767 15779 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
11-09 20:28:36.077 15767 15779 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
11-09 20:28:36.077 15767 15779 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
11-09 20:28:36.077 15767 15779 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
11-09 20:28:36.078 15767 15779 W OMXUtils: do not know color format 0x7f000789 = 2130708361
11-09 20:28:36.078  1188  2300 E OMX-VENC: venc_dev: Unsupported eColorFormat 0x7f000789
11-09 20:28:36.080 15767 15779 D MMListParser: onlineVersion -1 defaultVersion 20190822
11-09 20:28:36.081  1188  2300 I OMX-VENC: venc_dev: v4l2 profile : 1 flags : 131095
11-09 20:28:36.081  1188  2300 I OMX-VENC: venc_dev: v4l2 profile : 0 flags : 131095
11-09 20:28:36.081  1188  2300 I OMX-VENC: venc_dev: v4l2 profile : 2 flags : 131095
11-09 20:28:36.081  1188  2300 I OMX-VENC: venc_dev: v4l2 profile : 17 flags : 131095
11-09 20:28:36.081  1188  2300 I OMX-VENC: venc_dev: v4l2 profile : 4 flags : 131095
11-09 20:28:36.081 15767 15779 I ACodec  : setupAVCEncoderParameters with [profile: High] [level: Level1]
11-09 20:28:36.082  1188  2300 E OMX-VENC: Failed to update the profile_level
11-09 20:28:36.083 15767 15779 I ACodec  : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
11-09 20:28:36.083 15767 15779 I ACodec  : setupVideoEncoder succeeded
11-09 20:28:36.083 15767 15779 I ExtendedACodec: [OMX.qcom.video.encoder.avc] configure, AMessage : AMessage(what = 'conf', target = 1) = {
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t color-format = 2130708361
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t i-frame-interval = 10
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   string mime = "video/avc"
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t width = 1080
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t bitrate = 8000000
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t frame-rate = 60
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int64_t repeat-previous-frame-after = 100000
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t height = 2336
11-09 20:28:36.083 15767 15779 I ExtendedACodec:   int32_t encoder = 1
11-09 20:28:36.083 15767 15779 I ExtendedACodec: }
11-09 20:28:36.083 15767 15779 W OMXUtils: do not know color format 0x7f000789 = 2130708361
11-09 20:28:36.084  1188  2300 E OMX-VENC: ERROR: unsupported index 1870659589
11-09 20:28:36.084  1188  2300 E OMXNodeInstance: getConfig(0xe16abb84:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
11-09 20:28:36.096  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [4 4]
11-09 20:28:36.096  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:4,slotId:0
11-09 20:28:36.096  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:40730919
11-09 20:28:36.097  1188 21786 E libc    : Access denied finding property "persist.report.tid"
11-09 20:28:36.098  1188 21529 E OMX-VENC: Does not handle dataspace request
11-09 20:28:36.098  1188 21529 E OMXNodeInstance: getConfig(0xe16abb84:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
11-09 20:28:36.098  1188 21529 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
11-09 20:28:36.099  1188 21529 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
11-09 20:28:36.100 15767 15767 E Surface : Could not create instance of Surface from IGraphicBufferProducer.
11-09 20:28:36.100 15767 15767 E Surface : java.lang.NullPointerException: Attempt to read from field 'android.os.MessageQueue android.os.Looper.mQueue' on a null object reference
11-09 20:28:36.100 15767 15767 E Surface :      at android.os.Handler.<init>(Handler.java:234)
11-09 20:28:36.100 15767 15767 E Surface :      at android.os.Handler.<init>(Handler.java:141)
11-09 20:28:36.100 15767 15767 E Surface :      at com.realme.darkmode.DarkModeManager.<init>(DarkModeManager.java:149)
11-09 20:28:36.100 15767 15767 E Surface :      at com.realme.darkmode.DarkModeManager.getInstance(DarkModeManager.java:186)
11-09 20:28:36.100 15767 15767 E Surface :      at android.graphics.BaseCanvas.<init>(BaseCanvas.java:68)
11-09 20:28:36.100 15767 15767 E Surface :      at android.graphics.Canvas.<init>(Canvas.java:93)
11-09 20:28:36.100 15767 15767 E Surface :      at android.view.Surface$CompatibleCanvas.<init>(Surface.java:849)
11-09 20:28:36.100 15767 15767 E Surface :      at android.view.Surface$CompatibleCanvas.<init>(Surface.java:849)
11-09 20:28:36.100 15767 15767 E Surface :      at android.view.Surface.<init>(Surface.java:110)
11-09 20:28:36.100 15767 15767 E Surface :      at android.media.MediaCodec.createInputSurface(Native Method)
11-09 20:28:36.100 15767 15767 E Surface :      at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:74)
11-09 20:28:36.100 15767 15767 E Surface :      at com.genymobile.scrcpy.Server.scrcpy(Server.java:32)
11-09 20:28:36.100 15767 15767 E Surface :      at com.genymobile.scrcpy.Server.main(Server.java:133)
11-09 20:28:36.100 15767 15767 E Surface :      at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
11-09 20:28:36.100 15767 15767 E Surface :      at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:415)
11-09 20:28:36.102 15767 15767 I MediaCodec: Video start()
11-09 20:28:36.106   759   759 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x7887e2c100, 8)
11-09 20:28:36.121   759   759 I chatty  : uid=1000(system) allocator@1.0-s identical 7 lines
11-09 20:28:36.121   759   759 W AshmemAllocator: ashmem_create_region(8) returning hidl_memory(0x7887e2c100, 8)
11-09 20:28:36.124   759   759 W AshmemAllocator: ashmem_create_region(2541568) returning hidl_memory(0x7887e2c100, 2541568)
11-09 20:28:36.127   759   759 I chatty  : uid=1000(system) allocator@1.0-s identical 4 lines
11-09 20:28:36.127   759   759 W AshmemAllocator: ashmem_create_region(2541568) returning hidl_memory(0x7887e2c100, 2541568)
11-09 20:28:36.128  1188 15781 E OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
11-09 20:28:36.128  1188 15781 E OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
11-09 20:28:36.458 27123 27124 E rutils  : releaseProcess gCount = 1
11-09 20:28:36.724  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:36.725  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:38.656 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 20:28:38.728  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:40.730  1725  2168 I chatty  : uid=1000(system) WifiStateMachin identical 2 lines
11-09 20:28:40.730  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:42.658 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 20:28:42.733  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:42.733  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:43.780  2780  2780 I NetworkDiagnoseService: getSignalStrengthLevel: [4 4]
11-09 20:28:43.780  2780  2780 D NetworkDiagnoseService: updateSignalLevel level:4,slotId:0
11-09 20:28:43.780  2780  2780 D NetworkDiagnoseService: mSignalLevelStatis1[level]:40738603
11-09 20:28:44.736  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:44.736  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.
11-09 20:28:45.176 23155 23190 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
11-09 20:28:46.658 13752 14001 D TrafficStatsHelper: transmitted_validWifiData.get(0) = wlan0
11-09 20:28:46.737  1725  2168 E NetworkStatsNative: [1058483] iface is wlan0, use elder API for tcp packets.

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

Aren't both the above files are same? I mean recheck your message both are #921 (comment)

Of course not. Check the comment and URL they point to.

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

Your logcat contains the error fixed by the second server: https://tmp.rom1v.com/scrcpy/issue921/2/scrcpy-server.jar

@Genymobile Genymobile deleted a comment from amanjaymariner Nov 9, 2019
@wilddeath1
Copy link
Author

@rom1v It worked !! Thank you so much Sir 🙂 the last link worked.
Thanks a lot, it mean a lot for me.

@wilddeath1
Copy link
Author

Hi there, I encounter with a issue, the mirroring is lagging too much any solution for that

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

Is it lagging also on your other device, or is it only this one since the update?

Is your computer CPU at 100%?

If you record:

scrcpy --record file.mkv

then play the file (with VLC for example), does it lag?

If you reduce the definition, does it still lag?

scrcpy -m 1920
scrcpy -m 1024

@wilddeath1
Copy link
Author

I didn't tried anything but now it's not lagging only the first match I recorded was lagging, but when I run in game it lose the clearity, and I am recording my Android audio to my PC through aux and I am experiencing some beep and noise any solution for that?

@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

when I run in game it lose the clearity

Read thread #798.

rom1v pushed a commit that referenced this issue Nov 9, 2019
Some devices internally create a Handler when creating an input Surface,
causing an exception:

> Surface: java.lang.RuntimeException: Can't create handler inside
> thread that has not called Looper.prepare()

As a workaround, call Looper.prepareMainLooper() beforehand.

Fixes:
 - <#240>
 - <#921>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v rom1v closed this as completed Nov 9, 2019
@rom1v
Copy link
Collaborator

rom1v commented Nov 9, 2019

However, I still don't understand why the exception does not make the adb connection stop and terminate scrcpy (instead of deadlocking). If I manually throw a RuntimeException from there, everything is stopped as expected. Any idea someone?

@sathyamganesh
Copy link

Device: Realme 3 pro
Platform: Android
Version: 9 pie

  • It was working fine before last update of my phone, two days ago I got an update and after that the the stop working.
    15732873530083624196524107936219
  • All command runs well but the mirroring window doesn't opens.
  • I tried with my second phone (realme 3 ) and it work on that

after latest updation of my realme 3 pro the same problem for scrcpy. Previously it was working fine in the same phone. In my other phones, no problem on scrcpy.

@lupangsogood
Copy link

In your scrcpy 1.10 folder, could you try to replace scrcpy-server.jar by this one:
scrcpy-server.jar
SHA256: bdfc34d013250dd7c388a7733ec7f3e1b9df0e7b54dfbbae8a6741259c1c17dd

Try it Still Error on Realme 3 Pro

@rom1v
Copy link
Collaborator

rom1v commented Nov 19, 2019

@deadshot1301
Copy link

plz someone help me i am using realme 2 device . when i try to mirror my screen with scrcpy it detects my phone but mirroring window doesnt shows up. i tried same with samsung and it worked .

@jelofer
Copy link

jelofer commented Sep 24, 2020

Hi! I also have the same "non-showing problem". I have an Onyx Boox Max 3 with Android version 9 and firmware version 2020-07-14_10-48_2.3.1_8b53f3f and I have tried different versions of scrcpy (v1.10, v1.12 and v1.16), though I cannot see anything in the computer screen. I have no clue about what is happening. Although I cannot get any image in the computer screen, I can send some commands to the E-ink tablet. For instance, I tried to switch off the tablet screen using "scrcpy -S" and it worked (although it rotated the screen 90º).

Thanks in advance for any help that you can provide me!

@Shivamy2
Copy link

Hey Romain, glad its working again!!! Thanks was able to download and run successfully. I had made dark mode option off earlier. It ran perfectly. And even worked well with dark mode on. Attached log for your ref. Kindly let me know, if I have to make any further changes or I can use this scrcpy-server.jar
SHA256: ff53b39408503387bc36a3a470080989fc2167e0c7bf541a77920524f7201321...?
new 3.txt

Hey @see-see How did you turned off the dark mode permanently? I am still not able to run scrcpy on my Realme U1 mobile. Do you have any solution for this?
The version I am using is Scrcpy v1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants