Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geany would not open (Windows 10) #2639

Closed
UBUNTUTHEDISTRO opened this issue Nov 1, 2020 · 38 comments · Fixed by #2645
Closed

geany would not open (Windows 10) #2639

UBUNTUTHEDISTRO opened this issue Nov 1, 2020 · 38 comments · Fixed by #2645
Labels
crash Geany crashes because of this issue windows

Comments

@UBUNTUTHEDISTRO
Copy link

so i recently installed geany since visual studio was too long to install but
after i finished setup, i clicked on the shortcut but it would not open,
i tried to run geany from the start menu, even from e: (the drive i installed geany on) but nothing would work
i have the gtk+ runtime thing installed. i tried it from wsl, but still nothing.
can someone help me? thanks

@elextr
Copy link
Member

elextr commented Nov 1, 2020

Where did you download it from? What version? how did you get GTK runtime, what version?

@xbjfk
Copy link

xbjfk commented Nov 1, 2020

I am having this issue with 1.37 as well, with the bundled GTK runtime. 1.36 works fine, and runs successfully.

@UBUNTUTHEDISTRO
Copy link
Author

@elextr I downloaded Geany from the official Geany website, idk my gtk+ version, geany 1.37? and i forgot where i got GTK+
maybe i haven't installed GTK+ since i upgraded from 8.1 to 10.

@eht16
Copy link
Member

eht16 commented Nov 1, 2020

If you didn't the GTK runtime yourself but together with the Geany installer, then it's fine.

Could you please open a command line window and execute the following command:
"c:\Program Files (x86)\Geany\bin\geany.exe" -v
This will start Geany and opens an additional console window with some debug messages. I assume the console window will close as soon as Geany will close but maybe you can still see something useful.

I have no idea yet what could be wrong and I have only Windows 7 where 1.37 works.

@eht16 eht16 added crash Geany crashes because of this issue windows labels Nov 1, 2020
@Bergamask
Copy link

I am having this issue with 1.37 as well, with the bundled GTK runtime. 1.36 works fine, and runs successfully.

me too

@elextr
Copy link
Member

elextr commented Nov 2, 2020

To the OP and the "me too" people.

As few of the Geany devs use Windows 10 you need to try the things suggested and post the results if you want a timely resolution.

@eht16
Copy link
Member

eht16 commented Nov 2, 2020

@ all affected users:

Do you have Geany-Plugins installed?
If so, try uninstalling Geany-Plugins and try again.

If Geany still crashes on startup, please uninstall Geany and try this installer: http://download.geany.org/snapshots/geany-1.37_setup-2.exe

It is exactly the same code as in the 1.37 release but with updated GTK runtime libraries. If we are lucky, it will work.
TBH this is just a guess, as I still have no clue what is wrong.

@Chicopower
Copy link

Chicopower commented Nov 3, 2020

Same problem here using v1.37 with Windows 10 v2004 (fresh v1.37 install without any plugin and using the geany-1.37_setup.exe installation)
"c:\Program Files (x86)\Geany\bin\geany.exe" -v
command give no message in the console windows and throw the same error in event viewer as if i try to open geany normaly.

I just uninstalled v1.37 and installed v1.36 and everything work as expected!

Here is my Event Viewer error message when i try to open geany v1.37 with Windows 10 v2004:
Faulting application name: geany.exe, version: 1.37.0.0, time stamp: 0x00000000
Faulting module name: msvcrt.dll, version: 7.0.19041.546, time stamp: 0x7f567a50
Exception code: 0xc0000005
Fault offset: 0x000897fc
Faulting process id: 0x5dfc
Faulting application start time: 0x01d6b152ef0b3186
Faulting application path: c:\Program Files (x86)\Geany\bin\geany.exe
Faulting module path: C:\WINDOWS\System32\msvcrt.dll
Report Id: 22dc37a5-28ce-43b4-b4ce-b25471325789
Faulting package full name:
Faulting package-relative application ID:

@eht16 I will give a try with your setup-2 tomorrow!

@lmforget
Copy link

lmforget commented Nov 3, 2020

I had the same issue. I downloaded http://download.geany.org/snapshots/geany-1.37_setup-2.exe and it worked fine. I added the plugins after and continued to work.

@hend217
Copy link

hend217 commented Nov 3, 2020

I can confirm the same issue on Windows 10 2004 64 bits, Windows 10 20H2 (32 and 64), Windows 2012 Server R2, Windows 7 SP1 32 and 64 bits.
Event viewer:

Faulting application name: geany.exe, version: 1.37.0.0, time stamp: 0x00000000
Faulting module name: msvcrt.dll, version: 7.0.19041.546, time stamp: 0x7f567a50
Exception code: 0xc0000005

@elextr
Copy link
Member

elextr commented Nov 3, 2020

@lmforget thanks for that, everybody else try the http://download.geany.org/snapshots/geany-1.37_setup-2.exe version. (Note the -2).

