bugGNUstep - Bugs: bug #21203, Cairo backend does not display

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21203: Cairo backend does not display

Submitted by:  Mark Tracy <tracy454>
Submitted on:  Mon 01 Oct 2007 04:56:31 AM UTC  
 
Category:  Backend Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  Fred Kiefer <FredKiefer>
Open/Closed:  Closed

Fri 05 Oct 2007 10:55:41 AM UTC, comment #3:

I changed this method to take the depth value from the window device. This is what should have happend in the first place and what Nicolas and I had agreed on during Alpenstep.

No idea why it ever was implemented differently.

The whole concept of the depth_info seems a bit strange to me. The values that get used there in art don't match my concept of window depth.

Please give the new code a try and report back.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Fri 05 Oct 2007 07:36:57 AM UTC, comment #2:

I have a partial resolution: prevent XGCairoXImageSurface.m initWithDevice: from specifying 32-bit color. I have the XRender software installed, so configure #define XRENDER. But, my "video hardware" supports only 24-bit color. (I am using Parallels virtual machine over MacOSX.)

gsDevice = device;

#ifdef XRENDER
- di.drawing_depth = 32;
+ di.drawing_depth = 24;
#else
di.drawing_depth = 24;
#endif

Of course this is a quick hack, not a real solution.

Mark Tracy <tracy454>
Mon 01 Oct 2007 04:41:31 PM UTC, comment #1:

No idea, where the main problem comes from. Most likely GNUstep is selecting a depth that your X system does not support. Have a look at the function bestContext() in context.c

But the "Cairo status out of memory in copy path" message should be resolved now. It was a superflous error message, as cairo flags out of memory when the path is empty.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Mon 01 Oct 2007 04:56:31 AM UTC, original submission:

After finally getting it to build and run, the cairo backend (back-0.13, SVN 25505) displays a blank menu and blank main window. The visible error messages are:
2007-09-30 21:41:58.372 TestApp[9102] X-Windows error - BadMatch (invalid parameter attributes)
on display: :0.0
type: 0
serial number: 1155
request code: 2
2007-09-30 21:41:58.390 TestApp[9102] X-Windows error - BadMatch (invalid parameter attributes)
on display: :0.0
type: 0
serial number: 1202
request code: 145

The programs respond to mouse clicks. I can even bring up blank save dialogs. So far every application I try does the same. I have tried cairo-1.4.2 and 1.4.10. With 1.4.10 there are additional error messages "Cairo status out of memory in copy path" I know that Fred Kiefer is using 1.4.6, so I'll get that version and see what happens.

Mark Tracy <tracy454>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by tracy454 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-10-14 FredKiefer Open/ClosedIn Test => Closed
    2007-10-05 FredKiefer StatusNone => Fixed
        Assigned toNone => FredKiefer
        Open/ClosedOpen => In Test
    2007-10-01 FredKiefer CategoryNone => Backend
        Item GroupNone => Bug

    Back to the top


    Powered by Savane 3.4