Bug 11775 - critical warnings with find
Summary: critical warnings with find
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 12:07 UTC by Carlos Garcia Campos
Modified: 2007-08-27 11:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Carlos Garcia Campos 2007-07-30 12:07:16 UTC
Bug forwarded from Evince: http://bugzilla.gnome.org/show_bug.cgi?id=461905

"Steps:
0) Open this document with evince:
http://www.t-home.de/dlp/eki/downloads/Speedport/bedanl_speedport_w700v_08.2006.pdf
1) Search for "anruf" (no quotes)

Results:
(evince:31136): GdkPixbuf-CRITICAL **: gdk_pixbuf_new: assertion `width > 0'
failed
(evince:31136): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion
`GDK_IS_PIXBUF (pixbuf)' failed
(evince:31136): Gdk-CRITICAL **: gdk_draw_pixbuf: assertion `GDK_IS_PIXBUF
(pixbuf)' failed
(evince:31136): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
[over and over again]

Looking at the trace, it seems to be creating a pixbuf with width = 0, which
will always fail.

#0  g_log (log_domain=0xb755da20 "GdkPixbuf", log_level=G_LOG_LEVEL_CRITICAL,
format=0xb740bec7 "%s: assertion `%s' failed") at gmessages.c:516
#1  0xb73c3ecb in g_return_if_fail_warning (log_domain=0xb755da20 "GdkPixbuf",
pretty_function=0xb755df41 "gdk_pixbuf_new", expression=0xb755f584 "width > 0")
    at gmessages.c:532
#2  0xb754e6de in gdk_pixbuf_new (colorspace=GDK_COLORSPACE_RGB, has_alpha=1,
bits_per_sample=8, width=0, height=14) at gdk-pixbuf.c:253
#3  0x08075079 in ev_view_expose_event (widget=0x8113210, event=0xbfe51764) at
ev-view.c:3378

This is with poppler cvs, evince svn trunk, both updated today."

I did some tests in poppler and it seems that TextOutputDev::findText is returning some matches with width = 0

  (158.237300,257.270300)-(158.237300,268.070300)
 width: 0.000000, height: 10.800000
  (183.701900,257.270300)-(187.615100,268.070300)
 width: 3.913200, height: 10.800000
  (216.539300,257.270300)-(216.539300,268.070300)
 width: 0.000000, height: 10.800000
  (297.180200,257.270300)-(297.180200,268.070300)
 width: 0.000000, height: 10.800000
Comment 1 Albert Astals Cid 2007-08-26 08:47:11 UTC
Can't reproduce using Poppler::Page::search in the qt4 bindings.
Comment 2 Albert Astals Cid 2007-08-27 11:38:10 UTC
Fixed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.