[ bibletime-Bugs-2526492 ] Crash when hovering over the word kai (και) in the LXX,

SourceForge.net noreply at sourceforge.net
Thu Jan 22 07:30:38 MST 2009


Bugs item #2526492, was opened at 2009-01-21 16:49
Message generated for change (Comment added) made by eelik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2526492&group_id=954

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Frontend / Bible display window
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Luke Plant (lukeplant)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash when hovering over the word kai (και) in the LXX,

Initial Comment:
If I hover over the word kai (και) in the LXX module, BibleTime crashes with the attached backtrace.  See also attached screen shot to show what my setup is, in case that is relevant.  I'm using the StrongsRealGreek module, I haven't seen if it happens with other Strongs modules yet.  This does not occur if I hover kai in WHNU.

Versions: 
BibleTime 1.7.beta3
libsword: 1.5.9-8.1ubuntu1


----------------------------------------------------------------------

>Comment By: Eeli Kaikkonen (eelik)
Date: 2009-01-22 14:30

Message:
Please tell if you have problems with the svn HEAD. The rest of this
comment is copied from the bt-devel mailing list:

jdc wrote:
>Just a coincidence ....
>I deleted my LXX and re-added it.  Now it works with both sets of code.
>
>Sorry for the trouble.
>
>jdc wrote:
>>The crash is from line 384 in src/frontend/cinfodisplay.cpp
>> if (value.at(1).isDigit())
>>
>>value.at(1) is crashing on my computer.  In this case value is "C",
>>which has a length of 1, and the index [1] is not returning
>>QChar::null.  Instead of returning QChar::null it is crashing.
>>
>>The Qt documentation, starting at 4.0, states that the index must be a
>>valid position in the string.  Apparently, they have finally updated
the
>>code to make this statement serious. My Qt version is 4.4.3 (all my Qt
packages are
>>listed below if you need
>>that information)
>>
>>
>><snip> from src/frontend/cinfodisplay.cpp  (line 377-389)
>>
>>        // if we don't have a class assigned or desired one isn't
>>installed...
>>        if (!module) {
>>            // Morphs usually don't have [GH] prepended, but some old
OLB
>>            // codes do.  We should check if we're digit after first
char
>>            // to better guess this.
>>            // No need to check len, if at(1) is > len QChar::null is
>>            // returned which is ok to .isDigit()
>>            if (value.at(1).isDigit()) {


It doesn't hurt to make a check, just to be sure it works in any case, so
I added it to
svn code:
if (value.size() > 1 && value.at(1).isDigit()) {

--Eeli Kaikkonen


----------------------------------------------------------------------

Comment By: Eeli Kaikkonen (eelik)
Date: 2009-01-22 14:30

Message:
Hi! 
 
Thank you for your bug report. 
The bug you described is already fixed in a newer version 
of BibleTime. Please consider an update of your BibleTime 
installation 
 
-- 
This is an answer template. If you have questions please 
write to info at bibletime.de! 
Read our FAQ at 
http://www.bibletime.de/cgi-bin/ax.pl?http://sword.sourceforge.net/cgi-bin/twiki/view/Faq/BibleTime

 

----------------------------------------------------------------------

Comment By: Luke Plant (lukeplant)
Date: 2009-01-21 16:58

Message:
I can confirm that the same crash happens if I switch to the more common
StrongsGreek module.  This makes BibleTime very crashy for me -- I've got
to be very careful where I point my mouse.

Thanks!
File Added: snapshot1.png

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2526492&group_id=954



More information about the bt-devel mailing list