Opened 7 years ago
Closed 4 years ago
#13622 closed bug (fixed)
[MediaPlayer] media extractor thread uses 100% cpu
Reported by: | diver | Owned by: | leavengood |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta3 |
Component: | Audio & Video/Codecs | Version: | R1/Development |
Keywords: | Cc: | ttcoder | |
Blocked By: | Blocking: | #13928, #14681 | |
Platform: | x86-64 |
Description
hrev51305 x86_64
http://podtrac.com/pts/redirect.mp3/latenightlinux.com/media/LNL15.ogg
Playing this file is either makes MediaPlayer (media extractor thread) use 100% cpu or quits with:
pure virtual method called terminate called without an active exception
Change History (23)
comment:1 by , 7 years ago
comment:3 by , 7 years ago
https://dev.haiku-os.org/attachment/ticket/13410/VanillaFudge.mp3 seems to also be affected. MediaPlayer (or something it calls) seems to insist on extracting video frames which are not present.
comment:4 by , 7 years ago
Note that the the slider of the progress bar never moves while playing that ogg sample clip. I also see that problem with one of my m2ts trailers.
comment:5 by , 7 years ago
Blocking: | 13928 added |
---|
comment:6 by , 6 years ago
High CPU usage fixed in hrev52358; however, the time indicator still does not increment on these files.
comment:7 by , 6 years ago
Still getting high CPU usage on some files here. In media player, "event queue runner", "playback manager", "media extractor thread" and "frame generator" threads are busy, as well as the main window thread.
How did we end up with so many threads just to play a media file anyway?
comment:8 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:9 by , 5 years ago
Component: | Kits/Media Kit → Applications/MediaPlayer |
---|---|
Owner: | changed from | to
Probably more of a MediaPlayer bug than Media Kit, though I don't know for sure yet. Probably the same issue as #15220.
comment:10 by , 5 years ago
Milestone: | Unscheduled → R1/beta2 |
---|
Moving to Beta 2 milestone as discussed on IRC.
comment:11 by , 5 years ago
Component: | Applications/MediaPlayer → Audio & Video/Codecs |
---|
comment:13 by , 5 years ago
Tested with hrev54121x86_64. Problem is still there. One CPU core at 100% and no progress bar movement or time count.
comment:14 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:16 by , 5 years ago
I applied the patch on both 32 and 64 bit. There is a definite difference in behaviour between the two. As a side note, the patch seems to fix a streaming issue that has existed for some time
comment:17 by , 5 years ago
Blocking: | 14681 added |
---|
comment:19 by , 5 years ago
Milestone: | → R1/beta3 |
---|
comment:20 by , 5 years ago
Congrats on a solid second beta release! Something I've been wondering: there's been talk of releasing updates in the beta2 update channel in the future. For instance, let's say pulkomandy's patchset 2562 above is applied to trunk, then backported to beta2 branch. I guess this ticket's milestone will remain at "beta3" since there is no "b2.1" milestone, we should still leave it to the haiku core Haiku devs to set milestones, right? And requests for backports to the beta2 branch should be made as polite messages rather than tweaking ticket fields then. 8-)
comment:21 by , 5 years ago
Cc: | added |
---|
comment:22 by , 5 years ago
Yes, we did backport patches to beta1 for a few months last time, and we will probably do the same again this time.
comment:23 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Patch applied in hrev54577. There are still problems (the cover art is not displayed now, we get a black window instead) but no 100% CPU usage anymore, at least.
What about hrev51306?