@UBUNTUTHEDISTRO
Copy link
Author

i used the -v but the console closed and nothing happened. hmm...

@Bergamask
Copy link

To the OP and the "me too" people.

As few of the Geany devs use Windows 10 you need to try the things suggested and post the results if you want a timely resolution.

My apologies for my comment, my case is a fresh new install on windows 10 without plugin. I'll try the -2.exe version

@ndroock1
Copy link

ndroock1 commented Nov 3, 2020

I tried the http://download.geany.org/snapshots/geany-1.37_setup-2.exe , but Geany still does not work on Windows 10.

Downloaded 1.36 and this works.

@Chicopower
Copy link

geany-1.37_setup-2.exe fixed the problem here. Thx!

@eht16
Copy link
Member

eht16 commented Nov 3, 2020

@UBUNTUTHEDISTRO did you also try the geany-1.37_setup-2.exe installer?

@ndroock1 are you sure you downloaded and installed the geany-1.37_setup-2.exe installer?
I just want to get sure as it seems the updated installer works for other users.

@lmforget and @Chicopower thanks for the feedback!

@UBUNTUTHEDISTRO

This comment has been minimized.

@ndroock1
Copy link

ndroock1 commented Nov 4, 2020

@UBUNTUTHEDISTRO did you also try the geany-1.37_setup-2.exe installer?

@ndroock1 are you sure you downloaded and installed the geany-1.37_setup-2.exe installer?
I just want to get sure as it seems the updated installer works for other users.

@lmforget and @Chicopower thanks for the feedback!

Yes. I did took setup-2. The original setup is still on the download page! Why?

For me 1.36 does what I need to do.

@eht16
Copy link
Member

eht16 commented Nov 5, 2020

Re-opening as this is not yet resolved until we know for sure that the new installer works.

@ndroock1 are you sure you downloaded and installed the geany-1.37_setup-2.exe installer?
I just want to get sure as it seems the updated installer works for other users.
@lmforget and @Chicopower thanks for the feedback!

Yes. I did took setup-2. The original setup is still on the download page! Why?

Because the installer seem to work for some people but not for all (e.g. you).
Though I don't know what else we could do to debug this. I have access only to a Windows 7 machine and there is works.
@ndroock1 starting Geany behaves the same on the original 1.37 and the setup-2 installer?

@codebrainz do you have a Windows 10 machine?

For me 1.36 does what I need to do.

This might be fine for the moment but is obviously not a solution.

@eht16 eht16 reopened this Nov 5, 2020
@ndroock1
Copy link

ndroock1 commented Nov 5, 2020

@ndroock1 starting Geany behaves the same on the original 1.37 and the setup-2 installer?

Quite. Nothing happens.

@ndroock1
Copy link

ndroock1 commented Nov 5, 2020

Let me know if I can do anything to help.

@codebrainz
Copy link
Member

@eht16 the 1.37 release installer from the website works fine for me on Win10 Pro (10.0.19041 Build 19041).

08:12:31: Geany INFO		: Using TCP port number 45937 for IPC
08:12:31: Geany INFO		: Geany 1.37, English_United States.1252
08:12:31: Geany INFO		: GTK 2.24.32, GLib 2.66.2
08:12:31: Geany INFO		: OS: Windows 10 2004

@Bergamask
Copy link

I tried -2.exe version on Win10 2004 build 19041.610 and it works

@eht16
Copy link
Member

eht16 commented Nov 5, 2020

@Bergamask and @codebrainz thanks for the feedback!

@ndroock1
Ok.
I've got one more installer for you: https://download.geany.org/snapshots/geany-1.37_setup_debug_log.exe
It's the same as before but it will write a logfile to C:\Users\<username>\AppData\Roaming\geany\logfile.txt. With a bit of luck there is something useful in it (or it doesn't get created at all, then we know the crash happens very very early).

Additionally, you could try to temporarily rename your config folder to force Geany to start with a default config.
You could also try disabling a firewall if there is one running.

@Rasbats
Copy link

Rasbats commented Nov 6, 2020

Same issue here with Win 8.1. No log file made with the debug log version.
v1.36 runs fine.

Mike

@ndroock1
Copy link

ndroock1 commented Nov 6, 2020

@Bergamask and @codebrainz thanks for the feedback!

@ndroock1
Ok.
I've got one more installer for you: https://download.geany.org/snapshots/geany-1.37_setup_debug_log.exe
It's the same as before but it will write a logfile to C:\Users\<username>\AppData\Roaming\geany\logfile.txt. With a bit of luck there is something useful in it (or it doesn't get created at all, then we know the crash happens very very early).

Additionally, you could try to temporarily rename your config folder to force Geany to start with a default config.
You could also try disabling a firewall if there is one running.

