Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Win32 Ignoring Mutex and Having multiple instances #641
'Geany' no longer detects if there is an instance of itself already running, thus multiple instances are starting up, instead of files being opened in the current instance.
I doubt it is a "#ifdef HAVE_SOCKET" not being defined since the mutexs (called mutants in win32) are being created with the name 'Geany'.
I suspect it had to do with recent cleanups and changes in https://github.com/geany/geany/commits/c5b0fc459a1251c824a44edb5dfab4a8feb0bd00/src/socket.c
Using geany 1.25 with windows 7 64bit.
What exactly are we talking about here?
In case of the first one: it is intended behaviour that a new Geany window is opened in that case, same as on non-Windows systems.
In case of the second one: that works for me with current GIT master. Could you try a nightly build (http://nightly.geany.org)?
They were not launched with the Open with Geany context.
They were both launched from separate command prompts with the same user credentials, and for a while every new geany opened up a new instance.
I retested the behavior and right now it stopped and is acting normal again.
Next time it occurs I'll try running windbg,on it if I can figure out some method that can give some insight on what went wrong.
I am going to close this ticket as intermittent behavior and thus would likely be very difficult to narrow down. I'll reoppen it if I obtain some better diagnostics.
Hello, I know it is old and closed issue, but the exact same thing started to happen again. I'm on 1.34.1 . Win10
When double clicked on any geany associated file (let's say txt), or when other tools "push" some files to external editor (mine is geany) every time a new instance pops-up. It started to behave like this Today without any errors or warnings. Important is that when double click on text file it used to open in 1/10 of blink of an eye. Now it takes about 2 seconds to open. I've tried to re-install already.
I've run it with verbose, but there is not enough to debug for me
procexp of two running geanys
Thanks for the detailed information.
Maybe you set up a firewall, running another service on port 49876 or anything else caused the TCP connection to break?
I'll check if we can add some more useful debug/error output in the relevant code.