kensuke / How-to-Miracast-on-AOSP

Miracast Patches to AOSP
217 stars 101 forks source link

Crash when WifiDisplaySink.cpp:652 CHECK_EQ( err,(status_t)OK) #3

Open gshu001 opened 9 years ago

gshu001 commented 9 years ago

I use samsung Note2 as source . also I know the Note2 with hdcp, so the wfd failed. the sink crash when WifiDisplaySink.cpp:652 CHECK_EQ( err,(status_t)OK). The sink application crash seams not so friendly for user, how to avoid the application crash? thanks a lot.

kensuke commented 9 years ago

hint

// S3 to N7 (failed) I/NetworkSession(1468): connecting socket 45 to 192.168.49.1:7236 I/WifiDisplaySink(1468): We're now connected. E/WifiDisplaySink(1468): Invalid server_port description '19000'. E/WifiDisplaySink(1468): rtpPort[19000] rtcpPort[1589504000] server_port[19000] A/WifiDisplaySink(1468): frameworks/av/media/libstagefright/wifi-display/sink/WifiDisplaySink.cpp:654 CHECK_EQ( err,(status_t)OK) failed: -1007 vs. 0 A/WifiDisplaySink(1468): --------- beginning of crash

// N4 to N7 (success) I/NetworkSession(1693): connecting socket 45 to 192.168.49.85:7236 I/WifiDisplaySink(1693): We're now connected. I/RTPReceiver(1585): RTPReceiver::connect() mRTPMode[2] remoteHost[192.168.49.85] remoteRTPPort[52532] remoteRTCPPort[52533] I/RTPReceiver(1693): connectUDPSession RTP successful. I/RTPReceiver(1693): connectUDPSession RTCP successful. I/WifiDisplaySink(1693): MediaReceiver initialization completed w/ err 0

xuwen0306 commented 8 years ago

@kensuke the error log you post is based S3, and the root cause is sink code checking the fix style port from source side. The easy way to fix the issue is comment the check port part, or will cause IoT issue continuely