Discussion:
[Geany] Geany crashes in Windows
Bob Snyder
2007-10-30 03:29:20 UTC
Permalink
I've been using Geany for several months on my home Linux box and like
it so much that I wanted to use it at work - under Windows. But it
crashes when opening files. It seems like this happens when the desired
file is more than two or three levels below the root. Opening a file at
root or one level down seems to be okay.

I have seen this problem for the last several releases of Geany - since
0.10. Also for each version, I have been using the version of GTK+ that
comes with the Geany "Full Installer" package, but recently tried it
with a version from another source with the same results.

I'm running WinXP, I think it's SP2, with 1GB RAM. I've attached the
drwatson log and user.dmp files created when it crashes.

Thanks,

Bob Snyder
Tim Tassonis
2007-10-30 12:34:32 UTC
Permalink
Post by Bob Snyder
I've been using Geany for several months on my home Linux box and like
it so much that I wanted to use it at work - under Windows. But it
crashes when opening files. It seems like this happens when the desired
file is more than two or three levels below the root. Opening a file at
root or one level down seems to be okay.
I have seen this problem for the last several releases of Geany - since
0.10. Also for each version, I have been using the version of GTK+ that
comes with the Geany "Full Installer" package, but recently tried it
with a version from another source with the same results.
I'm running WinXP, I think it's SP2, with 1GB RAM. I've attached the
drwatson log and user.dmp files created when it crashes.
Can't reproduce this with current svn r1991 under XP SP2, I just opened
a file

z:\dev\uam-client-svn\agent\internal-windomain\internal.c

and it didn't crash. I remember however that once I had a problem when
geany ran under a user without admin rights and it crashed. Does your
account have admin rights?

I attach you my binary, it was compiled using the mingw compiler. Does
it crash, too?
Post by Bob Snyder
Thanks,
Bob Snyder
------------------------------------------------------------------------
_______________________________________________
Geany mailing list
http://uvena.de/cgi-bin/mailman/listinfo/geany
Bob Snyder
2007-10-30 12:59:15 UTC
Permalink
Post by Tim Tassonis
Post by Bob Snyder
I've been using Geany for several months on my home Linux box and
like it so much that I wanted to use it at work - under Windows. But
it crashes when opening files. It seems like this happens when the
desired file is more than two or three levels below the root. Opening
a file at root or one level down seems to be okay.
I have seen this problem for the last several releases of Geany -
since 0.10. Also for each version, I have been using the version of
GTK+ that comes with the Geany "Full Installer" package, but recently
tried it with a version from another source with the same results.
I'm running WinXP, I think it's SP2, with 1GB RAM. I've attached the
drwatson log and user.dmp files created when it crashes.
Can't reproduce this with current svn r1991 under XP SP2, I just opened
a file
z:\dev\uam-client-svn\agent\internal-windomain\internal.c
and it didn't crash. I remember however that once I had a problem when
geany ran under a user without admin rights and it crashed. Does your
account have admin rights?
I attach you my binary, it was compiled using the mingw compiler. Does
it crash, too?
I will try with admin rights today. But no attachment came with the
message. Did my attachments make it? (there were two).

