Bug 439114

Summary: Closes when hitting the print button
Product: [Fedora] Fedora Reporter: Mike Chambers <mike>
Component: gtk2Assignee: Marek Kašík <mkasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: mbarnes, mcrha, mkasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-10 11:32:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Print error via bug buddy none

Description Mike Chambers 2008-03-27 02:27:19 UTC
Description of problem:While highlighting an email, and then hitting the print
button, the program closes.


Version-Release number of selected component (if applicable):
evolution-data-server-2.22.0-3.fc9.x86_64
evolution-bogofilter-2.22.0-4.fc9.x86_64
evolution-2.22.0-4.fc9.x86_64
evolution-help-2.22.0-4.fc9.x86_64



How reproducible:Almost always


Steps to Reproduce:
1.Open evolution
2.highlight an email but don't open
3.Click on the print button
  
Actual results:The program closes/exits/crashes


Expected results:Should print the email/message


Additional info:After today's updates, it doesn't seem to do it all the time
now. Just on occasion, so I don't know if a particular type code in the email or
whatever else might be causing it.

Comment 1 Matthew Barnes 2008-03-27 03:41:31 UTC
When Evolution closes do you get a Bug Buddy dialog?  If so, can you post the
Bug Buddy report here (with debugging symbols)?

Also, have you noticed whether this occurs for text/html messages or text/plain
messages or both?

Comment 2 Mike Chambers 2008-03-27 10:41:20 UTC
No dialog, it just closes with nothing left.

It does it on both I guess.  I tested on few emails to the list, and it did it 3
times out of 10.  Going back to those same emails after reopening evo, and it
didn't close this time, as it gave me the print dialog.  I did try it on a
couple of html ones, from espn and Dallas News sites, and they didn't close it.

So right now, no idea what is causing it.

Comment 3 Matthew Barnes 2008-03-27 11:55:38 UTC
Maybe try running Evolution from a terminal and look for clues on stdout/stderr.
 What you're describing sounds like it might be a missing library symbol.

I'll try reproducing this for myself later today.

Comment 4 Mike Chambers 2008-03-27 22:41:18 UTC
Opened it via gnome-terminal and finally got it to close on me, but no debug
messages/errors/nothing at all.  See below..

[mike@scrappy ~]$ evolution
CalDAV Eplugin starting up ...
** (evolution:5066): DEBUG: mailto URL command: evolution --component=mail %s
** (evolution:5066): DEBUG: mailto URL program: evolution
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name
org.freedesktop.NetworkManager was not provided by any .service files
[mike@scrappy ~]$ 

Everything above cept my last prompt was there while it was running.  Went
straight to command prompt once it closed with no messages.

Comment 5 Matthew Barnes 2008-03-27 23:53:18 UTC
Huh, that's bizarre.

Not suprisingly I haven't been able to reproduce this for myself yet, but I'll
scout around for other similar sounding bug reports.

Comment 6 Mike Chambers 2008-03-28 00:02:03 UTC
HAHAHAHAHA, kinda ironic, but when I clicked on this email, I accidentally hit
the print button, and evo closed.

Anyway, I just kept going through emails and randomly highlighting and hitting
print to try n get it to close.

Comment 7 Milan Crha 2008-03-28 08:35:35 UTC
Maybe when you've running evolution through gdb, then in time of crash it will
stop and show what's going wrong. You'll be also able to type "thread apply all
bt" and we will see where it get crashed, and maybe why too.

Comment 8 Mike Chambers 2008-03-30 14:30:17 UTC
Ok, after yesterday's updates, and today again accidentally clicking on print
button, got a close/crash, but this time bug buddy was used.  Will attach it's
report, as well as the url to it being pointed upstread too.

Comment 9 Mike Chambers 2008-03-30 14:31:12 UTC
Created attachment 299625 [details]
Print error via bug buddy

Comment 10 Matthew Barnes 2008-03-30 15:57:25 UTC
Awesome, thanks for the stack trace.  The crash is in the CUPS backend of
GtkPrint, so reassigning to gtk2.  Do you see these crashes when trying to print
from other GNOME applications like GEdit or Evince?

Comment 11 Mike Chambers 2008-03-30 18:04:46 UTC
When printing pdf files, I sometimes get the program to do that.  Mostly adobe
reader as I use that.

Comment 12 Marek Kašík 2008-04-07 09:54:37 UTC
Hello Mike,
I have been trying to reproduce this bug but with no success. Could you install
gtk with debuginfo and try to run evolution inside of gdb? And could you send me
"thread apply all bt" result of crash?
You can install gtk with debuginfo via "debuginfo-install gtk2" command.

  Thanks

    Marek


Comment 13 Marek Kašík 2008-04-07 10:15:03 UTC
And again. Could you do that for evolution too? I see that the log shows number
of  lines but not for all libraries.

  Thank you

    Marek

Comment 14 Marek Kašík 2008-04-07 19:11:15 UTC
Hello,
I reproduced the bug and I fixed it. There was problem with function
cups_parse_user_default_printer() (64bit specific). This function calls
g_fopen() but there was no declaration of the g_fopen() (missing #define
<glib/gstdio.h>).
I committed changes into cvs and I built it with koji.
Thank you for reporting this bug.

  Regards

    Marek


Comment 15 Marek Kašík 2008-04-07 19:21:50 UTC
Small correction of previous comment. There should be #include <glib/gstdio.h>
of course. :-)

  Marek

Comment 16 Matthew Barnes 2008-04-07 19:38:25 UTC
Nice catch.

Comment 17 Marek Kašík 2008-04-10 11:32:06 UTC
Hello,
I'm closing this bug with resolution RAWHIDE.

  Regards

    Marek