[One (M8) Q&A, Help & Troubleshooting] petalyaa:
Hi everyone, my wife M8 just got this issue last week. She can't make any call (incoming and outgoing). The dialer will freeze and not responsive once hit the call button. Also, the camera can only take picture but not video. No error message, when click video button, it looks like the camera about to start recording but then it stop. In gallery, when try to play videos recorded previously before the issue happened, a Warning dialog appear saying 'Media file type not supported'. Same issue when try to play any youtube videos, it keep on saying, 'The was a problem while playing. Touch to retry'.

The phone is on stock, unrooted Lollipop rom WWE Asia at the time when the issue happen. Since the warranty already expired, I already unlock it using htcdev to try and fix it myself. Then I flash another Lollipop rom from different base, still the same. On Marshmallow rom also the same issue happen. In addition, I also flash m8-mm-wp_mod.zip because of S-ON on top of Marshmallow rom. So I guess maybe it is related to the firmware, maybe something with radio.img since it is still on stock firmware because her phone is still S-ON.

Here is the logcat when i open the dialer and place a call :

01-09 14:12:26.703 1463 1463 I Telecom : Event: Call 2: CS_BOUND, ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}
01-09 14:12:26.704 1463 1463 I Telecom : Event: Call 2: START_CONNECTION, tel:**********
01-09 14:12:26.709 1463 4578 I Telecom : PhoneAccountRegistrar: SimCallManager queried, returning: null
01-09 14:12:26.744 1463 4578 D PMS : acquireWL(bdd65e1): PARTIAL_WAKE_LOCK GsmConnection 0x1 3626 1001 null
01-09 14:12:26.769 1463 3576 D PMS : acquireWL(f551f06): PROXIMITY_SCREEN_OFF_WAKE_LOCK PhoneApp_0 0x20 3626 1001 null
01-09 14:12:26.770 1463 1827 D XAN-DPC : Register Proximity Sensor Listener
01-09 14:12:26.774 1463 1827 D XAN-DPC : mProximityListener.onSensorChanged: FAR
01-09 14:12:26.774 1463 1827 D XAN-DPC : debounceProximitySensor Proximity = 0
--------- beginning of crash
01-09 14:12:26.781 472 472 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xa0 in tid 472 (mediaserver)
01-09 14:12:26.809 1463 3585 W NativeCrashListener: Couldn't find ProcessRecord for pid 472
01-09 14:12:26.810 467 467 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-09 14:12:26.810 467 467 F DEBUG : Build fingerprint: 'htc/brightstarus_wwe/htc_m8:6.0/MRA58K/662736.4:user/release-keys'
01-09 14:12:26.810 467 467 F DEBUG : Revision: '0'
01-09 14:12:26.810 467 467 F DEBUG : ABI: 'arm'
01-09 14:12:26.810 467 467 F DEBUG : pid: 472, tid: 472, name: mediaserver >>> /system/bin/mediaserver <<<
01-09 14:12:26.810 467 467 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xa0
01-09 14:12:26.870 467 467 F DEBUG : r0 00000000 r1 00000000 r2 00000000 r3 00000000
01-09 14:12:26.870 467 467 F DEBUG : r4 bea418e0 r5 b5e56108 r6 bea418e4 r7 00000000
01-09 14:12:26.870 467 467 F DEBUG : r8 b7cf818c r9 b69b5e40 sl b7cf81a4 fp b7cf818c
01-09 14:12:26.870 467 467 F DEBUG : ip b5e55c08 sp bea418e0 lr b5e4882b pc b613fefa cpsr 60060030
01-09 14:12:26.884 467 467 F DEBUG :
01-09 14:12:26.884 467 467 F DEBUG : backtrace:
01-09 14:12:26.884 467 467 F DEBUG : #00 pc 00027efa /system/lib/libaudiopolicymanagerdefault.so (android::AudioOutputDescriptor::AudioOutputDescriptor(andro
id::sp<android::AudioPort> const&, android::AudioPolicyClientInterface*)+19)
01-09 14:12:26.884 467 467 F DEBUG : #01 pc 0000a827 /system/lib/libaudiopolicyenginedefault.so (android::audio_policy::Engine::getDeviceForInputSource(audio
_source_t) const+214)
01-09 14:12:26.884 467 467 F DEBUG : #02 pc 0000aa4f /system/lib/libaudiopolicyenginedefault.so (android::audio_policy::Engine::getDeviceForStrategy(android:
:routing_strategy) const+262)
01-09 14:12:26.884 467 467 F DEBUG : #03 pc 0001b8e5 /system/lib/libaudiopolicymanagerdefault.so (android::AudioPolicyManager::getDeviceForStrategy(android::
routing_strategy, bool)+200)
01-09 14:12:26.884 467 467 F DEBUG : #04 pc 0001ae39 /system/lib/libaudiopolicymanagerdefault.so (android::AudioPolicyManager::checkOutputForStrategy(android
::routing_strategy)+44)
01-09 14:12:26.884 467 467 F DEBUG : #05 pc 0001b265 /system/lib/libaudiopolicymanagerdefault.so (android::AudioPolicyManager::checkOutputForAllStrategies()+
32)
01-09 14:12:26.884 467 467 F DEBUG : #06 pc 0001ede7 /system/lib/libaudiopolicymanagerdefault.so (android::AudioPolicyManager::setPhoneState(audio_mode_t)+64
2)
01-09 14:12:26.884 467 467 F DEBUG : #07 pc 00009f9f /system/lib/libaudiopolicyservice.so
01-09 14:12:26.884 467 467 F DEBUG : #08 pc 000951e3 /system/lib/libmedia.so (android::BnAudioPolicyService::onTransact(unsigned int, android::Parcel const&,
android::Parcel*, unsigned int)+374)
01-09 14:12:26.884 467 467 F DEBUG : #09 pc 000198fd /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parc
el*, unsigned int)+60)
01-09 14:12:26.884 467 467 F DEBUG : #10 pc 0001eebf /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+586)
01-09 14:12:26.884 467 467 F DEBUG : #11 pc 0001f029 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+64)
01-09 14:12:26.884 467 467 F DEBUG : #12 pc 0001f0a1 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+68)
01-09 14:12:26.884 467 467 F DEBUG : #13 pc 00001d8b /system/bin/mediaserver
01-09 14:12:26.884 467 467 F DEBUG : #14 pc 000166dd /system/lib/libc.so (__libc_init+44)
01-09 14:12:26.884 467 467 F DEBUG : #15 pc 00001fe0 /system/bin/mediaserver
01-09 14:12:26.962 1463 1827 D XAN-DPC : mProximityListener.onSensorChanged: FAR
01-09 14:12:27.024 1463 1827 D XAN-DPC : debounceProximitySensor Proximity = 0
01-09 14:12:27.101 467 467 F DEBUG :
01-09 14:12:27.101 467 467 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00

