August 27, 2010

onamatic onamatic
Lab Rat
4 posts

Eclipse Integration 1.6.1: qtcppdesigner causes org.eclipse.swt.SWTException: Invalid thread access

 

FYI:

Under Eclipse Galileo and Helios (CDT 6 and 7), Linux X86_64, qt designer (com.trolltech.qtcppdesigner) causes the CDT Reference Search feature to fail with “org.eclipse.swt.SWTException: Invalid thread access”. (The designer Is being polled for dirty files when this happens (see stack below) but it doesn’t make any difference if the ui file is dirty or not).

Edit: This also affects other CDT search features.

Workaround: close qtdesigner before using the Reference feature.

Stack:

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:450)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:389)
at com.trolltech.qtcppdesigner.views.embedded.FormWindowW.isDirty(FormWindowW.java:141)
at com.trolltech.qtcppdesigner.editors.UiEditor.isDirty(UiEditor.java:159)
at org.eclipse.ui.internal.EditorManager.collectDirtyEditors(EditorManager.java:276)
at org.eclipse.ui.internal.EditorManager.getDirtyEditors(EditorManager.java:566)
at org.eclipse.ui.internal.WorkbenchPage.getDirtyEditors(WorkbenchPage.java:2071)
at org.eclipse.cdt.ui.CUIPlugin.getDirtyEditors(CUIPlugin.java:690)

2 replies

July 12, 2012

Taylor Braun-Jones Taylor Braun-Jones
Lab Rat
1 posts

Are there any updates on this issue? I also experience the problem and would prefer to not need the clunky workaround of closing all Qt Designer views.

July 13, 2012

onamatic onamatic
Lab Rat
4 posts
Taylor Braun-Jones wrote:
Are there any updates on this issue? I also experience the problem and would prefer to not need the clunky workaround of closing all Qt Designer views.

None as far as I know – Eclipse Integration is still at 1.6.1 (seems development has ceased?) and the bug still exists under Eclipse Indigo. It causes many other problems too.

I just use Qt Designer/Creator externally if I need to work with gui stuff as I also found problems using custom widgets with EI.

 
  ‹‹ qt-creator and path to embedded toolchain      WebKit wigdet in Qt Creator ››

You must log in to post a reply. Not a member yet? Register here!