Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-24 Thread Thomas Martitz

Am 24.07.2013 02:57, schrieb Lex Trotman:

[...]


=

THIRD: Geany (regular launch; 'Spell Check' plugin disabled
(deselected)): Working normally; no 'freezes'!  :-)  Very fast,
responsive (immediate) - heavy (intensive)  pastes/saves/deletes ...


Ok, well, now the culprit is identified :)

But it is still worthwhile getting the backtrace from GDB as I asked. 
 Since it doesn't happen here, that will provide some guidance for the 
plugin maintainer where to look.  Without that info he may not be able 
to recreate the fault to fix it.




He pasted the backtrace, you don't seem to read carefully these days :) 
Anyway, it sat in poll() so I assume another thread causes the problems.


To the OP: Can you provide a backtrace for each thread when the freeze 
problem occurs? To do this repeat the GDB procedure up to the point 
where you enter bt. But instead of bt do this:


1) print the threads and their IDs: 'info threads'
for each thread:
  a) switch to thread with 'thread ID'
  b) print backtrace with bt

Best regards.

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-23 Thread Lex Trotman
Hi,

Thanks for the update, please try the list of things suggested and report
the results.

Regards
Lex


On 24 July 2013 06:08, Victoria S. 1...@victoriasjourney.com wrote:

 Thank you for your comments / suggestions - appreciated.  I tried your
 suggestions: none had any effect.

 Ubuntu 12.04 LTS 64 bit
 Intel® Core™2 Quad CPU Q9300 @ 2.50GHz × 4
 Geany 1.23

 UPDATE 1 (July 23):

 I am (currently) working with plain-text (.txt) files.  I am teaching
 myself RDBMS/SQL; the file I am working on (my saved text) is

 /home/victoria/Programming/RDB, SQL/Examples/Tutorial 3 -  More Advanced
 SQL Instruction/Tutorial 3 -  More Advanced SQL Instruction.txt

 ... i.e. a path to a nested folder, with spaces, etc. in the path.

 That file is ~1100 lines in length, although many of those are long,
 unwrapped single lines as I typically don't employ line wrapping / right
 margins unless I have a specific need to do so.  In teh Documents menu, I
 do have 'Line Wrapping' and 'Auto-Indentation' checked/selected.

 The file is currently 65.4 kB (65,439 bytes; ~8900 words; ~65750
 characters; UTF-8; no execute permissions (just the standard Owner/Group
 read/write).

 This morning the pauses were averaging ~9 seconds or so, at every paste
 (gnome-terminal  Geany .txt file).  I quit Geany (one current/working
 tab), then reopened the file, and immediately did some copy/pastes from my
 (gnome-)terminal to this txt file: all instantly pasted, with Geany fully
 'responsive.'

 Here's a key observation: I then saved the file (the first save operation
 after opening it), and ** immediately  thereafter** the aforementioned
 behavior began: Geany began pausing/'freezing' (up to ~2 min 35 sec i.e.
 155 sec), but more typically , ~15-60+ seconds, intermittently (many but
 not all paste operations).  Manual save operations (Ctrl-S) are instant.

 While this was occurring I had one eye on my System Monitor: Geany would
 shoot to 100% CPU use (typically 0%, otherwise).  As mentioned, I have a
 quad-core system: among those CPU, Geany would max out (100% useage) one of
 those four CPU for a bit (say 10-15 sec.?), then swap to another CPU, that
 would then be at 100% use (with the previous CPU freed for other system
 use).

 I quit Geany, and launched it from the (terminal) command line (not the
 Ubuntu Unity Panel, as I have been doing).  Here is the terminal poutput; I
 was hoping to see something during the freezes, but saw no system/terminal
 messages:

 victoria@victoria:~$ geany

 (geany:19046): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion
 `GTK_IS_MENU_SHELL(menu)' failed
 (geany:19046): Gtk-CRITICAL **: IA__gtk_list_store_clear: assertion
 `GTK_IS_LIST_STORE (list_store)' failed
 (geany:19046): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed
 (geany:19046): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed
 (geany:19046): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed
 (geany:19046): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed

 I have no idea what any of that means, however.  :-/

 Watching the terminal window, when I made an edit to the .txt file and
 saved it, this line was appended to the terminal output (but nothing, if
 Ctrl-S on an unedited, i.e. unchanged) file):

 (geany:19185): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed

 ___
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-23 Thread Lex Trotman
On 24 July 2013 08:08, Victoria S. 1...@victoriasjourney.com wrote:

   ... please try the list of things suggested and report the results. 

 Hi: As mentioned,

  ... I tried your [the users' list] suggestions: none had any
 effect. ...,

 I already tried the other suggestions.  ;-)