Here is logcat for camera :

01-09 15:17:46.582 6666 22397 D Event : [CameraThread.PreviewStopped] rasing
01-09 15:17:46.582 6666 22397 D Event : [CameraThread.PreviewStopped] raised
01-09 15:17:46.582 6666 23773 I VTE : Start thread to notify VTE
01-09 15:17:46.582 6666 22397 W CameraController: setPreviewFpsRange(Main) - min:10200,max:40490
01-09 15:17:46.582 6666 22397 D Event : [CameraThread.PreparingParamsBeforePreviewStart] rasing
01-09 15:17:46.582 6666 22397 D Event : [CameraThread.PreparingParamsBeforePreviewStart] raised
01-09 15:17:46.583 6666 23773 I Camera : hasFeature com.htc.vtetrue
01-09 15:17:46.590 15779 22411 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int): Setting preview fps range 10200,40490
01-09 15:17:46.590 15779 22411 E QCameraParameters: bool qcamera::QCameraParameters::check_flashlight_restriction() val_ril_status = 0,val_wimax_status = 0,val_hotspot_status = 0,val_low_temp_limit = 5.000000,val_batt_temp = 36.799999,val_low_temp_limit = 14,val_batt_cap = 100
01-09 15:17:46.590 15779 22411 E QCameraParameters: bool qcamera::QCameraParameters::check_flashlight_restriction() FLASHLIGHT is ENABLED
01-09 15:17:46.593 15779 22411 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int): Setting preview fps range 20000,30000
01-09 15:17:46.601 15779 22487 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int): Setting preview fps range 10200,30040
01-09 15:17:46.602 6666 22397 D Event : [CameraThread.PreviewStarting] rasing
01-09 15:17:46.602 6666 22397 D Event : [CameraThread.PreviewStarting] raised
01-09 15:17:46.602 6666 22397 V CameraProfiler: [PROFILE] Start timer 'CameraThread.StartPreview.Start'
01-09 15:17:46.603 6666 22397 W CameraController: startDriverPreview(Main) - Camera.startPreview [Start]
01-09 15:17:46.611 15783 22431 E mm-camera: mct_pipeline_add_stream_to_linked_streams: linked streams: 0x8
01-09 15:17:46.611 15783 22431 E mm-camera: mct_stream_start_link: Regular snapshot
01-09 15:17:46.611 15783 22431 E mm-camera-sensor: port_sensor_caps_reserve:127 ide 1000b stream type 3 w*h 2688*1520
01-09 15:17:46.611 15783 22431 E mm-camera-sensor: port_sensor_ext_link_func:196 ide 1000b
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.611 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1019] error because caps Type:1 not supported.
01-09 15:17:46.612 15783 22431 E mm-camera: isp_util_find_matched_existing_src_port#144: X
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_check_port_state:933] port type 2
01-09 15:17:46.612 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.614 15783 22431 E mm-camera: mct_pipeline_add_stream_to_linked_streams: linked streams: 0x18
01-09 15:17:46.614 15783 22431 E mm-camera-sensor: port_sensor_caps_reserve:127 ide 1000c stream type 4 w*h 1920*1080
01-09 15:17:46.614 15783 22431 E mm-camera-sensor: port_sensor_ext_link_func:196 ide 1000c
01-09 15:17:46.614 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.614 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.614 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.614 15783 22431 E mm-camera: isp_util_find_matched_existing_src_port#165: X
01-09 15:17:46.614 15783 22431 E mm-camera: isp_reserve_src_port: Error isp_src_port
01-09 15:17:46.614 15783 22431 E mm-camera: isp_util_find_matched_existing_src_port#165: X
01-09 15:17:46.614 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.614 15783 22431 E mm-camera: pproc_port_check_port_state:933] port type 2
01-09 15:17:46.614 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.614 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.614 15783 22431 E mm-camera: c2d_port_check_caps_reserve:77, identity=0x1000c
01-09 15:17:46.614 15783 22431 E mm-camera: c2d_port_check_caps_reserve:143, identity=0x1000c, reserved
01-09 15:17:46.615 15783 22431 E mm-camera: c2d_module_notify_add_stream:1147, info: success, identity=0x1000c
01-09 15:17:46.616 15783 23781 E mm-camera: is_thread_handler: Starting IS thread handler
01-09 15:17:46.617 15783 22431 E mm-camera: mct_pipeline_add_stream_to_linked_streams: linked streams: 0x98
01-09 15:17:46.617 15779 22411 E mm-camera-intf: mm_stream_get_v4l2_fmt: Unknown fmt=78
01-09 15:17:46.618 15783 22431 E mm-camera: mct_pipeline_add_stream_to_linked_streams: linked streams: 0x9a
01-09 15:17:46.618 15783 22431 E mm-camera-sensor: port_sensor_caps_reserve:127 ide 1000e stream type 1 w*h 1920*1080
01-09 15:17:46.618 15783 22431 E mm-camera-sensor: port_sensor_ext_link_func:196 ide 1000e
01-09 15:17:46.618 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.618 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.618 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.618 15783 22431 E mm-camera: isp_reserve_src_port: Error given src port cannot be used to reserve
01-09 15:17:46.618 15783 22431 E mm-camera: pproc_port_sink_check_caps_reserve:1005] E
01-09 15:17:46.618 15783 22431 E mm-camera: pproc_port_check_port_state:933] port type 0
01-09 15:17:46.618 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.618 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.619 15783 22431 E mm-camera: c2d_port_check_caps_reserve:77, identity=0x1000e
01-09 15:17:46.619 15783 22431 E mm-camera: c2d_port_check_caps_reserve:143, identity=0x1000e, reserved
01-09 15:17:46.619 15783 22431 E mm-camera: c2d_module_notify_add_stream:1147, info: success, identity=0x1000e
01-09 15:17:46.619 15783 22431 E mm-camera: pproc_port_source_check_caps_reserve:stream_type=1, identity=0x1000e] E
01-09 15:17:46.619 15783 22431 E mm-camera: pproc_port_check_port_state:933] port type 2
01-09 15:17:46.619 15783 22431 E mm-camera: pproc_port_source_check_caps_reserve:1268] sink_port_private->streams[0].stream_info->identity=0x1000c
01-09 15:17:46.619 15783 22431 E mm-camera: identity compare different
01-09 15:17:46.619 15783 22431 E mm-camera: pproc_port_source_check_caps_reserve:1268] sink_port_private->streams[1].stream_info->identity=0x1000e
01-09 15:17:46.619 15783 22431 E mm-camera: pproc_port_reserve_compatible_port
01-09 15:17:46.619 15783 22431 E mm-camera: c2d_port_check_caps_reserve:77, identity=0x1000e
01-09 15:17:46.619 15783 22431 E mm-camera: c2d_port_check_caps_reserve:143, identity=0x1000e, reserved
01-09 15:17:46.628 15779 22411 E mm-camera-intf: mm_stream_request_buf: buf_num = 13, stream type = 7
01-09 15:17:46.628 15779 22411 E mm-camera-intf: mm_stream_reg_buf: Stream 7 total 13, kernel 13
01-09 15:17:46.628 15783 22431 E mm-camera: mct_pipeline_process_set: stream_type = 7
01-09 15:17:46.629 15783 22431 E mm-camera: mct_stream_metabuf_find_bfr_mngr_subdev: MSM_CAMERA_SUBDEV_BUF_MNGR opened
01-09 15:17:46.629 15779 22411 E QCameraParameters: int qcamera::QCameraParameters::getPreviewHalPixelFormat() const: format 17
01-09 15:17:46.671 15779 22411 E mm-camera-intf: mm_stream_request_buf: buf_num = 13, stream type = 1
01-09 15:17:46.672 15779 22411 E mm-camera-intf: mm_stream_reg_buf: Stream 1 total 13, kernel 11
01-09 15:17:46.673 15783 22431 E mm-camera: mct_pipeline_process_set: stream_type = 1
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: module_sensor_stream_on:1222 ide 1000e SENSOR_START_STREAM
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: module_sensor_is_ready_for_stream_on:708 any bundle started 0
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: module_sensor_is_ready_for_stream_on:718 s_bundle->stream_on_count 0
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: module_sensor_is_ready_for_stream_on:719 is_bundle_started 0
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: modules_sensor_set_new_resolution:846 SENSOR_SET_RESOLUTION 2688*1520 mask 1a
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_set_resolution:1827 Enter
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_set_resolution:1854 Requested width 2688, height 1520
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_set_resolution:1856 Requested stream mask 1a hfr mode 0 Cur fps 0.000000
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1529 Enter
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1548 Height 1520 Width 2688
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1565 req_asp_ratio 176 stream type 1a
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1653 req_asp_ratio 176 sup_asp_ratio 176
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1657 fabs 0
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1670 pick res 0
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution:1716 Exit
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_pick_resolution_HTC_override:1798 pick res 2 request_mode 64
01-09 15:17:46.673 15783 22431 E mm-camera-sensor: sensor_set_resolution:1868 Curr Res ID 0 New Res ID 2 New FPS 30.000000

