Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318131

Summary: "recursive attempt to activate part" error on Linux when called while a GEF editor is being opened
Product: [Eclipse Project] Platform Reporter: Matthieu Wipliez <matthieu.wipliez>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: aleksander.bandelj, ericwill, heiko.boettger, matthieu.wipliez, pinnamur, remy.suen
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Stack trace none

Description Matthieu Wipliez CLA 2010-06-27 14:22:50 EDT
Build Identifier: 20100617-1415

I have a GEF-based graph editor (http://graphiti-editor.sf.net/) that uses the GEF PrintAction. When I open the editor under Linux, the PrintAction calls Printer#getPrinterList, which somehow fires an event (after going in the Gtk OS layer) that seems to end up making Eclipse reactivating the part.
See stack trace attached.

Reproducible: Always

Steps to Reproduce:
1. open a file with the editor on Linux
Comment 1 Matthieu Wipliez CLA 2010-06-27 14:23:44 EDT
Created attachment 172858 [details]
Stack trace
Comment 2 Prakash Rangaraj CLA 2010-07-29 06:42:29 EDT
	at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1865)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1731)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4794)
	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3485)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4372)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8163)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1239)
	at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9065)
	at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:91)



Printer.getPrinterList() is causing a button click. Assigning to SWT for investing.
Comment 3 Praveen CLA 2010-07-29 06:55:58 EDT
This is similar to bug#226560
Comment 4 Eric Williams CLA 2018-07-06 13:46:41 EDT
(In reply to Praveen from comment #3)
> This is similar to bug#226560

Closing based on this. Please reopen this ticket if the issue persists.