Opened 11 months ago

Last modified 11 months ago

#14681 assigned bug

Playing audio file with embedded Art consumes way too much CPU

Reported by: miqlas Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Audio & Video/Codecs Version: R1/Development
Keywords: MediaPlayer, playback, cpu, Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Happens on b1 and on hrev52467, 64 bit. Since the patches from waddlesplash it happens not so frequently, but the problem still exists.

Happen with not yet played files. Stopping and playing solves the problem. Closing MPlayer also solves the problem Even if the file was played once, the bug can resurface again randonmly with low canche Comparing the threads while MediaPlayer plays the same file shows: the "frame_generator" is the rebel thread.

It seems the "Media:Frame" is the problem. If a sound file doesn't triggers the symptoms, just remove it like: rmattr "Media:Frame" filename.mp3 and it will trigger the bug (not always at the first try, for me it kicks in on the second play, idk, why.)

Attachments (1)

sItw.png (472.4 KB ) - added by miqlas 11 months ago.
screenshot

Download all attachments as: .zip

Change History (3)

comment:1 by miqlas, 11 months ago

This screenshot shows that a file without "Media:Frame" triggers the bug (see the previously high CPU load on the ActivityMonitor replicant), but closing and reopening the file MediaPlayer finds the generated attribute and doesn't regenerates it again. (Notice the lower CPU load)

by miqlas, 11 months ago

Attachment: sItw.png added

screenshot

comment:2 by waddlesplash, 11 months ago

Component: - GeneralAudio & Video/Codecs
Owner: changed from nobody to pulkomandy
Status: newassigned
Note: See TracTickets for help on using tickets.