After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683072 - Print dialog shows cryptic status message and displays garbage in status line
Print dialog shows cryptic status message and displays garbage in status line
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-08-30 23:14 UTC by Sebastian
Modified: 2012-11-26 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Garbage and utf8 arrors in pango (37.72 KB, image/png)
2012-08-30 23:14 UTC, Sebastian
  Details
Sanitize memory handling in cups_request_printer_list_cb (2.96 KB, patch)
2012-11-22 18:14 UTC, Christophe Fergeau
committed Details | Review

Description Sebastian 2012-08-30 23:14:46 UTC
Created attachment 222998 [details]
Garbage and utf8 arrors in pango

Everytime I open the printer dialog there is one printer for which the status line in the table keeps updating itself with garbage all the time.

As can be seen on the screenshot which i attached the status line shows strange boxes and cryptic characters. It also keeps updating on a high frequency (more than once per second) and everytime it changes it logs a message on the terminal like this:

(gedit:14079): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

I can confirm that this bug is still present in a fairly recent version of gtk 3.5.x which i checked out from git a few days ago.
Comment 1 Christophe Fergeau 2012-11-22 18:14:51 UTC
Created attachment 229650 [details] [review]
Sanitize memory handling in cups_request_printer_list_cb

gtk+ was trying to display already freed strings, leaking memory,
...I noticed this because I was getting weird blinking characters
as the status of my cups printers, and valgrind confirmed something
was wrong.
Comment 2 Matthias Clasen 2012-11-24 00:21:49 UTC
Review of attachment 229650 [details] [review]:

Looks good, thanks