Minimap may cause deadlock with main thread on Linux