[evince] cairo context error: NULL pointer

Bug #140643 reported by Bogdan Butnaru
34
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: evince

Hello! I'm using Ubuntu Gutsy, and after a big update this morning I noticed some strange behavior.

I'm not sure if this is related, but I noticed Evince throwing up repeated warnings of "cairo context error: NULL pointer" in the console when opening a certain file. I tried with a couple different files, and it didn't happen, so it might be a different bug.

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

This is the file showing the warnings, please check if it happens for others, too.

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

The bug has been opened on https://bugs.launchpad.net/bugs/140643

"Binary package hint: evince

Hello! I'm using Ubuntu Gutsy, and after a big update this morning I noticed some strange behavior.

I'm not sure if this is related, but I noticed Evince throwing up repeated warnings of "cairo context error: NULL pointer" in the console when opening a certain file. I tried with a couple different files, and it didn't happen, so it might be a different bug.

http://launchpadlibrarian.net/9338165/IN100_TD_2005_06.pdf
IN100_TD_2005_06.pdf (220.2 KiB, application/pdf)

This is the file showing the warnings, please check if it happens for others, too."

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=12504

Changed in evince:
importance: Undecided → Low
status: New → Triaged
Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
In , Pascal Terjan (pterjan42) wrote :

Created an attachment (id=11858)
Anothe PDF with the same issue

Revision history for this message
In , Pascal Terjan (pterjan42) wrote :
Download full text (16.0 KiB)

#0 _cairo_set_error (cr=0x851d520, status=CAIRO_STATUS_NULL_POINTER) at cairo.c:119
No locals.
#1 0xb755aa9d in CairoOutputDev::drawImageMask (this=0x853a2f0, state=0x8538aa8, ref=0x0, str=0x81550a0, width=16, height=16, invert=1,
    inlineImg=1) at CairoOutputDev.cc:686
        matrix = {xx = 0, yx = 0, xy = 1.350196105240399e-268, yy = -3.7589387670182106e-43, x0 = 6.8962046478836532e-316,
  y0 = 5.3205314387727897e-315}
#2 0xb755ad04 in CairoImageOutputDev::drawImageMask (this=0x853a2f0, state=0x8538aa8, ref=0x0, str=0x81550a0, width=16, height=16, invert=1,
    inlineImg=1) at CairoOutputDev.cc:1391
        cr = (cairo_t *) 0x851d520
        surface = (cairo_surface_t *) 0x851cf50
        image = <value optimized out>
#3 0xb7423bf0 in Gfx::doImage (this=0x83f96a0, ref=0x0, str=0x81550a0, inlineImg=1) at Gfx.cc:3503
        dict = <value optimized out>
        maskDict = <value optimized out>
        width = 16
        height = 16
        bits = 1
        maskBits = <value optimized out>
        csMode = streamCSNone
        mask = -1234755788
        invert = <value optimized out>
        colorSpace = <value optimized out>
        maskColorSpace = <value optimized out>
        colorMap = <value optimized out>
        maskColorMap = <value optimized out>
        maskObj = {type = objNone, {booln = 1084023203, intg = 1084023203, real = 1.5389549160653998e-313, string = 0x409ce1a3,
    name = 0x409ce1a3 <Address 0x409ce1a3 out of bounds>, array = 0x409ce1a3, dict = 0x409ce1a3, stream = 0x409ce1a3, ref = {
      num = 1084023203, gen = 7}, cmd = 0x409ce1a3 <Address 0x409ce1a3 out of bounds>}}
        smaskObj = {type = objNone, {booln = 139698928, intg = 139698928, real = 2.765496572363419e-313, string = 0x853a2f0,
    name = 0x853a2f0 "È8V·(ŠS\bÓwÅþ\005Ÿ\202@\r\220n\004Ñé\202@", array = 0x853a2f0, dict = 0x853a2f0, stream = 0x853a2f0, ref = {
      num = 139698928, gen = 13}, cmd = 0x853a2f0 "È8V·(ŠS\bÓwÅþ\005Ÿ\202@\r\220n\004Ñé\202@"}}
        maskColors = {-1227452428, -1227448032, 138572528, -1234755976, -1228308464, -1227448032, 138572528, 138385168, -1, 0, 138572520, 1,
  6, 0, -1219323620, 135614624, -1234755840, -1234755756, -1219881185, 138572528, 13, -1219323620, -1220122968, 138572528, 138755792,
  -1234755864, -1219323620, -1219323620, 135614624, 139523360, -1220062344, -1234755864, 138572528, 139523360, -1234755864, -1227452428, 0,
  -1227448032, -1234755864, -1228314697, -1234755864, -1234755840, 13, 139523360, -1219674917, 13, 139471704, 1084023203, 13, 139523360,
  -1220066966, 13, 138572528, 1084023203, -1219323620, 139657936, 139523360, -1234755756, -1220404511, 139523360, -1234755744, -1234755744,
  0, 0}
        maskWidth = <value optimized out>
        maskHeight = <value optimized out>
        maskInvert = <value optimized out>
        maskStr = <value optimized out>
        obj1 = {type = objNone, {booln = 139506480, intg = 139506480, real = 1848.4092114076011, string = 0x850b330,
    name = 0x850b330 "Ð>E\bà¿\024\b\b", array = 0x850b330, dict = 0x850b330, stream = 0x850b330, ref = {num = 139506480, gen = 1084023203},
    cmd = 0x850b330 "Ð>E\bà¿\024\b\b"}}
        obj2 = {type = objNone, {booln = 1, in...

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

I believe this may be related to the current cairo pattern not being set.

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

Should be fixed in git.

Thanks

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug has been fixed upstream now

Changed in poppler:
status: Triaged → Fix Committed
Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

Any idea when it will be accessible here? BTW, not sure if that's related or interesting, but I can't print the document given above. (Evince usually prints PDFs.)

Revision history for this message
Rich (rincebrain) wrote :

I'm still getting this in Ubuntu Hardy.

libpoppler-glib2 0.6.2-1
(evince 2.21.1-0ubuntu2, though that's not the bug source)

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

The current versions still display warnings

Revision history for this message
Sebastien Bacher (seb128) wrote :

Reopened the upstream bug since the warnings are still displayed

Changed in poppler:
status: Fix Committed → Triaged
Changed in poppler:
status: Fix Released → Confirmed
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

The same error is showing for me with the attached file. It's a physics book from http://arxiv.org/abs/hep-th/0107094 . Scroll to page 4 to trigger the error.

Revision history for this message
In , Konstantin Lepikhov (lakostis) wrote :

Still get warnings with libcairo-1.4.14 and libpoppler-0.6.4.

Revision history for this message
Rich (rincebrain) wrote :

Bug still occurs for me.

libpoppler2 0.6.4-1ubuntu1
libcairo2 1.6.0-0ubuntu1

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

Both IN100_TD_2005_06.pdf and plan.pdf work for me with current poppler (and cairo from git master too) without any warning. Feel free to reopen it again if the problem is still present for you. Thanks.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in current version

Changed in poppler (Ubuntu):
status: Triaged → Fix Released
Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
A. Denton (aquina) wrote :

That error (cairo context error: NULL pointer) flooded my ~/.xsession-errors on Xubuntu 8.04 (HH) LTS. I've got the same error about 1500 times in a row. Log date is 29th Aug. 2009.

Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.