sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

Smerge hangs when launched in parallel #1698

Open erikolofsson opened 1 year ago

erikolofsson commented 1 year ago

Version info

Description

smerge.exe hangs when several smerge.exe processes are launched at the same time.

Steps to reproduce

  1. Make sure Sublime Merge is already started
  2. Launch several smerge.exe at the same time pointing to different repositories
  3. One smerge.exe will hang
  4. Quit Sublime Merge and the smerge.exe will report: Failed to receive exit code from application

Expected behavior

smerge.exe should not hang.

Discussion

Not sure how easy it will be to reproduce. I have a git repository manager that is currently not public that opens all repositories that need attention automatically in Sublime Merge. I can provide dump files of smerge.exe process when it's hanging if necessary.

erikolofsson commented 1 year ago

Reproduction script in Git Bash:

#/bin/bash

/c/Program\ Files/Sublime\ Merge/smerge.exe Repo1 &
/c/Program\ Files/Sublime\ Merge/smerge.exe Repo2 &
/c/Program\ Files/Sublime\ Merge/smerge.exe Repo3 &

wait