[Webkit-unassigned] [Bug 80978] New: [BlackBerry] MMRPlayer will hang webkit thread when retrieving media metadata

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 13 02:22:21 PDT 2012


           Summary: [BlackBerry] MMRPlayer will hang webkit thread when
                    retrieving media metadata
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P2
         Component: WebKit BlackBerry
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jonathan.dong at torchmobile.com.cn
                CC: rwlbuis at gmail.com, staikos at kde.org,
                    charles.wei at torchmobile.com.cn, tonikitoo at webkit.org,
                    bipingm at gmail.com, leo.yang at torchmobile.com.cn,
                    mfeil at rim.com

this always happens in bad network environment. When MMRPlayer need a long time
to retrieve metadata, the webkit thread is blocked until user get the metadata
or press cancel.

way to reproduce:
1. load live streaming url: http://multiplatform-f.akamaihd.net/i/multi/seeker/LegendofSeeker_16x9_24fps_H264,_1.4Mbps,_1.8Mbps,_1Mbps,_2.5Mbps,_400K,_650K,.mp4.csmil/master.m3u8
then you can see the chrome stop responding when retrieving metadata before the media can get played.

root cause:
the webkit thread will wait for the metadata retrieving thread in
MMRPlayer::mmrConnect(). we should avoid using pthread_cond_timedwait() here,
instead we can start a timer to check the metadata finished status every time
it get fired.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list