Ok, so we move on to more detailed things :)

As you would have probably guessed, it isn't happening for anyone here, so
we need you to help track it down.

Can you run geany with gdb and when it is consuming 100% cpu interrupt it
(ctrl-c in the terminal) and see if you can get a backtrace  to find where
it is spending its time.

Also when you run from terminal you can use -v to see more information, and
possibly see more warnings.

Of the warnings you listed, the menushell one is caused by Ubuntu rudely
stealing the menu from an application that isn't designed for that,
complaints to them, we can't fix it.

Not sure what the others are, when running in gdb you could try using the
--g-fatal-warnings option, though that will stop at the first one, but you
might be able to continue from there to get it to stop on the second.  If
you can please send the backtrace so we can see where it is happening.

Cheers
Lex



 ___
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-23 Thread Lex Trotman
[...]

 ** (geany:22793): CRITICAL **: enchant_is_title_case: assertion `word 
 *word' failed

 ** (geany:22793): CRITICAL **: enchant_is_all_caps: assertion `word 
 *word' failed

 ** (geany:22793): CRITICAL **: enchant_is_title_case: assertion `word 
 *word' failed


These messages are from the enchant library that the spell checker plugin
uses, so step one is to disable that plugin in the plugin manager and try
again.

[...]

 ...
 [SNIP!  ~230 each of these two lines while Geany was 'frozen' -- Victoria]
 ...


Looks suspicious, lets try the disable of the spell checker :)



 ** (geany:22793): CRITICAL **: enchant_is_title_case: assertion `word 
 *word' failed

 ** (geany:22793): CRITICAL **: enchant_is_all_caps: assertion `word 
 *word' failed

 Geany-INFO: /home/victoria/Programming/RDB, SQL/Examples/Tutorial 3 -
  More Advanced SQL Instruction/Tutorial 3 -  More Advanced SQL
 Instruction.txt : None (UTF-8)


 [FOLLOWING LINE AFTER FILE SAVE -- Victoria:]

 (geany:22793): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed


I suspect (without a great deal of evidence to date) that this is from the
tree browser plugin, but I doubt its the cause of the slowdown.





 ** (geany:22793): CRITICAL **: enchant_is_title_case: assertion `word 
 *word' failed

 ** (geany:22793): CRITICAL **: enchant_is_all_caps: assertion `word 
 *word' failed


[...]


 I repeated the above (Geany in gdb), this time halting gdb (Ctrl-C in
 terminal) when Geany was frozen.  Geany went to a slightly greyed-out
 (non-responsive but still visible, readable) window and remained as a
 process in the System Monitor.  It finally closed when I quit gdb (below):


Thats what is supposed to happen, the ctrl-c just interrupts it and throws
control back to gdb, freezing the UI.




 victoria@victoria:~$ gdb geany
 GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
 Copyright (C) 2012 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as x86_64-linux-gnu.
 For bug reporting instructions, please see:
 http://bugs.launchpad.net/gdb-linaro/...
 Reading symbols from /usr/bin/geany...(no debugging symbols found)...done.
 (gdb) run
 Starting program: /usr/bin/geany
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
 [New Thread 0x701af700 (LWP 23335)]
 [New Thread 0x7fffef9ae700 (LWP 23336)]
 [New Thread 0x7fffee948700 (LWP 23337)]

 (geany:23332): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion
 `GTK_IS_MENU_SHELL(menu)' failed

 (geany:23332): Gtk-CRITICAL **: IA__gtk_list_store_clear: assertion
 `GTK_IS_LIST_STORE (list_store)' failed

 (geany:23332): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed

 (geany:23332): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed

 (geany:23332): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed

 (geany:23332): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed
 [Thread 0x7fffee948700 (LWP 23337) exited]

 (geany:23332): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter_first:
 assertion `GTK_IS_TREE_MODEL (tree_model)' failed
 ^C
 Program received signal SIGINT, Interrupt.
 0x7541e313 in poll () from /lib/x86_64-linux-gnu/libc.so.6
 (gdb) q


What you should do here is bt to get a backtrace before quitting.


 [...]


 I hope that this helps; Although knowledgeable in Linux operation, I am
 entirely unfamiliar with debugging (gdb, etc.)


No problem, thanks for helping.

