Random deadlock during batch processing #54124
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
What is the bug or the crash?
Since few QGIS updates, I randomly encounter a deadlock during a batch processing of hundreds of file.
No crash, no nothing
Processing just stops during algorithm initialization, I'm unable to cancel.
![image](https://private-user-images.githubusercontent.com/39594821/258817827-3123d9ba-6f4d-4d7a-b11f-93bbef88efd2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNDQ2MzcsIm5iZiI6MTcyNDE0NDMzNywicGF0aCI6Ii8zOTU5NDgyMS8yNTg4MTc4MjctMzEyM2Q5YmEtNmY0ZC00ZDdhLWIxMWYtOTNiYmVmODhlZmQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA4NTg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4Nzc1NzBmN2FmMTBkMWE3MDE1ODMyZDM3ZGYxN2IzN2NjNjUzYzU1ZWFhODU5YTJlMjlhNDRiOWU5N2E0ODEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d8n_3jqRsH3JFt66jIZh5pVsWOOiZVdx2iNETeoR6I8)
In above image, there is a deadlock and it will be stuck at this step forever.
Windows process manager shows 0 activity
![image](https://private-user-images.githubusercontent.com/39594821/258818243-0e338d6a-afcd-4cb0-b93e-14bb6af7b03c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNDQ2MzcsIm5iZiI6MTcyNDE0NDMzNywicGF0aCI6Ii8zOTU5NDgyMS8yNTg4MTgyNDMtMGUzMzhkNmEtYWZjZC00Y2IwLWI5M2UtMTRiYjZhZjdiMDNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA4NTg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljNDY4MzVjNzIwZDM4NGIyYmE4ZDk0YjgyOTc3MjljZGZlMjZkMzVjMTE3MGQ1ZTJkOWFhMWU5ZjQyYzA3OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7xS3W_i9JeSm5oNX7D3aeGSt0MvZglb9GD9F-NyvaC0)
Steps to reproduce the issue
Use a simple alg on lightweight files (like warp)
file_path(file_path( @INPUT )) || '\\temp\\' || file_name( @INPUT )
)Random part...
Versions
3.32.1 / Master on Win10
Supported QGIS version
New profile
Additional context
@haubourg can confirm too
Of course I can provide files to reproduce but I think that it can be easily reproduced.
For sure it didn't happen with 3.10 or 3.16 as I remember processing hundreds of file like I do now without issues.
May be linked to #47769 ? gentle ping @nyalldawson
The text was updated successfully, but these errors were encountered: