Description of problem: Opened site http://pa.wikipedia.org/ in firefox. Firefox is crashing while printing to pdf file. Got error on terminal: [jassy@localhost ~]$ firefox Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "pk-gtk-module" firefox: cairo-pdf-surface.c:1913: _cairo_pdf_surface_emit_image: Assertion `image->format == CAIRO_FORMAT_RGB24 || image->format == CAIRO_FORMAT_ARGB32 || image->format == CAIRO_FORMAT_A8 || image->format == CAIRO_FORMAT_A1' failed. Version-Release number of selected component (if applicable): firefox-10.0.1-1.fc17 How reproducible: 100% Steps to Reproduce: 1. start firefox in local lang 2. open http://5abi.com/ 3.print the page to pdf file Actual results: firefox application is crashing. Also tried in english local to print English page, and got same result. Expected results: application should not crash Additional info:
Do you use any virtualization or is it a bare metal? Can you attach a backtrace?(http://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products)
Reproduced on ja locale, Open http://ja.wikipedia.org and print the page to pdf file. Please refer to the attached screenshot and details file.
Created attachment 571033 [details] Firefox is crashing while printing to pdf file
Created attachment 571034 [details] details file
Add-ons: langpack-ja.org:10.0.1,{972ce4c6-7e08-4474-a285-3208198ce6fd}:10.0.1 BuildID: 20120209085459 CrashTime: 1332141224 EMCheckCompatibility: true FramePoisonBase: 7ffffffff0dea000 FramePoisonSize: 4096 InstallTime: 1332140841 Notes: GLXtest process failed (exited with status 1): VENDOR VMware, Inc. RENDERER Gallium 0.4 on llvmpipe (LLVM 0x300) VERSION 2.1 Mesa 8.0.1 TFP TRUE X error occurred in GLX probe, error_code=8, request_code=72, minor_code=0 ProductName: Firefox ReleaseChannel: default SecondsSinceLastCrash: 267 StartupTime: 1332141194 Theme: classic/1.0 Throttleable: 1 Vendor: Mozilla Version: 10.0.1 This report also contains technical information about the state of the application when it crashed.
(In reply to comment #1) > Do you use any virtualization or is it a bare metal? Can you attach a > backtrace?(http://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products) Yes I got this problem on VM.
I'm now seeing this on F16 with updates-testing in Firefox and Thunderbird (10 and 11) when printing to a printer.
#5 0x4e7aec34 in _cairo_pdf_surface_emit_image (surface=0xa53e5000, image=0x9e09cb80, image_res=0xbfe4b438, filter=CAIRO_FILTER_GOOD) at cairo-pdf-surface.c:1910 1910 assert (image->format == CAIRO_FORMAT_RGB24 || (gdb) list 1905 /* These are the only image formats we currently support, (which 1906 * makes things a lot simpler here). This is enforced through 1907 * _cairo_pdf_surface_analyze_operation which only accept source surfaces of 1908 * CONTENT_COLOR or CONTENT_COLOR_ALPHA. 1909 */ 1910 assert (image->format == CAIRO_FORMAT_RGB24 || 1911 image->format == CAIRO_FORMAT_ARGB32 || 1912 image->format == CAIRO_FORMAT_A8 || 1913 image->format == CAIRO_FORMAT_A1); 1914 (gdb) print image->format $2 = CAIRO_FORMAT_RGB16_565 Ah, I know why I started seeing this - I recently changed my X color depth to 16 for testing.
Yes, the screen color depth is supposed to be 24 or 32 bit. 16 bit color modes are not supported by cairo - we can implement the CAIRO_FORMAT_RGB16_565 format for printing.
Hm, I'm unable to reproduce it, even with the 16bit color depts. How did you changed the color-depth to 16b?
Created attachment 609659 [details] patch WIP patch
It's been a long time, but I think I change the DefaultDepth to 16 in my xorg.conf file.
I'm unable to reproduce it too. We can reconsider that if it appears again.
I was able to reproduce it just now, and wasn't trying. Just wanted to print to a pdf before I submitted a form in case the form didn't work. Joke's on me. Firefox 17.0.1 Windows 7 64bit Website where it happened: codecanyon
Thanks, but this bug is about linux version of Firefox. Please file the Windows bug at bugzilla.mozilla.org.