When creating a simple views pdf, i always get a memory issue when trying to edit the view.
It seems that the following line is the culprit:
#1042 in views_pdf_template.php

so basicly on line 969 the following happens

foreach ($fonts as $font) {
        $name = self::getFontNameByFileName($font->uri);
        if(isset($name)) {
          $font_mapping[$font->name] = $name;
        }
    }

getFontNameByFileName is being called, and that's causing the error, so when i comment out the $name = self::getFontNameByFileName($font->uri) part, the memory issue disappears.

my memory limit is set to 128mb

Comments

Simon Georges’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev

I suppose it isn't better with the last version, so changing it during triage.

killua99’s picture

Priority: Normal » Major
Status: Active » Needs work

This issue is delicate .... because it's PHP setup.

killua99’s picture

Issue summary: View changes
Status: Needs work » Closed (cannot reproduce)

Re-open if you have a PHP setup with more than 256M and this still happen.