Community
Participate
Working Groups
org.eclipse.swt.widgets.Caret uses CAIRO_OPERATOR_DIFFERENCE when OS.USE_CAIRO is true but that operator is not introduced until cairo 1.9.4 OS.USE_CAIRO is set based on the GTK version which leads the boolean to be enabled on systems where GTK >= 2.24 and if cairo is < 1.9.4 eclipse crashes. The following patch adds a check for the cairo version: https://git.eclipse.org/r/31533 Back port to 4.4: https://git.eclipse.org/r/#/c/31322/
(In reply to Sami Wagiaalla from comment #0) > org.eclipse.swt.widgets.Caret uses CAIRO_OPERATOR_DIFFERENCE when > OS.USE_CAIRO is true but that operator is not introduced until cairo 1.9.4 > > OS.USE_CAIRO is set based on the GTK version which leads the boolean to be > enabled on systems where GTK >= 2.24 and if cairo is < 1.9.4 eclipse crashes. > > The following patch adds a check for the cairo version: > https://git.eclipse.org/r/31533 > Back port to 4.4: https://git.eclipse.org/r/#/c/31322/ Pushed the patch to master, the 4.4.1 patch link seems to be wrong?
> Pushed the patch to master, Thanks for reviewing! > the 4.4.1 patch link seems to be wrong? Ops.. my mistake. Here is the correct link: https://git.eclipse.org/r/#/c/31531/
(In reply to Sami Wagiaalla from comment #2) > > Pushed the patch to master, > > Thanks for reviewing! > > > the 4.4.1 patch link seems to be wrong? > > Ops.. my mistake. Here is the correct link: > https://git.eclipse.org/r/#/c/31531/ Pushed to 4.4.1 stream as well.
From this forum post: https://www.eclipse.org/forums/index.php/m/1448997/?srch=cairo-misc.c%3A380#msg_1448997 there is a workaround for earlier versions of Eclipse if you cannot upgrade. Add -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false to eclipse.ini.
*** Bug 450850 has been marked as a duplicate of this bug. ***
CQ:WIND00-WB4-4756 We've also seen this issue in a customer install. Many thanks for the fix.