Opened 11 years ago

Closed 10 years ago

#6207 closed defect (fixed)

Mac OS frontend, Live Preview of Recordings doesn't display but causes high CPU

Reported by: todd.ignasiak@… Owned by: Nigel
Priority: minor Milestone: 0.22
Component: Ports - OSX Version: 0.21-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

Mac OS X frontend, on a Mac Mini Core Duo 1.66GHz, OSX 10.5.6

Playback settings page 4/10 has an option to "Display live preview of recordings", regardless that setting being on or off I never get the live preview in the recording selection screen (I do get the static preview image).

But, if that setting is enabled, my CPU goes up to 25-35% (HD recordings) when I'm on that screen.

So, it appears that even though it's not displayed, the video is still decoded.

Change History (5)

comment:1 Changed 11 years ago by Dibblah

Status: newinfoneeded_new

Logs please:

mythfrontend -v playback

comment:2 Changed 11 years ago by todd.ignasiak@…


MythTV Version : 19244M MythTV Branch : branches/release-0-21-fixes Library API : 0.21.20080304-1 Network Protocol : 40 Options compiled in:

release darwin_da using_corevideo using_backend using_dbox2 using_firewire using_frontend using_hdhomerun using_iptv using_appleremote using_bindings_perl using_bindings_python using_darwin_da using_ffmpeg_threads using_live


I did '-v playback' but got no output when in the recordings selection menu. So, I added more options "./MythFrontend? -v playback,channel,network,osd" and got the following output. The lines regarding 'query pixmap' kept repeating approximately every second, maybe a bit more quickly.

2009-02-01 10:50:25.327 Switching to wide mode (MythCenter?-wide) 2009-02-01 10:50:25.339 Using the Qt painter 2009-02-01 10:50:26.500 Loading from: /Applications/MythFrontend?.app/Contents/Resources/share/mythtv/themes/MythCenter-wide/base.xml 2009-02-01 10:50:26.556 Loading from: /Applications/MythFrontend?.app/Contents/Resources/share/mythtv/themes/default/base.xml 2009-02-01 10:50:26.648 Registering Internal as a media playback plugin. 2009-02-01 10:50:26.762 MonitorRegisterExtensions?(0x100, gif,jpg,png) 2009-02-01 10:50:26.858 Failed to run 'cdrecord --scanbus' 2009-02-01 10:50:26.861 Failed to run 'cdrecord --scanbus -dev=ATA' 2009-02-01 10:50:26.864 Failed to run 'cdrecord --scanbus -dev=ATAPI' 2009-02-01 10:50:26.919 MonitorRegisterExtensions?(0x40, ogg,mp3,aac,flac) 2009-02-01 10:50:27.077 NetworkControl?: Listening for remote connections on port 6546 2009-02-01 10:50:27.078 No theme dir: /Users/tji/.mythtv/themes/MythCenter-wide 2009-02-01 10:50:32.743 XMLParse::LoadTheme? using /Applications/MythFrontend?.app/Contents/Resources/share/mythtv/themes/MythCenter-wide/ui.xml 2009-02-01 10:50:32.897 Connecting to backend server: 172.16.19.6:6543 (try 1 of 5) 2009-02-01 10:50:32.897 write -> 14 21 MYTH_PROTO_VERSION 40 2009-02-01 10:50:32.898 read <- 14 13 ACCEPT[]:[]40 2009-02-01 10:50:32.898 Using protocol version 40 2009-02-01 10:50:32.898 write -> 14 22 ANN Monitor Mini_x86 0 2009-02-01 10:50:32.899 read <- 14 2 OK 2009-02-01 10:50:32.899 write -> 13 22 ANN Monitor Mini_x86 1 2009-02-01 10:50:32.900 read <- 13 2 OK 2009-02-01 10:50:32.901 write -> 14 21 QUERY_RECORDINGS Play 2009-02-01 10:50:32.928 read <- 14 6124 11[]:[]The Story of India[]:[]The Meeting of Two Oceans[]:[]The c... 2009-02-01 10:50:33.147 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:33.148 read <- 14 10 1233486062

2009-02-01 10:50:33.150 Starting preview generator 1 && (0
((2009-02-01T03:01:02<2009-02-01T10:49:36)->1 && (2009-02-01T03:01:02>=2009-02-01T01:02:00)->1)) && 1 && 1 && 1

