Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Tools
    2
    3
    3908
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      onamatic last edited by

      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)
      ...

      1 Reply Last reply Reply Quote 0
      • N
        nocnokneo last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • O
          onamatic last edited by

          [quote author="Taylor Braun-Jones" date="1342096585"]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.[/quote]

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post