Bob S.
Tim Tassonis
2007-10-30 13:23:09 UTC
Permalink
Post by Bob Snyder
Post by Tim Tassonis
I attach you my binary, it was compiled using the mingw compiler. Does
it crash, too?
I will try with admin rights today. But no attachment came with the
message. Did my attachments make it? (there were two).
Yes, it was too big, so I had to cancel it. If you want the binary, I
can send it to you off-list. The gzipped exe is about 1.3 MB big.
Post by Bob Snyder
Bob S.
_______________________________________________
Geany mailing list
http://uvena.de/cgi-bin/mailman/listinfo/geany
Enrico Tröger
2007-10-30 13:49:00 UTC
Permalink
Post by Bob Snyder
Post by Tim Tassonis
Post by Bob Snyder
I've been using Geany for several months on my home Linux box and
like it so much that I wanted to use it at work - under Windows.
But it crashes when opening files. It seems like this happens when
the desired file is more than two or three levels below the root.
Opening a file at root or one level down seems to be okay.
I have seen this problem for the last several releases of Geany -
since 0.10. Also for each version, I have been using the version
of GTK+ that comes with the Geany "Full Installer" package, but
recently tried it with a version from another source with the same
results.
I'm running WinXP, I think it's SP2, with 1GB RAM. I've attached
the drwatson log and user.dmp files created when it crashes.
Can't reproduce this with current svn r1991 under XP SP2, I just
opened a file
z:\dev\uam-client-svn\agent\internal-windomain\internal.c
and it didn't crash. I remember however that once I had a problem
when geany ran under a user without admin rights and it crashed.
Does your account have admin rights?
I attach you my binary, it was compiled using the mingw compiler.
Does it crash, too?
I will try with admin rights today. But no attachment came with the
message. Did my attachments make it? (there were two).
Yes, your attachments were sent properly.

It might be related to missing admin rights. I didn't test it without
because on my Windows box I need them for getting the WLan interface to
work, lovely Windows...

Maybe the file you want to open is not readable or writeable for your
user? Or is any directory between the file and root not readable or in
any case accessable to your user?

Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
Bob Snyder
2007-10-30 15:10:01 UTC
Permalink
Post by Enrico Tröger
Post by Bob Snyder
Post by Tim Tassonis
Can't reproduce this with current svn r1991 under XP SP2, I just
opened a file
z:\dev\uam-client-svn\agent\internal-windomain\internal.c
and it didn't crash. I remember however that once I had a problem
when geany ran under a user without admin rights and it crashed.
Does your account have admin rights?
I attach you my binary, it was compiled using the mingw compiler.
Does it crash, too?
I will try with admin rights today. But no attachment came with the
message. Did my attachments make it? (there were two).
Yes, your attachments were sent properly.
It might be related to missing admin rights. I didn't test it without
because on my Windows box I need them for getting the WLan interface to
work, lovely Windows...
Maybe the file you want to open is not readable or writeable for your
user? Or is any directory between the file and root not readable or in
any case accessable to your user?
Yes, things work normally when I run Geany as a user with admin rights.

All the files and folders in the path are readable and writable by my
normal 'non-admin' user. I have used several other editors on these
files with no problem.

Tim, go ahead and send the binary to me directly using the 'from'
address in this message. When you tested it with the file you listed was
Geany running with admin rights?

Thanks,

Bob S.
Enrico Tröger
2007-10-30 15:22:24 UTC
Permalink
Post by Bob Snyder
Post by Enrico Tröger
Post by Bob Snyder
Post by Tim Tassonis
Can't reproduce this with current svn r1991 under XP SP2, I just
opened a file
z:\dev\uam-client-svn\agent\internal-windomain\internal.c
and it didn't crash. I remember however that once I had a problem
when geany ran under a user without admin rights and it crashed.
Does your account have admin rights?
I attach you my binary, it was compiled using the mingw compiler.
Does it crash, too?
I will try with admin rights today. But no attachment came with
the message. Did my attachments make it? (there were two).
Yes, your attachments were sent properly.
It might be related to missing admin rights. I didn't test it
without because on my Windows box I need them for getting the WLan
interface to work, lovely Windows...
Maybe the file you want to open is not readable or writeable for
your user? Or is any directory between the file and root not
readable or in any case accessable to your user?
Yes, things work normally when I run Geany as a user with admin rights.
I guess you are using a NTFS filesystem?

Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
Bob Snyder
2007-10-30 17:08:18 UTC
Permalink
Post by Enrico Tröger
Post by Bob Snyder
Yes, things work normally when I run Geany as a user with admin rights.
I guess you are using a NTFS filesystem?
Yes.

