LinHES Forums http://forums.linhes.org/ |
|
Squashing some little bugs http://forums.linhes.org/viewtopic.php?f=21&t=22510 |
Page 1 of 1 |
Author: | DoomedTX [ Thu Mar 08, 2012 10:13 pm ] |
Post subject: | Squashing some little bugs |
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? |
Author: | DoomedTX [ Sat Mar 10, 2012 4:40 pm ] |
Post subject: | Re: Squashing some little bugs |
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. |
Author: | brfransen [ Sat Mar 10, 2012 5:36 pm ] |
Post subject: | Re: Squashing some little bugs |
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. |
Author: | DoomedTX [ Sat Mar 10, 2012 9:22 pm ] |
Post subject: | Re: Squashing some little bugs |
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? |
Author: | brfransen [ Mon Mar 12, 2012 3:54 pm ] |
Post subject: | Re: Squashing some little bugs |
Changing the paint engine was just a guess. ttf-droid and ttf-liberation are now in the extra-testing repo. |
Author: | nbdwt73 [ Sun Apr 01, 2012 3:28 pm ] |
Post subject: | Re: Squashing some little bugs |
I would like to squash one more... I (I suspect many of us) get the ALSA error:
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? |
Author: | bobmyth [ Sun Apr 01, 2012 10:09 pm ] |
Post subject: | Re: Squashing some little bugs |
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. |
Author: | nbdwt73 [ Mon Apr 02, 2012 7:01 pm ] |
Post subject: | Re: Squashing some little bugs |
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... |
Author: | nbdwt73 [ Wed Apr 04, 2012 12:41 pm ] |
Post subject: | Re: Squashing some little bugs |
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... |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |