Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11929

Project examples freezes during quickfix dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.3.0.CR1
    • 3.3.0.CR1
    • project-examples
    • None

      When importing the dvd seam example project, a list of quickfixes was shown. After trying to fix each one, the UI would freeze for 15-30 seconds. A Jstack revealed the following:

      "main" prio=10 tid=0x00007f35b8009800 nid=0x26e1 in Object.wait() [0x00007f35bd93c000]
         java.lang.Thread.State: TIMED_WAITING (on object monitor)
              at java.lang.Object.wait(Native Method)
              - waiting on <0x00000000fe463e08> (a org.eclipse.core.internal.jobs.Semaphore)
              at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:39)
              - locked <0x00000000fe463e08> (a org.eclipse.core.internal.jobs.Semaphore)
              at org.eclipse.core.internal.jobs.JobManager.join(JobManager.java:847)
              at org.eclipse.core.internal.jobs.InternalJob.join(InternalJob.java:380)
              at org.eclipse.core.runtime.jobs.Job.join(Job.java:385)
              at org.jboss.tools.project.examples.dialog.MarkerDialog.okPressed(MarkerDialog.java:237)
      

      Clearly the UI thread is waiting on a newly scheduled background job, which causes the freeze. The lines in this stacktrace match with lines in trunk. The offending lines of code seem to be this:

      	ProjectExamplesActivator.waitForBuildAndValidation.schedule();
      	ProjectExamplesActivator.waitForBuildAndValidation.join();
      

        1. jbide-11929.b.trace
          15 kB
        2. JBIDE-11929.jstack
          23 kB
        3. jbide-11929.v2.patch
          3 kB

            snjeza_jira Snjezana Peco (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: