assert errors in fcmatch.c

Bug #1000742 reported by Edward C. Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

A number of bugs have reported to various places about assert errors in fcmatch.c. For example:

Linux Viewer crashes on startup after update to Fontconfig 2.9.0
https://jira.secondlife.com/browse/STORM-1854

vdr-1.7.27 fails on compile against fontconfig-2.9.0
http://<email address hidden>/msg15804.html

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671139
Debian Bug report logs - #671139
Secondlifr viewer crash at init, when initializing fonts

I use up-to-date Debian testing (wheezy) with the amd64 architecture. I
have a HP LaserJet Professional P1102w printer. I have tried many (probably
too many) things to try to get this printer to work. When I boot to my
Windows 7 disk, the printer works.

When I submit a print job by "lpr text.txt", it is not printed. The
screen at "http://localhost:631/jobs/" shows:

ID Name User Size
HP_LaserJet_Professional_P1102w-44 Unknown Withheld 1k

Pages State
Unknown stopped "/usr/lib/cups/filter/texttopdf failed"

In /etc/cups/cupsd.conf, I set "LogLevel debug" and tried to print
something. I send the error_log to the CUPS people at
http://www.cups.org/newsgroups.php?gcups.general. In that group Michael
Sweet pointed out the following lines in the error_log file.

D [16/May/2012:07:44:06 -0400] [Job 47] HP_LaserJet_Professional_P1102w:
    fcmatch.c:850: IA__FcFontSort: Assertion `result != ((void *)0)' failed.
E [16/May/2012:07:44:06 -0400] PID 13896 (/usr/lib/cups/filter/texttopdf)
    crashed on signal 6.
E [16/May/2012:07:44:06 -0400] [Job 47] PDF file is damaged - attempting to
    reconstruct xref table...

He said:

    It looks like texttopdf is aborting because it can't find a font (or
    something).
    Contact the OpenPrinting folks who maintain this software...

The OpenPrinting forum accessible through
http://www.openprinting.org/printer/HP/HP-LaserJet_Pro_P1102w
"is down for maintenance".

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze the issue please follow following things.
=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic)
or http://hplipopensource.com/hplip-web/install/manual/index.html (manual if automatic does not work)

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin" (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing now.

If problem does not get solved then please capture some logs by doing following things.

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => /etc/init.d/cups restart
                  or
       => service cups restart
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print the file. If issue is not resolved then please send following files
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          => scanned copy of the printed document (if present)
    d) Please let me know the application used for testing.

Revision history for this message
Edward C. Jones (edcjones) wrote : Re: [Bug 1000742] Re: assert errors in fcmatch.c
Download full text (4.9 KiB)

Message from Sanjay Kumar:

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze
the issue please follow following things.

*** Things I did start with "***".

*** The date is may 19, 2012.
*** Use synaptic to make sure my Debian testing (wheezy) is up-to-date.
*** Use synaptic to find HPLIP-related packages (search for hp and foo2):
     foo2zjs, hp-ppd, hpijs, libhpmud0, libsane-hpaio,
printer-driver-foo2zjs
     printer-driver-hpcups, printer-driver-hpijs, printer-driver-pnm2ppa,
     printer-driver-pxljr

=> Download and install the latest HPLIP release from
http://hplipopensource.com/hplip-web/install/install/index.html (automatic)
or http://hplipopensource.com/hplip-web/install/manual/index.html (manual if
automatic does not work)

*** Started automatic install. Saved hplip-3.12.4.run to an empty
     directory.

     sh hplip-3.12.4.run
     Choose automatic mode
     It is Debian testing
     Enter root password
     Check for updates
     Re-plug printer
     Device Discovery window
         USB
         Showed correct printer
         Printer name:
             HP_LaserJet_Professional_P1102w_2
         PPD file:
             drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd

     Warning on xterm:
     /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127:
     /RuntimeWarning: PyOS_InputHook is not available for interactive use of
     /PyGTK
      set_interactive(1)

     Installation program exits.

=> Reconfigure print queue with the commands in the terminal mentioned
below.
        => system-config-printer (remove all print queues)
        => su -c "hp-plugin" (This will download right plugin)
        => hp-setup (It should not be run in a root mode. This command is
           adding print queue, make sure you select ppd name having
           "-ps" or "hpcups" substring)

*** system-config-printer Brings up a window showing two copies of the
     P1102w. Deleted both printers. Window says "There are no printers
     configured yet".
*** As root: hp-plugin
     Download and install the plugin
     Agree to license
     Plugin successful
*** As regular user:
     hp_setup
         USB
         Finds p1102w printer
         printer name:
             HP_LaserJet_Professional_P1102w
         PPD file:
             drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd

=>Try printing now.
*** lpr text.txt
     lpr: Error - no default destination available.
*** In iceweasel (aka firefox), go to http://localhost:631.
     Click on printer name.
     Click on Administation.
     Click Set at Server Default
*** lpr text.txt
     Nothing is printed.

If problem does not get solved then please capture some logs by doing
following things.

=>Enable/Clear Logs as mentioned below
     a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in
          root mode)
       => open /etc/cups/cupsd.conf from terminal e.g (vi
          /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then
          replace
              LogLevel warn
          with
              LogLevel debug
              hpLogLevel 15
     *** Done.

     b) Open Terminal an...

Read more...

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Edwards,

Thanks for the logs. This version of Debian is not supported in HPLIP yet. The support for the same will be provided soon in HPLIP 3.12.6 version (which is planned soon). Please wait for the release.

Revision history for this message
Edward C. Jones (edcjones) wrote :

On 05/21/2012 05:10 AM, Sanjay Kumar wrote:
> Hello Edwards,
>
> Thanks for the logs. This version of Debian is not supported in HPLIP
> yet. The support for the same will be provided soon in HPLIP 3.12.6
> version (which is planned soon). Please wait for the release.
>
The following should also be dealt with:
  See http://foo2zjs.rkkda.com/forum/read.php?68,2877

...

*** PART ONE: Disable the fake CD-ROM feature ***

The printer has a built-in fake CD-ROM feature which prevents it from
working correctly on non-Windows PCs. Once it is connected to a Windows
PC, a CD-ROM appears containing Windows drivers. In order for HP
LaserJet P1102 to work correctly on a FreeBSD PC, you must disable this
feature.

1.Connect the printer to a Windows PC. (Unfortunately you have to
connect it to a Windows PC which is too bad.)
2.Insert the original driver CD. (The physical CD-ROM that ships with
the product, NOT THIS FAKE CD-ROM).
3.Run SIUtility.exe or SIUtility64.exe from UTIL folder to disable this
fake CD feature. (It's called “HP Smart Install”
  ...

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

Other bug subscribers

Remote bug watches

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