Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.47k stars 10.68k forks source link

scrcpy starts then stops immediately OP8 pro #2575

Open markmn123 opened 3 years ago

markmn123 commented 3 years ago

OS: W10 2004 Oneplus 8 Pro Android 11 scrcpy 1.18

C:\Users\********\Documents\scrcpy-win64-v1.18>scrcpy -V verbose
INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
DEBUG: Using server (portable): C:\Users\*********\Documents\scrcpy-win64-v1.18\scrcpy-server
C:\Users\**********\Documents\scrcpy-win64-v1.18\scrcpy-server: 1 file pushed, 0 skipped. 38.1 MB/s (37330 bytes in 0.001s)
DEBUG: Screensaver enabled
[server] INFO: Device: OnePlus IN2025 (Android 11)
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Controller stopped

C:\Users\**********\Documents\scrcpy-win64-v1.18>[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped

C:\Users\***********\Documents\scrcpy-win64-v1.18>

Also tried using different encoders and resolutions to no avail

C:\Users\*******\Documents\scrcpy-win64-v1.18>scrcpy -V verbose --encoder OMX.google.h264.encoder
INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
DEBUG: Using server (portable): C:\Users\********\Documents\scrcpy-win64-v1.18\scrcpy-server
C:\Users\*********\Documents\scrcpy-win64-v1.18\scrcpy-server: 1 file pushed, 0 skipped. 60.5 MB/s (37330 bytes in 0.001s)
DEBUG: Screensaver enabled
[server] INFO: Device: OnePlus IN2025 (Android 11)
[server] DEBUG: Creating encoder by name: 'OMX.google.h264.encoder'
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Controller stopped

C:\Users\********\Documents\scrcpy-win64-v1.18>[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped

C:\Users\*********\Documents\scrcpy-win64-v1.18>

Any help is greatly appreciated!!!

rom1v commented 3 years ago

Any related error in adb logcat?

markmn123 commented 3 years ago

is there any way to parse relevant info with logcat? i ran the command and got an encyclopedia printed out edit: im on windows so no grep

rom1v commented 3 years ago
adb logcat -c  # clear
scrcpy
adb logcat -d > logcat.txt

Then post the file.

markmn123 commented 3 years ago

I have a snippet of what may or may not be important

08-19 14:00:51.902 19550 19550 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
08-19 14:00:51.902 19550 19550 I scrcpy  : Device: OnePlus IN2025 (Android 11)
08-19 14:00:51.923 19550 19550 I app_process: Thread[1,tid=19550,Native,Thread*=0xb40000788e4297b0,peer=0x12c02be0,"main"] recursive attempt to load library "libmedia_jni.so"
08-19 14:00:51.923 19550 19550 I app_process: Thread[1,tid=19550,Native,Thread*=0xb40000788e4297b0,peer=0x12c02be0,"main"] recursive attempt to load library "libmedia_jni.so"
08-19 14:00:51.923 19550 19550 D MtpDeviceJNI: register_android_mtp_MtpDevice
08-19 14:00:51.923 19550 19550 I app_process: Thread[1,tid=19550,Native,Thread*=0xb40000788e4297b0,peer=0x12c02be0,"main"] recursive attempt to load library "libmedia_jni.so"
08-19 14:00:51.923 19550 19550 I app_process: Thread[1,tid=19550,Native,Thread*=0xb40000788e4297b0,peer=0x12c02be0,"main"] recursive attempt to load library "libmedia_jni.so"
08-19 14:00:51.924 19550 19550 V MediaCodecList: matching 'OMX.qcom.video.encoder.avc'
08-19 14:00:51.924 19550 19550 V MediaCodecList: matching 'c2.android.avc.encoder'
08-19 14:00:51.924 19550 19550 V MediaCodecList: matching 'OMX.google.h264.encoder'
08-19 14:00:51.927 19550 19569 I OMXClient: IOmx service obtained
08-19 14:00:51.927  1391  2857 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in android.hardwar process
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_perf_control_enable value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32: Returning default
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_auto_blur_disable value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32: Returning default
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_linear_color_format value: 0
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_bitrate_savings_enable value: 3
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInstance: Enter
08-19 14:00:51.928  1391  2857 D PlatformConfig: getInt32 Config name: vidc_enc_quality_boost_enable value: 1
08-19 14:00:51.931  1391  2857 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
08-19 14:00:51.935  1391  2857 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
08-19 14:00:51.935  1391  2857 E OMXNodeInstance: setParameter(0xf0dc8134:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Input:0 en=0) ERROR: UnsupportedSetting(0x80001019)
08-19 14:00:51.935  1391  2857 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
08-19 14:00:51.935  1391  2857 E OMXNodeInstance: setParameter(0xf0dc8134:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
08-19 14:00:51.935  1391  2857 I OMX-VENC: WARN: set_parameter: metamode is valid for input port only
08-19 14:00:51.935  1391  2857 W OMXNodeInstance: [0xf0dc8134:qcom.encoder.avc] component does not support metadata mode; using fallback
08-19 14:00:51.935 19550 19569 I ExtendedACodec: setupVideoEncoder()
08-19 14:00:51.935 19550 19569 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
08-19 14:00:51.936 19550 19569 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
08-19 14:00:51.936 19550 19569 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
08-19 14:00:51.936 19550 19569 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
08-19 14:00:51.936 19550 19569 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
08-19 14:00:51.937 19550 19569 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
08-19 14:00:51.937 19550 19569 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
08-19 14:00:51.938 19550 19569 W OMXUtils: do not know color format 0x7f000789 = 2130708361
08-19 14:00:51.938  1391  2857 I OMX-VENC: venc_dev: WARN: Unsupported eColorFormat 0x7f000789
08-19 14:00:51.939  1391  2857 I OMX-VENC: venc_dev: v4l2 profile : 1 flags : 131095 
08-19 14:00:51.939  1391  2857 I OMX-VENC: venc_dev: v4l2 profile : 0 flags : 131095 
08-19 14:00:51.939  1391  2857 I OMX-VENC: venc_dev: v4l2 profile : 2 flags : 131095 
08-19 14:00:51.939  1391  2857 I OMX-VENC: venc_dev: v4l2 profile : 17 flags : 131095 
08-19 14:00:51.939  1391  2857 I OMX-VENC: venc_dev: v4l2 profile : 4 flags : 131095 
08-19 14:00:51.939 19550 19569 I ACodec  : setupAVCEncoderParameters with [profile: High] [level: Level1]
08-19 14:00:51.940 19550 19569 I ACodec  : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
08-19 14:00:51.940 19550 19569 I ACodec  : setupVideoEncoder succeeded
08-19 14:00:51.940 19550 19569 I ExtendedACodec: [OMX.qcom.video.encoder.avc] configure, AMessage : AMessage(what = 'conf', target = 1) = {
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t color-format = 2130708361
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t i-frame-interval = 10
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   string mime = "video/avc"
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t width = 1080
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t bitrate = 8000000
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t frame-rate = 60
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int64_t repeat-previous-frame-after = 100000
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t height = 2376
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t flags = 1
08-19 14:00:51.940 19550 19569 I ExtendedACodec:   int32_t encoder = 1
08-19 14:00:51.940 19550 19569 I ExtendedACodec: }
08-19 14:00:51.941 19550 19569 W OMXUtils: do not know color format 0x7f000789 = 2130708361
08-19 14:00:51.941  1391  2857 E OMX-VENC: ERROR: unsupported index 1870659589
08-19 14:00:51.941  1391  2857 E OMXNodeInstance: getConfig(0xf0dc8134:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
08-19 14:00:51.951  1391  2857 E OMXNodeInstance: getConfig(0xf0dc8134:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
08-19 14:00:51.951  1391  2857 I OMX-VENC: venc_dev: venc_get_consumer_usage 0x10000000
08-19 14:00:51.952  1391  2857 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
08-19 14:00:51.952  1391  2857 I OMX-VENC: venc_dev: venc_get_consumer_usage 0x10000000
08-19 14:00:51.952  1391  2857 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
08-19 14:00:51.958  1081  1081 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
08-19 14:00:51.961  1081  1081 E HWComposer: setDisplayElapseTime failed for display 0: Invalid display
08-19 14:00:51.967 19564 19564 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
08-19 14:00:51.969 19564 19564 I AndroidRuntime: Using default boot image
08-19 14:00:51.969 19564 19564 I AndroidRuntime: Leaving lock profiling enabled
08-19 14:00:51.967 19564 19564 I app_process: type=1400 audit(0.0:2546): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=10816 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=1
08-19 14:00:51.967 19564 19564 I app_process: type=1400 audit(0.0:2547): avc: denied { open } for path="/dev/__properties__/u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=10816 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=1
08-19 14:00:51.967 19564 19564 I app_process: type=1400 audit(0.0:2548): avc: denied { getattr } for path="/dev/__properties__/u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=10816 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=1
08-19 14:00:51.987  1379  1443 W ResourceManagerService: Ignoring request to add new resource entry with value <= 0
08-19 14:00:51.988  1391  2853 D GraphicBufferSource: got buffer with new dataSpace #104
08-19 14:00:51.989  1391 19573 I OMX-VENC: get_config (dataspace changed): ColorSpace: Recommend 601 for RGBA8888
08-19 14:00:51.989  1391 19573 D OMXNodeInstance: Codec resolved it to (R:2(??), P:3(??), M:3(??), T:3(??)) err=0(NO_ERROR)
08-19 14:00:51.989  1391 19573 E OMXNodeInstance: setConfig(0xf0dc8134:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
08-19 14:00:52.006  1391 19571 W C2DColorConvert: calcYSize: Format not supported , 6
08-19 14:00:52.006 19550 19569 D ACodec  : dataspace changed to 0x10c10000 (R:2(Limited), P:3(BT601_6_625), M:3(BT601_6), T:3(SMPTE170M)) (R:2(Limited), S:2(BT601_625), T:3(SMPTE_170M))
08-19 14:00:52.024 19564 19564 D app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
08-19 14:00:52.024 19564 19564 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt66l.dat
08-19 14:00:52.044 19564 19564 E dynamic_feature: parse the feature file now
08-19 14:00:52.044 19564 19564 E dynamic_feature: parse the json file from /system/etc/odm_feature_list
08-19 14:00:52.044 19564 19564 E dynamic_feature: parse the json file from /odm/etc/odm_feature_list
08-19 14:00:52.052 19564 19564 W app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
08-19 14:00:52.059 19564 19564 I OPFont  : FEATURE_DYNAMIC_FONT V2 ? true
08-19 14:00:52.060 19564 19564 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
08-19 14:00:52.425  3443  3443 D MDM-DataTransferSpeedTracker: onDataActivity: isNewTxEvent = false, isNewRxEvent = true, isTxEndEvent = false, isRxEndEvent = false
08-19 14:00:52.425  3443  3443 D MDM-DataActiveCollectionManager: onDataActivity: isNewEvent = false, isEndEvent = false
08-19 14:00:52.435  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:52.437  2662  2662 I chatty  : uid=10192(com.android.systemui) identical 1 line
08-19 14:00:52.438  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:52.455  1081  1081 E HWComposer: setDisplayElapseTime failed for display 0: Invalid display
08-19 14:00:53.084  1391 19572 I OMX-VENC: venc_dev: stats: avg. fps 11.34, bitrate 1046327
08-19 14:00:53.254  1701  3229 D WifiNl80211Manager: Scan result ready event
08-19 14:00:53.255  1701  3229 D WifiNative: Scan result ready event
08-19 14:00:53.256  1588  2555 I LOWI-9.0.0.52: [LOWI-Scan] lowi_close_record:Scan done in 430842ms, 28 APs in scan results
08-19 14:00:53.258  1588  1600 I LOWI-9.0.0.52: [LOWIUtils] responseToOutPostcard - TO: FreeWifiScanObserver, FROM:   LOWI-SERVER, RESP:  LOWI_ASYNC_DISCOVERY_SCAN_RESULTS
08-19 14:00:53.273  1701  2426 D WificondScannerImpl: Filtering out 1 scan results.
08-19 14:00:53.434  3443  3443 D MDM-DataTransferSpeedTracker: onDataActivity: isNewTxEvent = false, isNewRxEvent = false, isTxEndEvent = true, isRxEndEvent = true
08-19 14:00:53.434  3443  3443 D MDM-DataTransferSpeedTracker: updateTransferSpeedData: isTx = true
08-19 14:00:53.435  3443  3443 D MDM-DataTransferSpeedTracker: updateTransferSpeedData: mCurDdsSimNetworkClass = 2, currentTxBytes = 1314711, incrementTxBytes = 6267, transferTxSpeed = 3133
08-19 14:00:53.435  3443  3443 D MDM-DataTransferSpeedTracker: getBucketIndexByBelongingRange: index = 0, transferSpeed = 3133
08-19 14:00:53.435  3443  3443 D MDM-DataTransferSpeedTracker: updateTransferSpeedData: isTx = false
08-19 14:00:53.436  3443  3443 D MDM-DataTransferSpeedTracker: updateTransferSpeedData: mCurDdsSimNetworkClass = 2, currentRxBytes = 3336071, incrementRxBytes = 16161, transferRxSpeed = 16161
08-19 14:00:53.436  3443  3443 D MDM-DataTransferSpeedTracker: getBucketIndexByBelongingRange: index = 0, transferSpeed = 16161
08-19 14:00:53.436  3443  3443 D MDM-DataActiveCollectionManager: onDataActivity: isNewEvent = false, isEndEvent = true
08-19 14:00:53.436  3443  3443 D MDM-DataActiveCollectionManager: updateDataActiveDuration: original active duration = 96747
08-19 14:00:53.436  3443  3443 D MDM-DataActiveCollectionManager: updateDataActiveDuration: current connection time = 98766
08-19 14:00:53.438  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:53.439  2662  2662 I chatty  : uid=10192(com.android.systemui) identical 1 line
08-19 14:00:53.440  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:53.450  1081  1081 E HWComposer: setDisplayElapseTime failed for display 0: Invalid display
08-19 14:00:53.497  1294  1294 W adbd    : timeout expired while flushing socket, closing
08-19 14:00:53.577  1294  1294 W adbd    : timeout expired while flushing socket, closing
08-19 14:00:53.681 19550 19550 D AndroidRuntime: Shutting down VM
08-19 14:00:53.682  1391  2857 W GraphicBufferSource: released unpopulated slots: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
08-19 14:00:55.831 19491 19510 I .android.chrom: Waiting for a blocking GC ProfileSaver
08-19 14:00:55.858 19491 19510 I .android.chrom: WaitForGcToComplete blocked ProfileSaver on RunEmptyCheckpoint for 26.875ms
08-19 14:00:56.678 19550 19568 W app_process: PruneStatusT: Unknown status_t pruned into STATUS_UNKNOWN_ERROR: -9
08-19 14:00:56.679 19550 19569 I ACodec  : [OMX.qcom.video.encoder.avc] forcing the release of codec
08-19 14:00:56.680 19550 19569 E ACodec  : OMX.qcom.video.encoder.avc
08-19 14:00:56.680 19550 19568 W app_process: PruneStatusT: Unknown status_t pruned into STATUS_UNKNOWN_ERROR: -9
08-19 14:00:56.681 19550 19568 I ServiceManager: Waiting for service 'media.metrics' on '/dev/binder'...
08-19 14:00:56.910  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:57.304  1701  3272 D OPBF    : setCGroupState():tofreeze=true, uid:10286 pkg:com.ubercab --->>> ok reason:operateNode reconfirm lastOperation:false lastOperatedReason:AsyncBinder
08-19 14:00:56.912  2662  2662 I chatty  : uid=10192(com.android.systemui) identical 1 line
08-19 14:00:56.913  2662  2662 E NavigationButtonUtils: res.getInteger(resId) = 0
08-19 14:00:57.683 19550 19568 I ServiceManager: Waiting for service 'media.metrics' on '/dev/binder'...
markmn123 commented 3 years ago

Also my phone is rooted as well

mhashim6 commented 2 years ago

+1

jherreral commented 1 year ago

Had similar issue, console stopped after encoder. The solution was to use cmd with administrator rights.