Bob S.
Enrico Tröger
2007-10-30 17:35:24 UTC
Permalink
Post by Enrico Tröger
Post by Bob Snyder
Yes, things work normally when I run Geany as a user with admin rights.
I guess you are using a NTFS filesystem?
Yes.
As usual, I can't reproduce it. I created a test user with limited
access and tried to open a file in many subdirectories on a NTFS
filesystem but Geany opened it as expected.

A gdb backtrace would help a lot. If I send you a binary with debug
symbols, could you install gdb(a free debugger) and get a backtrace
when Geany crashes? This would help a lot.


Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
Bob Snyder
2007-10-30 18:47:54 UTC
Permalink
Post by Enrico Tröger
Post by Enrico Tröger
Post by Bob Snyder
Yes, things work normally when I run Geany as a user with admin rights.
I guess you are using a NTFS filesystem?
Yes.
As usual, I can't reproduce it. I created a test user with limited
access and tried to open a file in many subdirectories on a NTFS
filesystem but Geany opened it as expected.
A gdb backtrace would help a lot. If I send you a binary with debug
symbols, could you install gdb(a free debugger) and get a backtrace
when Geany crashes? This would help a lot.
Yes. I have just downloaded gdb.exe from mingw and am able to run Geany
and get the crash when running under gdb. Please send the binary with
debug symbols. You can send it to my direct email address if you want.

Bob
Bob Snyder
2007-10-30 20:06:08 UTC
Permalink
Hi,
Post by Bob Snyder
Yes. I have just downloaded gdb.exe from mingw and am able to run
Geany and get the crash when running under gdb. Please send the
binary with debug symbols. You can send it to my direct email address
if you want.
If Geany crashed, type "bt" in the gdb console and mail me the output.
Thanks for your help.
Regards,
Enrico
Hi Enrico,

Here is the backtrace:

C:\TEMP>\util\bin\gdb geany.exe
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) run
Starting program: C:\TEMP/geany.exe
Loaded symbols for C:\WINDOWS\system32\ntdll.dll
Loaded symbols for C:\WINDOWS\system32\kernel32.dll
Loaded symbols for C:\WINDOWS\system32\comdlg32.dll
Loaded symbols for C:\WINDOWS\system32\shlwapi.dll
Loaded symbols for C:\WINDOWS\system32\advapi32.dll
Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll
Loaded symbols for C:\WINDOWS\system32\secur32.dll
Loaded symbols for C:\WINDOWS\system32\gdi32.dll
Loaded symbols for C:\WINDOWS\system32\user32.dll
Loaded symbols for C:\WINDOWS\system32\msvcrt.dll
Loaded symbols for C:\WINDOWS\system32\comctl32.dll
Loaded symbols for C:\WINDOWS\system32\shell32.dll
Loaded symbols for C:\WINDOWS\system32\wsock32.dll
Loaded symbols for C:\WINDOWS\system32\ws2_32.dll
Loaded symbols for C:\WINDOWS\system32\ws2help.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libatk-1.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libglib-2.0-0.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\iconv.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\intl.dll
Loaded symbols for C:\WINDOWS\system32\ole32.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgobject-2.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgdk-win32-2.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgdk_pixbuf-2.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgmodule-2.0-0.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libcairo-2.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libfontconfig-1.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\xmlparse.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\xmltok.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\freetype6.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\zlib1.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libpng13.dll
Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libxml2.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libpango-1.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libpangocairo-1.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libpangowin32-1.0-0.dll
Loaded symbols for C:\WINDOWS\system32\imm32.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgthread-2.0-0.dll
Loaded symbols for C:\Program Files\Common
Files\GTK\2.0\bin\libgtk-win32-2.0-0.dll

