Community
Participate
Working Groups
Build Identifier: 1.3.2.20110216-1023 Occasionally when running a deadlock occurs requiring a full restart (full heap dump attached). This seems to be due to the UI thread trying to shutdown while holding a lock. The shutdown then blocks on the Device.deviceLock. I think this was caused by applying the fix in bug 316676 which moved the try catch block inside the synchronized block. I believe this can be fixed without regressing on the original bug by putting the outer try catch block outside the synchronized block but leaving the inner try catch block inside the synchronized block. This would mean the stateInfo attribute is still set in a synchronized way but the lock would be released before the shutdown of the thread. Reproducible: Sometimes
Created attachment 192508 [details] Heap dump of the deadlock
Created attachment 192510 [details] Patch
This looks like a dup or at least related to bug 320182
(In reply to comment #3) > This looks like a dup or at least related to bug 320182 Wrong bug, please disregard comment #3
Applied patch to CVS HEAD.