Re: Selecting printer from apps core dumps. Howto debug?

2007-07-10 Thread Mark Kane
On Sat, Jun 30, 2007, at 22:06:58 +0100, Graham Bentley wrote:
 Its odd because the cups test page works, printing from
 mousepad and firefox works, but abiword bombs completely.
 In the short space of time I see it on the screen after 
 clicking print I can see there is no entry for the printer.

[...]
 [SOLVED] Set printer as 'default' using cups webmin.
 
 All working - thanks :)

Sorry to bring back the thread but I'm seeing this issue with a fresh
install of everything on a new machine.

Printing to an Epson USB printer from the CUPS test page works fine,
as does printing from Opera using the lpr binary installed by CUPS. When
trying to print via AbiWord or Claws Mail, they coredump. If the
printer is not set as default in CUPS (which is how I had it set before
reading this thread), it does bring up the print dialog in
Abiword/Claws but it dumps when you select the printer. If the printer
is set as default in CUPS, the app dumps right when opening the print
dialog and before the printer even shows up on the list of available
printers.

I think it's a somewhat new problem somewhere because I've been using
Xfce, CUPS, and these applications for quite a while on other machines
with no problems. CUPS is enabled in xfce4-print as well as
libgnomeprint, and GNOME printing is enabled in Claws Mail. The USB
permissions are also set properly. I also tried running AbiWord outside
of Xfce (in Xorg's default WM) which did the same thing. Maybe it's
something with libgnomeprint since both apps use it and both have
problems printing?

Here is a list of relevant software versions on the non working
machine:

abiword-2.4.6_1
claws-mail-2.10.0
cups-base-1.2.11_2
cups-pstoraster-8.15.4_1
gutenprint-cups-5.1.3
libgnomecups-0.2.2_4,1
libgnomeprint-2.18.0_2
libgnomeprintui-2.18.0_1
xfce4-print-4.4.1_1

Here is a list of relevant software versions on a machine that is
printing properly with Claws-Mail (and probably would with AbiWord if
it didn't have a problem with some laser printers):

abiword-gnome-2.4.6
claws-mail-2.8.1
cups-base-1.2.8
libgnomecups-0.2.2_2,1
libgnomeprint-2.12.1_3
libgnomeprintui-2.12.1_2
xfce4-print-4.4.0

Here's the backtrace from AbiWord if it helps:

http://tntpowerhost.com/mixx941/gdb_abiword_print.txt

Please let me know if I can provide any additional info. Thanks in
advance for any suggestions on how to fix or debug this.

-Mark

-- 
Internet Radio:
Party107 (Trance/Electronic) - http://www.party107.com
Rock 101.9 The Edge (Rock) - http://www.rock1019.net

IRC:
MIXXnet IRC Network - irc.mixxnet.net (Nick: MIXX941)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-07-02 Thread Nikola Lecic
(I proposed you a couple of things but generally it's a good idea to
ask this on freebsd-gnome@ as well, since at least the Abiword problem
is _maybe_ related to libgnomeprintui - Xfce.)

On Sat, 30 Jun 2007 22:06:58 +0100
Graham Bentley [EMAIL PROTECTED] wrote:

  have you compiled print/xfce4-print with Use cups as
  printing system? This matters, among other things. You 
  can check it with 'make showconfig' and change with 
  'make config'.
 
 3bsd# make showconfig
 === The following configuration options are available for
 xfce4-print-4.4.1_1: LPR=off Use lpr as printing system
  CUPS=on Use cups as printing system
  LETTER=off Use letter paper format instead of A4
 === Use 'make config' to modify these settings
 3bsd#

Ok...

 Its odd because the cups test page works, printing from
 mousepad and firefox works, but abiword bombs completely.
 In the short space of time I see it on the screen after 
 clicking print I can see there is no entry for the printer.

AFAIK Abiword has known (and very old) problem with Xfce, mainly
reflected in printing. As far as I understand it (I use neither Abiword
nor CUPS) the cause could be the Abiword's (false) expectations of pure
GNOME environment (including printing), which is only partially true in
Xfce. You can try this, but I have no idea what can happen:

  # portupgrade -f -m 'WANT_GNOME=no' abiword

Besides that, Claws Mail has by default similar expectations regarding
printing (libgnomeprintui). Do you have printing problems in Claws
Mail? Can you post here 'make showconfig of mail/claws-mail?

  I had similar problems until I removed lpr from the base.
  To do this, I added this to /etc/make.conf:
  WITHOUT_LPR=true
  CUPS_OVERWRITE_BASE=yes
  NO_LPR=yes
  and then rebuilt and reinstalled world and cups.

 I have tried adding lpd_enable=NO top rc.conf then realised
 cups replaces lpd anyway so that was no help.
 
 Somewhere along the line I have added
 
 [system=10]
 add path 'unlpt*' mode 0660 group cups
 add path 'ulpt*' mode 0660 group cups
 add path 'lpt*' mode 0660 group cups
 
 to /etc/devfs.rules and
 
 devfs_system_ruleset=system
 
 to rc.conf
 
 I wanted to avoid having to buildword just now ...
 
 and just read this thead ;
 
  CUPS installs its own version of lpr, lpq and lpd
  under /usr/local/bin.
  Therefore, be sure to delete lpr , lpq and lpd under 
  /usr/bin and then symlink from /usr/local/bin to /usr/bin.
 
 although lpd looks to be under /usr/sbin on my system?

You certainly shouldn't do this kind of random handiwork in your system.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-07-02 Thread Nikola Lecic
(I proposed you a couple of things but generally it's a good idea to
ask this on freebsd-gnome@ as well, since at least the Abiword problem
is _maybe_ related to libgnomeprintui - Xfce.)

On Sat, 30 Jun 2007 22:06:58 +0100
Graham Bentley [EMAIL PROTECTED] wrote:

  have you compiled print/xfce4-print with Use cups as
  printing system? This matters, among other things. You 
  can check it with 'make showconfig' and change with 
  'make config'.
 
 3bsd# make showconfig
 === The following configuration options are available for
 xfce4-print-4.4.1_1: LPR=off Use lpr as printing system
  CUPS=on Use cups as printing system
  LETTER=off Use letter paper format instead of A4
 === Use 'make config' to modify these settings
 3bsd#

Ok...

 Its odd because the cups test page works, printing from
 mousepad and firefox works, but abiword bombs completely.
 In the short space of time I see it on the screen after 
 clicking print I can see there is no entry for the printer.

AFAIK Abiword has known (and very old) problem with Xfce, mainly
reflected in printing. As far as I understand it (I use neither Abiword
nor CUPS) the cause could be the Abiword's (false) expectations of pure
GNOME environment (including printing), which is only partially true in
Xfce. You can try this, but I have no idea what can happen:

  # portupgrade -f -m 'WANT_GNOME=no' abiword

Besides that, Claws Mail has by default similar expectations regarding
printing (libgnomeprintui). Do you have printing problems in Claws
Mail? Can you post here 'make showconfig of mail/claws-mail?

  I had similar problems until I removed lpr from the base.
  To do this, I added this to /etc/make.conf:
  WITHOUT_LPR=true
  CUPS_OVERWRITE_BASE=yes
  NO_LPR=yes
  and then rebuilt and reinstalled world and cups.

 I have tried adding lpd_enable=NO top rc.conf then realised
 cups replaces lpd anyway so that was no help.
 
 Somewhere along the line I have added
 
 [system=10]
 add path 'unlpt*' mode 0660 group cups
 add path 'ulpt*' mode 0660 group cups
 add path 'lpt*' mode 0660 group cups
 
 to /etc/devfs.rules and
 
 devfs_system_ruleset=system
 
 to rc.conf
 
 I wanted to avoid having to buildword just now ...
 
 and just read this thead ;
 
  CUPS installs its own version of lpr, lpq and lpd
  under /usr/local/bin.
  Therefore, be sure to delete lpr , lpq and lpd under 
  /usr/bin and then symlink from /usr/local/bin to /usr/bin.
 
 although lpd looks to be under /usr/sbin on my system?

You certainly shouldn't do this kind of random handiwork in your system.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-06-30 Thread Graham Bentley

 have you compiled print/xfce4-print with Use cups as
 printing system? This matters, among other things. You 
 can check it with 'make showconfig' and change with 
 'make config'.

3bsd# make showconfig
=== The following configuration options are available for
xfce4-print-4.4.1_1: LPR=off Use lpr as printing system
 CUPS=on Use cups as printing system
 LETTER=off Use letter paper format instead of A4
=== Use 'make config' to modify these settings
3bsd#

Its odd because the cups test page works, printing from
mousepad and firefox works, but abiword bombs completely.
In the short space of time I see it on the screen after 
clicking print I can see there is no entry for the printer.


 I had similar problems until I removed lpr from the base.
 To do this, I added this to /etc/make.conf:
 WITHOUT_LPR=true
 CUPS_OVERWRITE_BASE=yes
 NO_LPR=yes
 and then rebuilt and reinstalled world and cups.

I have tried adding lpd_enable=NO top rc.conf then realised
cups replaces lpd anyway so that was no help.

Somewhere along the line I have added

[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups

to /etc/devfs.rules and

devfs_system_ruleset=system

to rc.conf

I wanted to avoid having to buildword just now ...

and just read this thead ;

 CUPS installs its own version of lpr, lpq and lpd
 under /usr/local/bin.
 Therefore, be sure to delete lpr , lpq and lpd under 
 /usr/bin and then symlink from /usr/local/bin to /usr/bin.

although lpd looks to be under /usr/sbin on my system?

Any further help on figuring this out appreciated! 










___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-06-28 Thread Nikola Lecic
On Thu, 28 Jun 2007 11:08:26 +0100
Graham Bentley [EMAIL PROTECTED] wrote:

 Hi FreeBSD'ers !
 
 I have now a nice desktop setup with Xfce4 etc
 thanks to all help from the list (what a great 
 place to be:)
 
 I have cups setup with a ppd to print to my usb 
 HP Busines Inkjet 1200.
 
 It works perfectly from doing the printer test
 page from the cups webmin:631 page.
 
 In applications, if I select this printer, the 
 app core dumps.
 
 Apps effected are Abiword, the printer admin
 xfprint4 in xfce4 and a few others.
 
 Who would I go about trying to diagnose this?

Hello David, have you compiled print/xfce4-print with Use cups as
printing system? This matters, among other things. You can check it
with 'make showconfig' and change with 'make config'.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-06-28 Thread Nikola Lecic
On Thu, 28 Jun 2007 14:07:21 +0200
Nikola Lecic [EMAIL PROTECTED] wrote:

 On Thu, 28 Jun 2007 11:08:26 +0100
 Graham Bentley [EMAIL PROTECTED] wrote:
 
  Hi FreeBSD'ers !
  
  I have now a nice desktop setup with Xfce4 etc
  thanks to all help from the list (what a great 
  place to be:)
  
  I have cups setup with a ppd to print to my usb 
  HP Busines Inkjet 1200.
  
  It works perfectly from doing the printer test
  page from the cups webmin:631 page.
  
  In applications, if I select this printer, the 
  app core dumps.
  
  Apps effected are Abiword, the printer admin
  xfprint4 in xfce4 and a few others.
  
  Who would I go about trying to diagnose this?
 
 Hello David, have you compiled print/xfce4-print with Use cups as
 printing system? This matters, among other things. You can check it
 with 'make showconfig' and change with 'make config'.

Graham, I trully appologise I typed the wrong name :( I somehow used
the beginning of my previous post (sent to David Marec).

Nikola
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Selecting printer from apps core dumps. Howto debug?

2007-06-28 Thread Tom Evans
On Thu, 2007-06-28 at 11:08 +0100, Graham Bentley wrote:
 Hi FreeBSD'ers !
 
 I have now a nice desktop setup with Xfce4 etc
 thanks to all help from the list (what a great 
 place to be:)
 
 I have cups setup with a ppd to print to my usb 
 HP Busines Inkjet 1200.
 
 It works perfectly from doing the printer test
 page from the cups webmin:631 page.
 
 In applications, if I select this printer, the 
 app core dumps.
 
 Apps effected are Abiword, the printer admin
 xfprint4 in xfce4 and a few others.
 
 Who would I go about trying to diagnose this?
 
 Any help appreciated :)

I had similar problems until I removed lpr from the base. To do this, I
added this to /etc/make.conf:
WITHOUT_LPR=true
CUPS_OVERWRITE_BASE=yes
NO_LPR=yes

and then rebuilt and reinstalled world and cups.

Now I can print from everything - including, impressively, Lotus Notes
R5 running in wine.

You probably only need one of WITHOUT_LPR/NO_LPR, but darned if I know
which. The extra line in make.conf seemed simpler than trawling the
makefiles.




signature.asc
Description: This is a digitally signed message part