Will this install has any effect on 1.36? ( I am in a busy project at the moment. Can't afford to jeopardize it. )

@eht16
Copy link
Member

eht16 commented Nov 7, 2020

@ndroock1

Will this install has any effect on 1.36? ( I am in a busy project at the moment. Can't afford to jeopardize it. )

I don't think so, it should be safe to try. To start with a fresh config simply rename the Geany config folder, so you can rename it back again later (C:\Users\<username>\AppData\Roaming\geany).
What might be important: always uninstall Geany before installing a new version.

@Rasbats could you also try renaming the config folder to see if it changes anything and disable firewall if present?

Both things will probably not help because if the log file isn't created, the crash happens very very early and maybe even before the config is read :(. But I don't have any other ideas left :(.

@Rasbats
Copy link

Rasbats commented Nov 7, 2020

Enrico...

Win8.1 was where I had the problem with 1.37 not starting.
Yesterday I upgraded to Win10 and today before doing anything else the debug version works, after uninstalling 1.36 and installing 1.37.

As a test I renamed config folder and disabled firewall. Geany did not start.

Went back to the old, working config and Geany starts. Logfile from1.37 debug is here:
logfile.txt

eht16 added a commit to eht16/geany that referenced this issue Nov 7, 2020
This led to crashes on Windows when starting without an existing
configuration file.

Closes geany#2639.
@eht16
Copy link
Member

eht16 commented Nov 7, 2020

Oh, great.
I found the cause and it's just a stupid typo in a debug message :(.
If Geany is started without an existing configuration file, we log a message that the default TCP port for IPC is used (#2585). But in this log message I specified the wrong format specified for logging an integer and this leads to a crash.

This is actually independent from the Windows version, it only depends on the existence of a configuration file.

Unfortunately, this does not explain why the "-2" installer worked for some people as the mentioned bug was included in it as well.

@elextr
Copy link
Member

elextr commented Nov 7, 2020

Presuming you mean user config, probably people it worked for simply continued to use their existing config so they always had one.

@eht16
Copy link
Member

eht16 commented Nov 7, 2020

Yeah but I was wondering about @lmforget, @Bergamask and @Chicopower who had problems with the original 1.37 installer but got it working with the "-2" installer. This might indicate there was additionally an independent problem.

@ndroock1 and @Rasbats could you please try: https://download.geany.org/snapshots/geany-1.37_setup-pr2645.exe - this is the "-2" installer + the mentioned bug fix in #2645.

@Chicopower
Copy link

In my case, this was the first Geany installation on my machine when i tried 1.37.
Not working then i installed 1.36 and it worked. I was able to use it a little bit and customize some preferences settings.
After that, i uninstalled 1.36 and installed 1.37-2. It worked and my preferences from my 1.36 usage was keeped.

Then, the bug in the code you spotted make sense to me 👍

@Bergamask
Copy link

I don't know if it helps but what I notice is that 1.37-2 takes more time to load than 1.36.
1.36 opened immediately after the click instead 1.37-2 need some second.

@codebrainz
Copy link
Member

I noticed the slow startup on Windows since pre-releases of 1.37, I assumed it was something with my computer/Windows. It's not a huge deal, but it certainly seems slower than it ought to be.

Possibly related: geany/geany-osx#20

Startup time in Ubuntu 20.04 seem unaffected.

I guess we should make a new Issue for the slow startup, I will do once I'm back in Windows and have a chance to time/test, if nobody else opens one first.

@b4n
Copy link
Member

b4n commented Nov 7, 2020

Yeah but I was wondering about @lmforget, @Bergamask and @Chicopower who had problems with the original 1.37 installer but got it working with the "-2" installer. This might indicate there was additionally an independent problem.

As @Chicopower said, they might all have tried something else in between and then had the config file and wouldn't hit the issue.
But even if they did not, I wouldn't be totally surprised if another set of libraries did not lead to a crash. I'm not sure how Windows behaves in this regard, but usually reading arbitrary memory like this leads to unpredictable results, not necessarily a crash. Could be that that other set of libraries result in a memory mapping with a zero byte (string terminator) close to the address that gets read before hitting a memory violation. Or maybe not, but well, I wouldn't bet anything on that horse. My point is: don't sweat it looking for another problem yet, it's more than likely that #2645 is the answer. But sure, getting them to try the version with the meaningful fix is a good idea for sure, then we'll have a better idea :)

@b4n b4n closed this as completed in 847a758 Nov 8, 2020
@eht16
Copy link
Member

eht16 commented Nov 8, 2020

@ndroock1, @Rasbats and all who still had problems: we've just releases Geany 1.37 (https://github.com/geany/geany/releases/tag/1.37.1) with a fix for the startup crash.

@UBUNTUTHEDISTRO
Copy link
Author

holy crap this is long

@UBUNTUTHEDISTRO
Copy link
Author

I fixed the problem already but I guess I'm not selfish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Geany crashes because of this issue windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.