diff --git a/include/GafferScene/SceneAlgo.inl b/include/GafferScene/SceneAlgo.inl index 9b4cf7c1c1..bd87825803 100644 --- a/include/GafferScene/SceneAlgo.inl +++ b/include/GafferScene/SceneAlgo.inl @@ -192,7 +192,10 @@ void parallelGatherLocations( const ScenePlug *scene, LocationFunctor &&location using LocationResult = std::invoke_result_t; tbb::concurrent_bounded_queue> queue; - queue.set_capacity( tbb::this_task_arena::max_concurrency() ); + queue.set_capacity( std::max( tbb::this_task_arena::max_concurrency(), 1 ) ); + + std::cerr << "MAX CONCURRENCY " << tbb::this_task_arena::max_concurrency() << std::endl; + std::cerr << "CAPACITY " << queue.capacity() << std::endl; auto locationFunctorWrapper = [&] ( const ScenePlug *scene, const ScenePlug::ScenePath &path ) { queue.push( locationFunctor( scene, path ) );