Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 157155 Details for
Bug 243811
XError on right click menus in OOo.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Ignore XErrors during deferred destruction
0001-cairo-xlib-display-Hide-XErrors-during-processing-of-the-work-queue.txt (text/plain), 2.40 KB, created by
Chris Wilson
on 2007-06-15 20:09:24 UTC
(
hide
)
Description:
Ignore XErrors during deferred destruction
Filename:
MIME Type:
Creator:
Chris Wilson
Created:
2007-06-15 20:09:24 UTC
Size:
2.40 KB
patch
obsolete
>From a51b7f58173d47b650d77b46c95f4afca138206f Mon Sep 17 00:00:00 2001 >From: Chris Wilson <chris@chris-wilson.co.uk> >Date: Fri, 15 Jun 2007 20:38:01 +0100 >Subject: [PATCH] [cairo-xlib-display] Hide XErrors during processing of the work queue. > >It is possible for the resource that we defer freeing are already >destroyed and trigger an XError whilst processing the work queue. For >example, the application renders to a Window and then destroys the >Drawable before proceeding with more rendering. This will trigger an >invalid Picture from RenderFreePicture whilst attempting to free the >resources. > >By ignoring the possibility that the application could allocate a fresh >resource with the same ID, we can simply hide the XErrors... >--- > src/cairo-xlib-display.c | 17 ++++++++++++++--- > 1 files changed, 14 insertions(+), 3 deletions(-) > >diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c >index 5de9011..3ff633e 100644 >--- a/src/cairo-xlib-display.c >+++ b/src/cairo-xlib-display.c >@@ -405,10 +405,13 @@ void > _cairo_xlib_display_notify (cairo_xlib_display_t *display) > { > cairo_xlib_job_t *jobs, *job, *freelist; >+ Display *dpy = display->display; > > CAIRO_MUTEX_LOCK (display->mutex); > jobs = display->workqueue; > while (jobs != NULL) { >+ cairo_xlib_error_func_t old_handler; >+ > display->workqueue = NULL; > CAIRO_MUTEX_UNLOCK (display->mutex); > >@@ -422,24 +425,32 @@ _cairo_xlib_display_notify (cairo_xlib_display_t *display) > } while (jobs != NULL); > freelist = jobs = job; > >+ /* protect the notifies from triggering XErrors >+ * XXX There is a remote possibility that the application has >+ * been reallocated an XID that we are about to destroy here... */ >+ XSync (dpy, False); >+ old_handler = XSetErrorHandler (_noop_error_handler); >+ > do { > job = jobs; > jobs = job->next; > > switch (job->type){ > case WORK: >- job->func.work.notify (display->display, job->func.work.data); >+ job->func.work.notify (dpy, job->func.work.data); > if (job->func.work.destroy != NULL) > job->func.work.destroy (job->func.work.data); > break; > > case RESOURCE: >- job->func.resource.notify (display->display, >- job->func.resource.xid); >+ job->func.resource.notify (dpy, job->func.resource.xid); > break; > } > } while (jobs != NULL); > >+ XSync (dpy, False); >+ XSetErrorHandler (old_handler); >+ > CAIRO_MUTEX_LOCK (display->mutex); > do { > job = freelist; >-- >1.4.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243811
: 157155 |
157915
|
157916
|
157947