Program received signal SIGSEGV, Segmentation fault.
tm_workspace_add_object (work_object=0x1355320) at tm_workspace.c:111
111 tm_workspace.c: No such file or directory.
in tm_workspace.c
(gdb) bt
#0 tm_workspace_add_object (work_object=0x1355320) at tm_workspace.c:111
#1 0x00410e68 in document_update_tag_list (idx=1, update=1) at
document.c:1747
#2 0x0041115b in document_set_filetype (idx=1, type=0x116f298) at
document.c:1881
#3 0x0041357c in document_open_file_full (idx=-1,
filename=0x1321e88
"C:\\GHS\\UCS_Build_FS\\UCS_App_dir\\src\\antenna_cs.h", pos=0,
readonly=0, ft=0x0, forced_enc=0x0) at document.c:1008
#4 0x00413a44 in document_open_file (
locale_filename=0x1321e88
"C:\\GHS\\UCS_Build_FS\\UCS_App_dir\\src\\antenna_cs.h",
readonly=0, ft=0x0, forced_enc=0x0) at document.c:588
#5 0x00414589 in document_open_files (filenames=0x12daf20, readonly=0,
ft=0x0, forced_enc=0x0)
at document.c:1084
#6 0x0040b49a in on_file_open_dialog_response (dialog=0x12b5030,
response=-3, user_data=0x0)
at dialogs.c:91
#7 0x62743935 in _libuser32_a_iname ()
from C:\Program Files\Common Files\GTK\2.0\bin\libgobject-2.0-0.dll
#8 0x00000000 in ?? ()
(gdb)
Enrico Tröger
2007-11-01 12:08:07 UTC
Permalink
On Tue, 30 Oct 2007 13:06:08 -0700, Bob Snyder <***@cox.net>
wrote:

Hi,
Thanks for backtrace, it helped a lot.
The problem was that the tagmanager part in Geany tried to write a file
in the root of the drive Geany is executed on (on Windows, on Linux
it just uses /tmp). But it seems your unprivileged user doesn't have
permission to write there and so the file couldn't be created and Geany
crashed.
This should be fixed in SVN r2000. I changed the path where the file is
written to Geany's configuration directory which should in almost every
case be writable and even if not, Geany won't crash anymore.
So, this isn't a Windows-only issue it could also happen on Linux
if /tmp is not writable but I guess there are only a few systems if
ever where this is the case.

A new Windows binary can be found at
http://www.uvena.de/tmp/geany_svnr2000_win32_bin.zip. Maybe I'll put
a full installer online for the current SVN version.

Furthermore, I'll check whether we could remove this status file at all
but for the moment I'm not yet sure.

Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
Tim Tassonis
2007-11-01 15:52:39 UTC
Permalink
Post by Enrico Tröger
Hi,
This should be fixed in SVN r2000. I changed the path where the file is
written to Geany's configuration directory which should in almost every
case be writable and even if not, Geany won't crash anymore.
So, this isn't a Windows-only issue it could also happen on Linux
if /tmp is not writable but I guess there are only a few systems if
ever where this is the case.
Just compiled svn 2004 and revoked my admin rights and it worked peferctly.

Thanks
Tim

Tim Tassonis
2007-10-30 15:45:29 UTC
Permalink
Post by Bob Snyder
Yes, things work normally when I run Geany as a user with admin rights.
All the files and folders in the path are readable and writable by my
normal 'non-admin' user. I have used several other editors on these
files with no problem.
Tim, go ahead and send the binary to me directly using the 'from'
address in this message. When you tested it with the file you listed was
Geany running with admin rights?
I'm 99% sure you will get the same result with my binary, because when
it now works for you with admin rights, this would be the same old bug.

I send it anyway.

Bye
Tim
Post by Bob Snyder
Thanks,
Bob S.
_______________________________________________
Geany mailing list
http://uvena.de/cgi-bin/mailman/listinfo/geany
Bob Snyder
2007-11-01 15:24:47 UTC
Permalink
Post by Enrico Tröger
A new Windows binary can be found at
http://www.uvena.de/tmp/geany_svnr2000_win32_bin.zip. Maybe I'll put
a full installer online for the current SVN version.
Furthermore, I'll check whether we could remove this status file at all
but for the moment I'm not yet sure.
Regards,
Enrico
Enrico,

This has indeed fixed my problem.

Many thanks for the quick turn-around, and to the whole Geany team for a
terrific product.

Best regards,

Bob Snyder
Continue reading on narkive:
Loading...