
So what happened was: one window would be opened with info to force a new window and another would be attempted to be opened without any force, so no window would actually come up. But since we were flushing all pending channel requests right after the channel was registered, the open call was being run for the second window before the first, because the launch channel gets registered before the call to open the very first window. The bug reproduces when the second window manages to send the launch service request before the first window even registers the launch service, thus triggering the timeout mechanism. But the second window has a couple options that tells the workbench that, yes, we definitely want a new window for this. On the Mac, running multiple instances of VLC is not supported out of the box. Once youve done the above you should be able to play as many VLC instances and video or audio files as you like.

This allows users to use more than one VLC player at a time. Since there's no need, the first window is attempted to be open without forcing opening a new window. untick checkbox use only one instance when started from file manager Press Save. When two instances start, the first opens a window and the second one sends info to the first to open another window. After 1 hour of console.log debugging, I was able to catch this elusive bug.

It's the flushing of pending requests which has a problem.
