Mythbuntu, Ubuntu derivative focused upon MythTV

Missing symlink in fonts causes mytharchive to crash

Reported by max on 2013-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mythbuntu
Undecided
Unassigned

Bug Description

Version : 0.26.0+fixes.20130221.c3fff6e-0ubuntu0mythbuntu1
Reproduction :
1. Choose MythArchive from myth-frontend
2. Record something to DVD
3. Crashes after encoding.

Bug:
Missing font called by mythburn.pl due to missing symlink in /usr/share/mythtv/fonts

- I added more debug info to mythburn.py:getFont() and found out it's looking for /usr/share/mythtv/fonts/FreeSansBold.ttf and not finding it.

Fix:
Add symlink :
    cd /usr/share/mythtv/fonts
    ln -s ../../fonts/truetype/freefont/* .

- Related Required bug : http://www.mythtv.org/pipermail/mythtv-users/2012-October/341897.html

Symptom: This is the tail of mythburn.log:

Traceback (most recent call last):
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5183, in main
    processJob(job)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4892, in processJob
    createMenu(format, dpi, files.length)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3543, in createMenu
    spumuxdom, spunode, numberofitems, 0,"")
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3283, in drawThemeItem
    paintText(draw, bgimage, text, node)
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1151, in paintText
    lines = intelliDraw(draw, text, font, width - (hindent * 2))
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 980, in intelliDraw
    if drawer.textsize(' '.join(thistext),font.getFont())[0] > containerWidth:
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 230, in getFont
    self.font = ImageFont.truetype(self.fontFile, int(self.size))
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 218, in truetype
    return FreeTypeFont(filename, size, index, encoding)
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 134, in __init__
    self.font = core.getfont(file, size, index, encoding)
IOError: cannot open resource

max (max-warped) wrote :

3rd Bug in this flow : missing dependency M2VRequantiser

Looks related to https://bugs.launchpad.net/ubuntu/+bug/779482

Symptom:
Running: "M2VRequantiser" 1.00634 2880661662 < "/storage/temp/work/1/stream.mv2" > "/storage/temp/work/1/stream.small.mv2"
sh: 1: M2VRequantiser: not found
************************************************************
ERROR: Failed while running M2VRequantiser. Command was "M2VRequantiser" 1.00634 2880661662 < "/storage/temp/work/1/stream.mv2" > "/storage/temp/work/1/stream.small.mv2"
See mythburn.log for more information.
************************************************************

Mario Limonciello (superm1) wrote :

Are you sure that's the correct fix for the font problem? Those symlinks actually already exist in mythtv-common.

Changed in mythbuntu:
status: New → Fix Committed
Mario Limonciello (superm1) wrote :

Oh actually I see now, its' the bold font that's missing.

Added to master and fixes. Should be in tomorrow's build.

https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf

On 02/21/2013 05:29 PM, Mario Limonciello wrote:
> Oh actually I see now, its' the bold font that's missing.
>
> Added to master and fixes. Should be in tomorrow's build.
>
> https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
> https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf
>

Thanks Mario. Should I file bugs for the other two bugs in the same
flow that were mentioned? I was able to burn the DVD after the three fixes.

-m

Mario Limonciello (superm1) wrote :

Yeah file bugs for each other issue.
On Feb 21, 2013 7:54 PM, "Max Baker" <email address hidden> wrote:

> On 02/21/2013 05:29 PM, Mario Limonciello wrote:
> > Oh actually I see now, its' the bold font that's missing.
> >
> > Added to master and fixes. Should be in tomorrow's build.
> >
> >
> https://github.com/MythTV/packaging/commit/9a351c73bbed475ecfe70d79462dcfa47e498fc2
> >
> https://github.com/MythTV/packaging/commit/ca00a2f934b934a8af74cd7b0f68c9c58ba5cabf
> >
>
> Thanks Mario. Should I file bugs for the other two bugs in the same
> flow that were mentioned? I was able to burn the DVD after the three
> fixes.
>
> -m
>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers