Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11703 - Cannot compose message with non-letter/number characters in Evolution 1.0.8
Summary: Cannot compose message with non-letter/number characters in Evolution 1.0.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Jonathan Nall
URL:
Whiteboard:
Keywords:
: 11644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-06 18:54 UTC by sangar
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge -s gal gtkhtml gnome-spell aspell (search_emerge.txt,9.88 KB, text/plain)
2002-12-10 11:50 UTC, tom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sangar 2002-12-06 18:54:53 UTC
Evolution 1.0.8 seems to compile without error and everything seems to work
perfectly at first, i.e. i can retrieve emails read them and so forth.

When i try to compose a new message, any key except for normal letters are not
possible to write. For example attempting to press the space bar in the message
itself results in the composer window to vanish leaving a grey space. Only the
to, from and subject fields remain (all of which have no problems accepting any
keypress).

Closing the message then returns the error "Unable to retrieve message from editor"

I am running evolution from KDE 3.0.4, and my compile flags are "-O3 -pipe
-mcpu=750 -mpowerpc-gfxopt -fsigned-char" 

I'm running Gentoo 1.4 rc1 on my ibook2 600, running kernel version 2.4.19-r6

The output of emerge info is:

Portage 2.0.45 (default-ppc-1.4, gcc-3.2, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-r6 ppc
USE="oss dvd xv gpm jpeg nls mitshm gif gnome png truetype ppc gnome-libs
gtkhtml gdbm berkdb slang readline arts tetex bonobo java guile X sdl tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla"
ARCH="ppc"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char"
CXXFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char"
ACCEPT_KEYWORDS="ppc"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.3.1"
JAVA_HOME="/opt/blackdown-jdk-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 foser (RETIRED) gentoo-dev 2002-12-09 12:40:57 UTC
what version of gal ?
Comment 2 sangar 2002-12-09 13:29:14 UTC
emerge -s gal

*  gnome-extra/gal
      Latest version available: 0.20-r1
      Latest version installed: 0.20-r1
      Size of downloaded files: 930 kB
      Homepage:    http://www.gnome.org/
      Description: The Gnome Application Libraries
Comment 3 Jonathan Nall 2002-12-09 13:33:06 UTC
reassigning to nall@gentoo.org
Comment 4 Jonathan Nall 2002-12-09 13:33:26 UTC
reassigning to nall@gentoo.org
Comment 5 Jonathan Nall 2002-12-09 13:33:54 UTC
hi can you send emerge -s gtkhtml as well?

thanks
Comment 6 sangar 2002-12-09 13:59:16 UTC
First: emerge -s gtkhtml

*  gnome-extra/gtkhtml
      Latest version available: 1.0.4
      Latest version installed: 1.0.4
      Size of downloaded files: 1,282 kB
      Homepage:    http://www.gnome.org/
      Description: Lightweight HTML rendering/printing/editing engine.

Second, i just started experimenting again, and finally managed to circumvent
the problem:

When composing message i opened the properties option in the edit menu.
Then in Gnome control center i entered "Document Handlers" -> "HTML viewer" and
selected the "miscellaneous" tab. Here i unselected the "Enable Spell checking"
alternative. Returning to my message i could now press any key in the message
itself.

The error returns if the spell checking is turned back on. I am using aspell-no
on my system, version 0.50.2.

Does this still constitue a bug, or am i supposed to close this bug now?

thanks!
Comment 7 Jonathan Nall 2002-12-09 14:02:40 UTC
hi, thanks for the great info. what version of gnome-spell do you have installed?
Comment 8 sangar 2002-12-09 14:10:50 UTC
emerge -s gnome-spell showed gnome-spell as not installed, so i immediately
emerged it. I am now running 0.4.1-r3.

Unfortunately i can still reproduce the error by turning spell checking on.
Comment 9 Jonathan Nall 2002-12-09 14:26:14 UTC
try this.

- open 2 terminals
- in the first one, execute: killev
- then execute: gnome-spell-component (it may be gnome-spell-component-0.4 or such)
- wait a few seconds
- in the second terminal, execute: evolution
- open a new compose window in evo and type some stuff (cause the error)
- collect all output from the gnome-spell-component terminal and post it here.

thanks!
Comment 10 sangar 2002-12-09 14:38:52 UTC
I did exactly what you wrote, unfortunately neither terminal returns any error
messages (or any message for that matter) when the error occurs.

The terminal that started evolution returns this message when evolution itself
is closed:

Waiting for component to die -- OAFIID:GNOME_Evolution_Calendar_ShellComponent (1)
Waiting for component to die -- OAFIID:GNOME_Evolution_Mail_ShellComponent (1)

Sorry...
Comment 11 Jonathan Nall 2002-12-09 15:18:39 UTC
i think this stems from not having spell in your USE variable.

can you try executing oaf-slay and attempting to cause the failure again? (this
might make some gnome applications die (including evo), so back up anything
before running it.

Comment 12 sangar 2002-12-09 15:31:52 UTC
I executed oaf-slay, and repeated the test procedure to no avail, still no error
message.

I don't have more time now, but if you recommend it i will try adding SPELL to
my USE variables and then emerge evolution again.

thanks!
Comment 13 Mark Guertin 2002-12-09 17:14:47 UTC
*** Bug 11644 has been marked as a duplicate of this bug. ***
Comment 14 Jonathan Nall 2002-12-10 10:18:36 UTC
so this is pretty strange. the only reason the USE spell variable is used in the
evolution is to pull in gnome-spell as a dependency. i talked to some evo guys
and gnome-spell is supposed to be a drop-in component. it shouldn't matter that
you installed it after installing evolution.

when you press a key that will insert whitespace (spacebar, return) that's when
the gnome-spell-component is queried. is this what you're seeing? your message
said non-letter/number, but what about any other non-whitespace character (eg:
!@#$%^&*-=). 

you might also try:
1. logging out and logging back in
or
2. finding the rebooting -- can't hurt and maybe will reset something that needs
resetting.


wait_tom@yahoo.com: can you post some info about your system?
1. emerge -s gal gtkhtml gnome-spell aspell
2. are you running evolution from KDE?
3. does this only happen when typing whitespace?
Comment 15 tom 2002-12-10 11:50:32 UTC
Created attachment 6369 [details]
emerge -s gal gtkhtml gnome-spell aspell

Ok I did not have aspell installed.  I did as
suggested in a previous post by disabling aspell in
gnome control center html-viewer misc... and the
editor works fine now.	
here included is also answer to 3 questions. 
1. see output of emerge in attached file.
2. I am running evo on gnome
3. It does happen when typing space and strange
character and return or enter...

thanks for the help
Comment 16 Jonathan Nall 2002-12-10 13:31:17 UTC
that's gnome-spell, not gnomespell.

my guess is it isn't installed since you don't have spell in your USE variable,
but i'd like to see the output.

also, to both tom and sangar, can you do the following:

1. fire up evolution
2. open a terminal andrun:
gdb /usr/bin/gnome-gtkhtml-editor-1.1 (version might be different for you)
3. at the gdb prompt type: run
4. (the program should start and do nothing)
5. now, in evo, open a composition window and type some stuff to make it crash.
6. hopefully, the gdb session stopped and you have a gdb prompt again
7. at this prompt type: where
8. post all of the text from the terminal in this bug (starting from step #2)

my best guess is that the gtkhtml component is dying due to some spell checking
stuff. i know the above is a bit involved, but this output should help.

thanks.
Comment 17 tom 2002-12-11 08:22:55 UTC
here included is the output from step2.  Evo didn't crash on step 5.  Everything
is working well as long as spelling is disabled.

bash-2.05a$  gdb /usr/bin/gnome-gtkhtml-editor
GNU gdb 5.2.1
Copyright 2002 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 "powerpc-unknown-linux-gnu"...
(gdb) run
Starting program: /usr/bin/gnome-gtkhtml-editor 

** WARNING **: Cannot activate spell dictionary
(iid:OAFIID:GNOME_Spell_Dictionary:0.1)
Message: OAF error activating component: Nothing matched the requirements.

Bonobo-WARNING **: Activation exception 'Unknown CORBA exception id:
'IDL:OAF/GeneralError:1.0''

gtkhtml-WARNING **: Getting cursor base for an HTMLText with no slaves -- 0x100ca438


Program exited normally.
(gdb) where
No stack.
(gdb) 
Comment 18 Jonathan Nall 2002-12-11 08:29:40 UTC
tom,
do you have gnome-spell intalled? if so, what version?
Comment 19 tom 2002-12-12 08:19:14 UTC
Yes, gnome-spell-0.4.1-r3
Comment 20 Jonathan Nall 2002-12-13 08:29:29 UTC
and just to make sure we're on the same page, have you guys logged out/logged
back in (or rebooted) since emerging this stuff?

tom, are you using gnome-1.4 or 2.0?
Comment 21 sangar 2002-12-13 10:34:56 UTC
Hi, sorry about the delay, had to finish my exams.

First, it seems the bug can be triggerd by any other non-whitespace character
(eg: !@#$%^&*-=).

Second, i've tried rebooting multiple times with no better results.

Finally the gdb run proved valuable it seems, my errors are different from
wait_tom, but then again I crashed evo on purpose, assuming this is what you
want to see. 


(gdb) run
Starting program: /usr/bin/gnome-gtkhtml-editor
(no debugging symbols found)...(no debugging symbols found)...

gtkhtml-WARNING **: Getting cursor base for an HTMLText with no slaves -- 0x100c
          e710


gtkhtml-ERROR **: file htmlinterval.c: line 184 (html_interval_get_from_index):
           assertion failed: (i)
aborting...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGABRT, Aborted.
0x0ea22660 in kill () from /lib/libc.so.6
(gdb) where
#0  0x0ea22660 in kill () from /lib/libc.so.6
#1  0x0ea22334 in raise () from /lib/libc.so.6
#2  0x0ea23db4 in abort () from /lib/libc.so.6
#3  0x0ed663a8 in g_log () from /usr/lib/libglib-1.2.so.0
#4  0x0ed66414 in g_log () from /usr/lib/libglib-1.2.so.0
#5  0x0ffa2dec in html_interval_get_bytes () from /usr/lib/libgtkhtml.so.20
#6  0x0ff70234 in get_text_bytes () from /usr/lib/libgtkhtml.so.20
#7  0x0ff6e134 in get_text () from /usr/lib/libgtkhtml.so.20
#8  0x0ff69f04 in html_clueflow_spell_check () from /usr/lib/libgtkhtml.so.20
#9  0x0ff77874 in html_engine_spell_check_range ()
   from /usr/lib/libgtkhtml.so.20
#10 0x0ff7e25c in insert_object_do () from /usr/lib/libgtkhtml.so.20
#11 0x0ff7b464 in html_engine_insert_text () from /usr/lib/libgtkhtml.so.20
#12 0x0ff7bc9c in html_engine_paste_text () from /usr/lib/libgtkhtml.so.20
#13 0x0ff6252c in key_press_event () from /usr/lib/libgtkhtml.so.20
#14 0x0eef2c9c in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#15 0x0ef3436c in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#16 0x0ef32328 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#17 0x0ef79450 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#18 0x0f738458 in bonobo_plug_key_press_event () from /usr/lib/libbonobox.so.2
#19 0x0eef2c9c in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#20 0x0ef3436c in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#21 0x0ef32328 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
---Type <return> to continue, or q <return> to quit---
#22 0x0ef79450 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#23 0x0eef1aac in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#24 0x0eef10e0 in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#25 0x0eddbc28 in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
#26 0x0ed648c0 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#27 0x0ed646bc in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#28 0x0ed63464 in g_main_run () from /usr/lib/libglib-1.2.so.0
#29 0x0eef0cc8 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#30 0x0f7fb868 in bonobo_main () from /usr/lib/libbonobo.so.2
#31 0x10015de0 in main ()
#32 0x0ea0dfb4 in __libc_start_main () from /lib/libc.so.6
(gdb) quit
Comment 22 Jonathan Nall 2002-12-14 10:35:00 UTC
and then it dawns on me... i think i've seen this before. can each of you scale
your CFLAGS back to -O2 and re-emerge gtkhtml-1.0.4?
Comment 23 sangar 2002-12-14 16:33:54 UTC
It works!

the -O2 did the trick, i can turn on spell-checking in the Gnome Control panel
now without incurring the bug.

Thanks!
Comment 24 Jonathan Nall 2002-12-15 13:55:41 UTC
i guess the only question that's left is: does gcc-3.2.1 fix this? are either of
you upgrading to gcc-3.2.1 soon? i think it's been marked as stable for ppc now.

when you upgrade, could you try emerging gtkhtml with -O3 again and see if this
persists.

thanks.
Comment 25 sangar 2002-12-15 16:56:50 UTC
Upgrading to gcc-3.2.1 and emerging gtkhtml with -O3 solves the problem,
unfortunately a new bug occurs when starting evolution itself, making all
mailboxes inaccessible.

The error reads:

"Could not load /usr/lib/evolution/camel-providers/1.0/libcamellocal.so:
/usr/lib/evolution/camel-providers/1.0/libcamellocal.so: R_PPC_REL24 relocation
at 0x0e087ff4 for symbol '+x j' out of range"

I am leaving for christmas now, and will not have access to the net until
January 11. I will emerge gtkhtml with -O2 for now that fixes my problem anyway,
thanks for all the great help!

Merry christmas :)
Comment 26 Jonathan Nall 2002-12-15 19:56:38 UTC
tom? any luck with -O2? i've committed a fix in the gtkhtml-1.0.4 ebuild that
forces -O2 during compile.

i'll close this once i hear from you.
Comment 27 tom 2002-12-16 08:25:16 UTC
will try solution today and let you know...
Comment 28 tom 2002-12-17 09:30:22 UTC
recompiled gtkhtml with CFLAG -02  and evo works with check spelling enabled...
Problem solved.  thx... :)
Comment 29 Jonathan Nall 2002-12-31 08:10:02 UTC
this is fixed in portage. any setting of -O3 or -Os is changed to -O2 for
gtkhtml-1.0.4

yes, someone could have -O4, but it's not even listed in the man page, so we'll
just change the optimization levels listed there > -O2.

for your viewing pleasure:
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/gnome-extra/gtkhtml/gtkhtml-1.0.4.ebuild.diff?r1=1.6&r2=1.7

closing.