2009-02-01 10:50:33.159 write -> 14 531 QUERY_CHECKFILE[]:[]1[]:[]Saturday Night Live[]:[][]:[]Host Steve... 2009-02-01 10:50:33.160 read <- 14 44 1[]:[]/Volumes/Media?/2111_20090131232900.mpg 2009-02-01 10:50:33.161 Connecting to backend server: 172.16.19.6:6543 (try 1 of 5) 2009-02-01 10:50:33.161 write -> 17 21 MYTH_PROTO_VERSION 40 2009-02-01 10:50:33.162 read <- 17 13 ACCEPT[]:[]40 2009-02-01 10:50:33.162 Using protocol version 40 2009-02-01 10:50:33.162 write -> 17 22 ANN Monitor Mini_x86 0 2009-02-01 10:50:33.163 read <- 17 2 OK 2009-02-01 10:50:33.163 write -> 17 569 QUERY_GENPIXMAP[]:[]Saturday Night Live[]:[][]:[]Host Steve Marti... 2009-02-01 10:50:33.555 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:33.556 read <- 14 10 1233486062 2009-02-01 10:50:34.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:34.054 read <- 14 10 1233486062 2009-02-01 10:50:34.522 read <- 17 2 OK 2009-02-01 10:50:34.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:34.554 read <- 14 10 1233514232 2009-02-01 10:50:34.555 write -> 17 23 ANN Playback Mini_x86 0 2009-02-01 10:50:34.556 read <- 17 2 OK 2009-02-01 10:50:34.556 write -> 18 62 ANN FileTransfer? Mini_x86 0 0[]:[]/2111_20090131232900.mpg.png 2009-02-01 10:50:34.563 read <- 18 25 OK[]:[]24[]:[]0[]:[]66006 2009-02-01 10:50:34.563 write -> 17 49 QUERY_FILETRANSFER 24[]:[]REQUEST_BLOCK[]:[]66006 2009-02-01 10:50:34.633 read <- 17 5 66006 2009-02-01 10:50:34.633 Read(): reqd=66006, rcvd=66006, rept=66006, error=0 2009-02-01 10:50:34.633 write -> 17 30 QUERY_FILETRANSFER 24[]:[]DONE 2009-02-01 10:50:34.633 read <- 17 2 ok 2009-02-01 10:50:34.649 Preview: previewThreadDone took 5ms 2009-02-01 10:50:34.772 write -> 17 23 ANN Playback Mini_x86 0 2009-02-01 10:50:34.773 read <- 17 2 OK 2009-02-01 10:50:34.773 write -> 18 62 ANN FileTransfer? Mini_x86 0 0[]:[]/2111_20090131232900.mpg.png 2009-02-01 10:50:34.777 read <- 18 25 OK[]:[]24[]:[]0[]:[]66006 2009-02-01 10:50:34.777 write -> 17 49 QUERY_FILETRANSFER 24[]:[]REQUEST_BLOCK[]:[]66006 2009-02-01 10:50:34.833 read <- 17 5 66006 2009-02-01 10:50:34.833 Read(): reqd=66006, rcvd=66006, rept=66006, error=0 2009-02-01 10:50:34.833 write -> 17 30 QUERY_FILETRANSFER 24[]:[]DONE 2009-02-01 10:50:34.833 read <- 17 2 ok 2009-02-01 10:50:35.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:35.054 read <- 14 10 1233514232 2009-02-01 10:50:35.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:35.554 read <- 14 10 1233514232 2009-02-01 10:50:36.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:36.054 read <- 14 10 1233514232 2009-02-01 10:50:36.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:36.554 read <- 14 10 1233514232 2009-02-01 10:50:37.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:37.054 read <- 14 10 1233514232 2009-02-01 10:50:37.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:37.554 read <- 14 10 1233514232 2009-02-01 10:50:38.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:38.054 read <- 14 10 1233514232 2009-02-01 10:50:38.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:38.554 read <- 14 10 1233514232 2009-02-01 10:50:39.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:39.054 read <- 14 10 1233514232 2009-02-01 10:50:39.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:39.554 read <- 14 10 1233514232 2009-02-01 10:50:40.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:40.054 read <- 14 10 1233514232 2009-02-01 10:50:40.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:40.554 read <- 14 10 1233514232 2009-02-01 10:50:41.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:41.054 read <- 14 10 1233514232 2009-02-01 10:50:41.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:41.555 read <- 14 10 1233514232 2009-02-01 10:50:42.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:42.054 read <- 14 10 1233514232 2009-02-01 10:50:42.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:42.554 read <- 14 10 1233514232 2009-02-01 10:50:43.053 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:43.054 read <- 14 10 1233514232 2009-02-01 10:50:43.553 write -> 14 535 QUERY_PIXMAP_LASTMODIFIED[]:[]Saturday Night Live[]:[][]:[]Host S... 2009-02-01 10:50:43.555 read <- 14 10 1233514232

comment:3 Changed 11 years ago by Nigel

Severity: mediumlow
Status: infoneeded_newnew

This has been a problem since 0.15. There is some problem with the embedded preview window, and it is never displayed.
The good news is that it was fixed in SVN trunk.
The bad news is that it is now broken in SVN trunk (since the MythUI rewrite of the Recordings screen), that I have spent too many days over the years trying to fix it, and that investigating/repairing in fixes just isn't a priority.
Todd, if it is really a large problem, I could hack the setting in fixes so that it never tries to display the live preview on OS X ?

comment:4 Changed 11 years ago by todd.ignasiak@…

It's not a big deal in general, since it only happens on the menu, where CPU is not in demand. Also, there is an easy manual fix by disabling previews. I didn't find it in my searches, so I just wanted to make sure it was reported.

comment:5 Changed 10 years ago by stuartm

Milestone: 0.21.10.22
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.