Cheers
Lex




 ___
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-23 Thread Lex Trotman
[...]


 =

 THIRD: Geany (regular launch; 'Spell Check' plugin disabled (deselected)):
 Working normally; no 'freezes'!  :-)  Very fast, responsive (immediate) -
 heavy (intensive)  pastes/saves/deletes ...


Ok, well, now the culprit is identified :)

But it is still worthwhile getting the backtrace from GDB as I asked.
 Since it doesn't happen here, that will provide some guidance for the
plugin maintainer where to look.  Without that info he may not be able to
recreate the fault to fix it.

Geany-plugins is separate from Geany, the plugins are not necessarily
created or maintained by Geany devs.  So please make a bug report on the
geany-plugins bug tracker
(https://sourceforge.net/p/geany-plugins/bugs/) including
the backtrace from above, so the maintainer will be informed.  That way he
can fix it and you won't need to go without.


 That's good: I like the Tree Browser plugin.


The treebrowser plugin has been orphaned for a while, but has just got a
new maintainer (IIRC) so again please make a bug report so he will know
about the problem.

Cheers
Lex



 =

 I can live without the 'Spell Check' plugin, but very grudgingly so: I use
 it extensively for personal/professional use.  Is there a work-around/other
 options?  I use enchant e.g. with gedit, Claws mail - seemingly without
 issue ...

 Thanks again for your excellent help much appreciated!

 Sincerely, Victoria  :-)
 ___
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Sluggish (slow; transiently non-responsive) Geany?

2013-07-22 Thread Lex Trotman
HI,

Nothing below looks unusual. So a few questions/suggestions to help track
it down.

What filetype does it happen on?

Does the slowdown happen on all filetypes?

If you set menu-edit-preferences-editor-completions Symbol list update
frequency to 0 does that fix it?

What period do you have save actions plugin autosave period set to?

Try turning plugins off one at a time to see if one can be identified as
the culprit.

Cheers
Lex

On 23 July 2013 10:10, Victoria S. 1...@victoriasjourney.com wrote:

 Hello: Can anyone comment on this? Thanks ...

 I am experiencing frequent sluggish/non-responsive behavior persisting
 several seconds upon routine use of Geany - virtually every copy/paste
 action.  During these episodes, Geany appears to 'freeze;' it is
 increasingly annoying to me.

 Ubuntu 12.04 LTS 64 bit
 Intel® Core™2 Quad CPU Q9300 @ 2.50GHz × 4
 Geany 1.23

 I generally several tabs open in Geany, copying and pasting text from my
 web browser (Firefox) and the gnome-terminal into Geany.  These Geany files
 are rather small: at most several hundred lines long (e.g. up to ~1200 or
 so lines).

 I have just a few plugins running (all from the default installation -
 nothing exotic),

 Addons  |  Export  |  Extra Selection  |  Save Actions  |  Shift Column  |
  Spell Check  |  Split Window  |  Tree Browser  |  Updatechecker

 ... although I did tweak the following two configuration files, a bit,as
 shown:

 'snippets.conf' :


 sep1==
 sep2

 sep3=-
 sep4=---
 sep5=- - - - - - - - - -

 1at=1...@victoriasjourney.com

 #snip=[snip]
 Snip=[ ... SNIP! ... ]


 'filetypes.common' :

 ...
 # third argument: if true, use this foreground color
 # fourth argument: if true, use this background color
 #white_space=0xc0c0c0;0xff;true;false
 white_space=0xFF;0xDD;true;true
 # test:  test   test
 # some colors:
 # http://www.color-hex.com/
 #
 http://stackoverflow.com/questions/2188492/flex-colorpicker-load-colors-from-xml
 # http://www.color-hex.com/
 # http://aprendiendocss3.files.wordpress.com/2012/01/hex_colors.jpg
 # more compact (fewer shown):
 http://www.flymedia.co.uk/help-in-general.php
 # navy blue: 0x23238E
 # red: 0xFF
 # v. light yellow: 0xBB  |  0xCC  |  0xDD
 # v. light gray: 0xCC  |  0xDD  |  0xEE  # 0xF is white,
 essent.

 # http://html-color-codes.com/

 # restart Geany for these to take effect:
 # commented text color (#):
 #comment=0xd0   # red
 #comment=0x7a7a7a   # medium gray  (0x00 = black)
 #comment=0x66   # dark gray
 #comment=0xcc66ff   # light purple
 comment=0x9900cc   # darker purple
 ...
 # restart Geany for these to take effect:
 # docstring color (  text ); e.g. Python:
 #string=0xff8000  # light orange
 string=0xff3300  # darker orange
 ...

  ===
 ___
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users