Bug 81709 - Win32 printer backend fails with scaled_font->cache_frozen assertion
Summary: Win32 printer backend fails with scaled_font->cache_frozen assertion
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: win32 backend (show other bugs)
Version: 1.12.16
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: cairo-bugs mailing list
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 08:51 UTC by rodrigo
Modified: 2014-08-18 14:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PATCH: fix the cache_frozen assertion (1.52 KB, text/plain)
2014-07-24 08:51 UTC, rodrigo
Details

Description rodrigo 2014-07-24 08:51:54 UTC
Created attachment 103393 [details]
PATCH: fix the cache_frozen assertion

Hello all!

I'm trying to use cairo 1.12.16 to print on a Win32 printer, and I'm always getting an assertion error:

    At cairo-scaled-font.c:2961:
    Assertion failed: "scaled_font->cache_frozen"

Googling around, I found a message in the mailing list from Dec. 2013 [1] with this very same error and some suggestions. Unfortunately it seemed to have passed unnoticed...

Anyway, I've written a patch that seems to fix the issue (attached).

Best regards.

 [1]: http://lists.cairographics.org/archives/cairo/2013-December/024848.html
Comment 1 Adrian Johnson 2014-08-18 13:59:36 UTC
I've tested this patch and it works for me. Do you want to provide your full name for the commit or just "rodrigo <rodrigorivascosta@gmail.com>"?
Comment 2 rodrigo 2014-08-18 14:14:11 UTC
(In reply to comment #1)
> I've tested this patch and it works for me. Do you want to provide your full
> name for the commit or just "rodrigo <rodrigorivascosta@gmail.com>"?

"rodrigo" is my bugzilla user. My full name is "Rodrigo Rivas Costa", that will be cool.

Thanks!
Comment 3 Adrian Johnson 2014-08-18 14:44:12 UTC
commit 932548ef25864958ef966ffe83e7c945c3ff3cd4
Author: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Date:   Tue Aug 19 00:09:50 2014 +0930

    win32 print: fix cache_frozen assertions
    
    Bug 81709


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.