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 467643 - Segmentation fault in print plugin
Segmentation fault in print plugin
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal major
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 468021 468407 469022 469635 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-08-17 12:49 UTC by Stefan Röllin
Modified: 2007-08-23 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set default page setup if setup is null (1.51 KB, patch)
2007-08-17 12:56 UTC, Stefan Röllin
committed Details | Review

Description Stefan Röllin 2007-08-17 12:49:25 UTC
Please describe the problem:
The print plugin crashes in a new install. 

Problem is that 'setup' is null in gtk_page_setup_get_paper_width called from 
  print_size_info_get_page_dimensions
  gimp_size_info_get_max_offsets
  print_size_info_update_offsets
  print_offset_frame
  print_page_layout_gui


Steps to reproduce:
1. Try open the print dialog without the file 'print-settings' in the directory .gimp-2.x


Actual results:
print dialog does not appear

Expected results:
print dialog should appear

Does this happen every time?
yes, if 'print-settings' does not exist

Other information:
patch follows
Comment 1 Stefan Röllin 2007-08-17 12:56:51 UTC
Created attachment 93846 [details] [review]
Set default page setup if setup is null
Comment 2 Michael Natterer 2007-08-17 15:33:12 UTC
Thanks, fixed in SVN:

2007-08-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-page-layout.c: set a default page setup on
	the operation if it is NULL to prevent crash in new installations
	(which don't have a setup yet). Fixes bug #467643, patch from
	Stefan Röllin.
Comment 3 Michael Natterer 2007-08-22 00:08:44 UTC
*** Bug 469022 has been marked as a duplicate of this bug. ***
Comment 4 Michael Natterer 2007-08-23 18:38:07 UTC
*** Bug 468021 has been marked as a duplicate of this bug. ***
Comment 5 Michael Natterer 2007-08-23 18:39:40 UTC
*** Bug 469635 has been marked as a duplicate of this bug. ***
Comment 6 Michael Natterer 2007-08-23 18:40:21 UTC
*** Bug 468407 has been marked as a duplicate of this bug. ***