[jbosstools-issues] [JBoss JIRA] (JBIDE-19536) Infinite job loop when creating project
Rastislav Wagner (JIRA)
issues at jboss.org
Fri Sep 25 12:17:00 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-19536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112641#comment-13112641 ]
Rastislav Wagner commented on JBIDE-19536:
------------------------------------------
It happened to me again so I made a backup of my workspace (https://drive.google.com/file/d/0B46utPjKw-LmckRmeWxaMDd5cE0/view?usp=sharing) for an easy reproduction and started debugging. I found out the following:
1. after project is deleted AutoBuildJob is run - but it conflicts with some ThreadJob(null,[P/a]) note: I deleted project "a"
2. because of that, AutoBuildJob is cancelled and rescheduled with 100ms delay. However ThreadJob(null,[P/a]) never ends so there's a loop - and it reflects what I recored on video.
I have a patch, but Im not sure if it's ok. Im going to write about this class https://github.com/rawagner/eclipse.platform.runtime/blob/R4_5_maintenance/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.java
I think that problem is in ThreadJob#waitForRun method. On line 211 we put this ThreadJob to waiting queue and what happens next is that we will get out of 'while (true)' loop (line 231) with case #3 (based on comment on line 228), but in 'finally' block we won't remove this ThreadJob from waiting queue (since #3 happend) - so it's stuck there forever.
Patch is here https://github.com/rawagner/eclipse.platform.runtime/commit/8458e62340ed42ad28547994ca63a110d9474f12
[~snjeza] Could you take a look ?
> Infinite job loop when creating project
> ---------------------------------------
>
> Key: JBIDE-19536
> URL: https://issues.jboss.org/browse/JBIDE-19536
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi
> Affects Versions: 4.3.0.Alpha1
> Reporter: Rastislav Wagner
> Assignee: Snjezana Peco
> Labels: xtriage
> Fix For: 4.3.x
>
> Attachments: building.png, cdi_jstack, jstack.out, threaddump-1440009974151.tdump, threaddump-1440009999047.tdump, threaddump-1440010035476.tdump, workspace_jbds9_endless_building_loop.rar
>
>
> Sometimes i end up in infinite job loop after creating a CDI project. There's no description of what jobs are running, not exception in log. In progress view I can see only "Building workspace (sleeping)" -see on video https://vimeo.com/123634974
> I was able to reproduce on CDI projects (1.0,1.2) but not on any other (Dynamic Web..)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list