Hi,
does anyone use Geany with GTK 2.8.13 or above on a non-Debian linux?
I want to figure out, whether the problems, reported by Kristoffer and
Frank, with Geany and GTK 2.8.13 are related really to GTK or only to
the Debian GTK packages.
I have still no idea where the problem is, because the segmentation
faults occurs deep inside the GTK libraries, but as far as I know no
other GTK applications have such problems, so it has to be a bug in
Geany ;-(.
regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
Geany, a lightweight IDE using GTK2 - http://geany.uvena.de
I just experienced another crash..
I had just written a:
foreach($somearray )
{
}
and was positioned after "$somearray" to type in " as $code =>" when it crashed.
(crashed on typing either the = or > sign)
After deleting the fifo-file in .geany and restarting geany it would crash
again as soon as I clicked anywhere on the interface, or scrolling the file.
I tried restarting 5 or so times, but always crashed again.
So I can't test if it is related to my file or not, but if you wanna test I've put it here:
http://www.codecrush.com/repository/bibsok3.php.tar
happy hunting!
~Kris
I installed using your deb-package.
I've used it for a few days now and it doesn't crash as often,
but it's still crashing from time to time. Haven't managed to
pinpoint anything though.
Except I had to delete my old geany.conf - otherwise it would
crash whenever I tried to enter the preferences.
Random events where it has crashed:
- once upon typing an end-bracket } again
- once when searching through a file - upon hitting F3 to
"search again"/continue
- a couple times when opening files. One of which might have
been in use by another application.
:)
~Kris
> -----Original Message-----
> From: geany-bounces(a)uvena.de [mailto:geany-bounces@uvena.de]
> On Behalf Of Enrico Tröger
> Subject: Re: [Geany] bug with }-matching?
> On Fri, 10 Mar 2006 14:53:17 +0100, Kristoffer A. Tjernås <kt(a)nupi.no>
> > > > on typing the closing bracket (}) geany would crash.
> > > It occurs on my system, too. So it will be fixed soon, although I
> > > still have no idea where it crashes ;-).
> >
> > That's "great" news.. not that it crashes.. but that it will be fixed
> > ;)
> it is fixed. The answer is late, but positive ;-).
> The line was simply too long, because it was read into a
> buffer with fixed size of 256 chars, now the buffer will be
> allocated with the length of the line.
Thanks for explaining. It's always interresting to know what was going
on rather than just "it's fixed" :)
> > It was originally just an if-else clause, then I was gonna add the
> > elseif(){} part in the middle of it. Upon typing the last bracket it
> > crashed. Note that I didn't try multiple times as I
...
> I hope this was related to the brackets-bug. With your code
> snippet I can't reproduce a crash.
Yea let's hope so. I'll report back if I find any other possible bugs again.
And now that I know how to restart Geany after, I'll first try reproducing -
tracking down where it happens. ;)
> The fix is already in CVS and perhaps Joo will build a new
> Debian package within the next days.
pretty please ;)
If someone would teach me how to do this, I would appreciate it. Creating
Debian packages from the Geany-cvs that is..
~Kris
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 10 Mar 2006 14:53:17 +0100, Kristoffer A. Tjernås <kt(a)nupi.no>
wrote:
Hi,
> > > on typing the closing bracket (}) geany would crash.
> > It occurs on my system, too. So it will be fixed soon,
> > although I still have no idea where it crashes ;-).
>
> That's "great" news.. not that it crashes.. but that it will be
> fixed ;)
it is fixed. The answer is late, but positive ;-).
The line was simply too long, because it was read into a buffer with
fixed size of 256 chars, now the buffer will be allocated with the
length of the line.
> It was originally just an if-else clause, then I was gonna add the
> elseif(){} part in the middle of it. Upon typing the last bracket it
> crashed. Note that I didn't try multiple times as I couldn't get
> geany running at the time, so I finished that piece in vim. Thus this
> could've been a random crash, as I've experienced quite a few of
> these lately. And not only with Geany.. Both gPHPEdit and Anjuta has
> randomly crashed on me too! Bluefish has remained stable. I've not
> tested the other editors enough to say for sure, but I think the
> brackets-bug is specific to Geany.
I hope this was related to the brackets-bug. With your code snippet I
can't reproduce a crash.
The fix is already in CVS and perhaps Joo will build a new Debian
package within the next days.
regards,
Enrico
- --
Get my GPG key from http://www.uvena.de/pub.key
Geany, a lightweight IDE using GTK2 - http://geany.uvena.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFEGh3/J0P7viH/xN8RAsVuAJ0f3zH7+lVizfhy7+ZcaZsIdqqgvgCghu39
FzSOhhq+5veFiFZ9JRncGaw=
=sRz6
-----END PGP SIGNATURE-----
I'm using the debian package of the cvs, geany 0.5.4cvs. The problem has been there since 0.5.0
though, far as I can tell.
I'm currently working on a PHP project. When working with strings I often use {$var} notation
inside strings to print the value of the variable. Here's 1 example where geany would crash
(segmentation fault):
$sql = "UPDATE " . N7_DB_FMEXT . " SET extension='" .
n7_str_prep($n7_ext_up['name']) . "', mimegroup='" . n7_str_prep($n7_ext_up['mimegroup']) . "', mimetype='" . n7_str_prep($n7_ext_up['mimetype']) . "', mimeicon='" . n7_str_prep($n7_ext_up['mimeicon']) . "', comment='" . n7_str_prep($n7_ext_up['comment']) . "', ext_allowed={$n7_ext_up['allowed']}, ext_camoflash={$n7_ext_up['camoflash']}, ext_chmod='" . n7_str_prep($n7_ext_up['chmod']) . "' WHERE ext_id='$key'";
I would type in the whole string and then add the {} surrounding the variable:
ext_allowed=$n7_ext_up['allowed'] -> ext_allowed={$n7_ext_up['allowed']}
on typing the closing bracket (}) geany would crash.
I first though it was only related to using brackets inside the strings or something, but found
out today that it's not. I was gonna add an "elseif" section to an if-else construct, and upon
typing in the closing bracket geany crashed again. This time geany is refusing to restart though
(I haven't tried restarting the comp).
I'm sorry that I can't provide better debug-info - I don't know how. But if you got any questions
or things you'd like me to try I'll happily do it.
best regards,
Kris
In my previous post I was sure the bug was related to brackets as I had
only experienced it in that context (some ~10 times I reckon).
Now I just experienced a crash again, but this time I was merely searching
through a file. Upon restarting geany it crashed again when I clicked the
tab of the file I've been working on.
the last run was from commandline and I got this output:
--
geany -n -t
** INFO: trying to create a new named pipe
** INFO: debug mode built in (can't be disabled)
** INFO: Could(or should) not load libvte.so.4, terminal support disabled
** INFO: /var/www/node7/phpBB2/n7/n7_fm.php : PHP (UTF-8)
** INFO: /var/www/node7/phpBB2/n7/lib/fm_functions.php : PHP (UTF-8)
** INFO: /var/www/node7/phpBB2/docs/n7_sql.txt : None (UTF-8)
(geany:2337): Gdk-CRITICAL **: gdk_window_scroll: assertion `GDK_IS_WINDOW (window)' failed
(geany:2337): Gdk-CRITICAL **: gdk_window_process_updates: assertion `window != NULL' failed
** INFO: /var/www/node7/phpBB2/docs/n7_ideas.txt : None (UTF-8)
** INFO: /var/www/node7/phpBB2/templates/subSilver/n7/n7_post.tpl : None (UTF-8)
** INFO: /var/www/node7/phpBB2/templates/subSilver/n7/n7_fm_list.tpl : None (UTF-8)
** INFO: /var/www/node7/phpBB2/n7/lib/n7_functions.php : PHP (UTF-8)
(geany:2337): Gdk-CRITICAL **: gdk_window_scroll: assertion `GDK_IS_WINDOW (window)' failed
(geany:2337): Gdk-CRITICAL **: gdk_window_process_updates: assertion `window != NULL' failed
** INFO: /var/www/node7/phpBB2/n7/language/lang_english/lang_n7cp.php : PHP (UTF-8)
** INFO: /var/www/node7/phpBB2/n7/n7_bits.php : PHP (UTF-8)
Segmentation fault
--
don't know if that helps in any way though :/
~kris