Open sentry-io[bot] opened 3 weeks ago
I was able to replicate this by running tike && tike
at the command line -- indicating a race when two instances both try to load the project at the same time
This may require some rearchitecture of the TMultiProcessCoordinator
to remove its dependency on window enumeration, because we enumerate the running processes before we create the main window, which means two processes may each independently do the window enumeration, find no windows, and both end up becoming the 'first' process, attempting to load the last open project.
Or we could always create the window before calling the enumeration? (This may have other side-effects to consider.)
Or as a stop-gap, we could fall back to a null-project scenario in the case of file lock, which would reduce the incidence of this.
Sentry Issue: KEYMAN-DEVELOPER-1PR
17.0.325