something is going wrong down in the code it is removed from the array. So add mutex to prevent concurrent access to the array from different threads. This commit was SVN r12385.