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: BackendSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned 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
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by tracy454 (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 14 Oct 2007 07:47:02 PM UTCFredKieferOpen/ClosedIn Test=>Closed
    Fri 05 Oct 2007 10:55:41 AM UTCFredKieferStatusNone=>Fixed
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>In Test
    Mon 01 Oct 2007 04:41:31 PM UTCFredKieferCategoryNone=>Backend
      Item GroupNone=>Bug

    Back to the top


    Powered by Savane 3.1-cleanup1