Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318131 - "recursive attempt to activate part" error on Linux when called while a GEF editor is being opened
Summary: "recursive attempt to activate part" error on Linux when called while a GEF e...
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux-GTK
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-06-27 14:22 EDT by Matthieu Wipliez CLA
Modified: 2018-07-06 13:46 EDT (History)
6 users (show)

See Also:


Attachments
Stack trace (7.93 KB, text/plain)
2010-06-27 14:23 EDT, Matthieu Wipliez CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.