And last logcat is when i'm trying to play a video in Youtube.

01-09 15:27:32.854 15779 16074 W APM::AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0
01-09 15:27:32.854 10492 25601 E AudioTrack: Unable to query output sample rate for stream type -1; status -1
01-09 15:27:32.854 10492 25601 E AudioTrack-JNI: AudioTrack::getMinFrameCount() for sample rate 44100 failed with status -1
01-09 15:27:32.854 10492 25601 E android.media.AudioTrack: getMinBufferSize(): error querying hardware
01-09 15:27:32.856 15779 16074 W APM::AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 44100,format 1, channels 3, flags 0
01-09 15:27:32.856 10492 25601 E AudioTrack: Could not get audio output for session 150, stream type -1, usage 1, sample rate 44100, format 0x1, channel mask 0x3, flags 0
01-09 15:27:32.856 10492 25601 E AudioTrack-JNI: Error -22 initializing AudioTrack
01-09 15:27:32.856 10492 25601 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal: Internal track renderer error.
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal: dsw: duw: AudioTrack init failed: 0, Config(44100, 12, 44100)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at dth.a(SourceFile:359)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at dtm.a(SourceFile:5842)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at dtd.handleMessage(SourceFile:1431)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at android.os.Handler.dispatchMessage(Handler.java:98)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at android.os.Looper.loop(Looper.java:168)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at android.os.HandlerThread.run(HandlerThread.java:61)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at eeq.run(SourceFile:40)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal: Caused by: duw: AudioTrack init failed: 0, Config(44100, 12, 44100)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at dur.a(SourceFile:2892)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	at dth.a(SourceFile:7424)
01-09 15:27:32.856 10492 25601 E ExoPlayerImplInternal:	... 6 more
01-09 15:27:32.866 10492 10492 E YouTube : (unknown) Error with ExoPlayer audio track initialization.
01-09 15:27:32.866 10492 10492 E YouTube : duw: AudioTrack init failed: 0, Config(44100, 12, 44100)
01-09 15:27:32.866 10492 10492 E YouTube :	at dur.a(SourceFile:2892)
01-09 15:27:32.866 10492 10492 E YouTube :	at dth.a(SourceFile:7424)
01-09 15:27:32.866 10492 10492 E YouTube :	at dtm.a(SourceFile:5842)
01-09 15:27:32.866 10492 10492 E YouTube :	at dtd.handleMessage(SourceFile:1431)
01-09 15:27:32.866 10492 10492 E YouTube :	at android.os.Handler.dispatchMessage(Handler.java:98)
01-09 15:27:32.866 10492 10492 E YouTube :	at android.os.Looper.loop(Looper.java:168)
01-09 15:27:32.866 10492 10492 E YouTube :	at android.os.HandlerThread.run(HandlerThread.java:61)
01-09 15:27:32.866 10492 10492 E YouTube :	at eeq.run(SourceFile:40)
01-09 15:27:32.882 1463 4578 D PMS : releaseWL(475f74f): SCREEN_BRIGHT_WAKE_LOCK ON_AFTER_RELEASE WindowManager 0x2000000a WorkSource{10118}
01-09 15:27:32.883 4752 4773 E MP-Decision: Update arg 2
01-09 15:27:32.885 10492 10492 W YouTube : (unknown) CsiAction [bjv] already ticked aci. Ignored.
01-09 15:27:32.886 10492 10492 W YouTube : (unknown) CsiAction [bjv] already ticked acc. Ignored.
01-09 15:27:32.890 10492 10492 W YouTube : (unknown) Pinging https://s.youtube.com/api/stats/qoe?docid=m50PTFmmlxw&event=streamingstats&cl=111627409&feature=g-high-rec&ns=yt&fexp=9405185%2C9407610%2C9408546%2C9415293%2C9416137%2C9419448%2C9420452%2C9422596%2C9423971%2C9424822%2C9424862%2C9425057%2C9425620%2C9425865%2C9425901%2C9425941%2C9425958%2C9426280%2C9426339&ei=q6CQVpbvIqqAoQOx3qCwDg&plid=AAUo4FejLYt7Ck9E&cpn=NTdWe070iki4J_BK&cbrand=HTC&c=android&cbrver=10.49.59&cmodel=HTC%20One_M8&cplatform=mobile&cver=10.49.59&cbr=com.google.android.youtube&cosver=6.0&cos=Android&conn=3&preload=0.5&fmt=135&sur=5561.518:1,5561.519:2&error=5561.655:android.exo.audioinit.fatal:0.000:0&bat=5561.658:1.000:1&vps=5561.538:B,5561.656:ER
01-09 15:27:32.896 1463 3578 I AccountManagerService: getTypesVisibleToCaller: isPermitted? true
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.896 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.897 1463 3578 E ckpv5 : Signatures disabled
01-09 15:27:32.897 1463 3578 E ckpv5 : Signatures disabled

So the question is, is it true the problem is related to the firmware? If no, what method I can use to fix those mention issue? If it is really because of the firmware, how can I flash the firmware while still S-ON? I already try to search for 4.19.707.x stock firmware to flash with no luck(CID : HTC_044 and MID : 0P6B11000). My last bet is to pay for $25 to get S-OFF using sunshine and flash the firmware. But I don't know if it would fix the issue or not.

Anybody can help me? Please......