View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Mar 08, 2012 10:13 pm 
Offline
Joined: Wed Apr 12, 2006 3:05 pm
Posts: 252
Location: GA, USA
I'm using an updated R7.2 and am trying to squash some little annoyances. I wouldn't bother except they cause so many repeated lines in my mythfrontend.log that it's nearly impossible to find any useful information in there. The 2 problems are the lack of a Droid Sans font and QPainter errors.

The Droid Sans errors are like this:
Code:
2012-03-08 21:25:37.164 MythFontProperties, Error: Failed to load 'Droid Sans', got 'DejaVu Sans'
 instead

As far as I can tell, there is no Droid Sans installed on the system. I searched for ttf packages with pacman and got few choices. I see the Droid Sans font is in the AUR in ttf-google-webfonts, but I just don't know or remember how to install packages from there. Seems like an easy fix as font files aren't that large. Other Google solutions mention to simply "install the font" but they are for different distros which include that font in the repos.

The other problem, causing many more lines in the log, is with QPainter. A typical segment looks like this:

Code:
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::end: Painter not active, aborted

This is repeated hundreds of times in the log. I did some Google searching and haven't found an answer, just the same problem with no solution. It seems to be a less important error because as far as I can tell MythTV is working, but I'd like to get these errors out of my log so that I don't have to wade through pages of these errors to find useful info.

Any ideas on this errors?

_________________
LinHES R8.6 BE/FE GIGABYTE GA-X48-DS5 / EVGA GeForce 9800 GTX+ / 4GB DDR2 RAM


Top
 Profile  
 
PostPosted: Sat Mar 10, 2012 4:40 pm 
Offline
Joined: Wed Apr 12, 2006 3:05 pm
Posts: 252
Location: GA, USA
Update: I searched for Droid Sans ttf on Google and was able to download the font for free. I moved it into the /usr/share/fonts/TTF directory and made it root:root like the other files. I also downloaded Liberation Sans which was showing up in the logs. The font is different now so I guess it worked. Still trying to figure out the QPainter errors.

_________________
LinHES R8.6 BE/FE GIGABYTE GA-X48-DS5 / EVGA GeForce 9800 GTX+ / 4GB DDR2 RAM


Top
 Profile  
 
PostPosted: Sat Mar 10, 2012 5:36 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
What theme are you using that requires those fonts?

What is your MythTV Configuration --> Appearance --> Paint Engine set to? If it isn't set to OpenGL try that and see if the errors go away.


Top
 Profile  
 
PostPosted: Sat Mar 10, 2012 9:22 pm 
Offline
Joined: Wed Apr 12, 2006 3:05 pm
Posts: 252
Location: GA, USA
brfransen wrote:
What theme are you using that requires those fonts?

What is your MythTV Configuration --> Appearance --> Paint Engine set to? If it isn't set to OpenGL try that and see if the errors go away.


I'm using MythCenter Wide. It looked fine without the fonts but now that I've downloaded them it will be nice to get those errors out of the logs. Edit: I'm already using OpenGL. Should I change it?

_________________
LinHES R8.6 BE/FE GIGABYTE GA-X48-DS5 / EVGA GeForce 9800 GTX+ / 4GB DDR2 RAM


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 3:54 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Changing the paint engine was just a guess.

ttf-droid and ttf-liberation are now in the extra-testing repo.


Top
 Profile  
 
PostPosted: Sun Apr 01, 2012 3:28 pm 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 434
Location: Charlotte, NC
I would like to squash one more... I (I suspect many of us) get the ALSA error:

    ALSA, Error: Setting hardware audio buffer size to 128
    ALSA, Error: Error opening /proc/asound/card0/pcm1p/sub0/prealloc: Permission denied.
    ALSA, Error: Try to manually increase audio buffer with: echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc
    ALSA, Error: Unable to sufficiently increase ALSA hardware buffer size - underruns are likely

I can eliminate the error by running "echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc" from a console. I have tried putting this in /etc/runit/1.local to no avail (several suggestions in other blogs point to adding it to startup scripts). I dont see any indication in any logs that it actually executes from the startup but I also suspect that 1.local is not the right place... Anybody fix this?

_________________
nbdwt73


Top
 Profile  
 
PostPosted: Sun Apr 01, 2012 10:09 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
nbdwt73 wrote:
I can eliminate the error by running "echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc" from a console. I have tried putting this in /etc/runit/1.local to no avail (several suggestions in other blogs point to adding it to startup scripts). I dont see any indication in any logs that it actually executes from the startup but I also suspect that 1.local is not the right place... Anybody fix this?

The file /etc/runit/1.local is run by root so you do not need to use sudo. I simply put:
Code:
echo 576 > /proc/asound/card1/pcm3p/sub0/prealloc

In my file. Note: your path is slightly different from mine, adjust to your needs.


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 7:01 pm 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 434
Location: Charlotte, NC
Thanks... That is my point though. I have "echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc" in 1.local (pcm1p is my corresponding playback channel) and it does not work... Works fine from a console though. (I use "sudo" almost by habit - best practice kind of thing...).

To be honest, this bug doesn't affect anyhing. It is just annoying that I know how to fix it but, for some reason, I can't make it work...

_________________
nbdwt73


Top
 Profile  
 
PostPosted: Wed Apr 04, 2012 12:41 pm 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 434
Location: Charlotte, NC
UPDATE - well never let it be said that an old dog can't learn new tricks... I did not realize that, for some reason (and under certain conditions), using "sudo" in a ROOT run job can create issues (thanks bobmyth) but, sure enough, when removed this worked fine...

_________________
nbdwt73


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu