[bt-devel] [ bibletime-Bugs-1255685 ] Changes not saved to personal commentary

SourceForge.net noreply at sourceforge.net
Mon Jun 19 20:31:47 MST 2006


Bugs item #1255685, was opened at 2005-08-10 05:58
Message generated for change (Comment added) made by gabrbedd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1255685&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 / Commentary display window
Group: new bug
Status: Open
Resolution: None
Priority: 8
Submitted By: John A. Sullivan III (jsulliva)
Assigned to: Gabriel M. Beddingfield (gabrbedd)
Summary: Changes not saved to personal commentary

Initial Comment:
I am running bibletime 1.5 on fully patched Fedora Core
4 for X86_64.  I find that if I have my personal
commentary opened for editing in plain text and
synchronized with my bible and I try to edit an
existing personal commentary, the changes are not
saved.  I click in the personal commentary text edit
windows, change text, click on the save icon, move to a
different verse, return to the original verse and the
changes are not there.

Thanks - John

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

>Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-06-19 22:31

Message:
Logged In: YES 
user_id=1323055

Sorry that I've been away for a spell.

First:  The 'endless loop' bug is now being handled under
Issue # 1509044.  I am also working on it as a priority.

As for this bug, I personally suspect that this is a Sword
bug on the x86_64 platform.  While I plan to confirm it, I'm
also reporting it to that list to get more eyes on the subject.

-Gabriel


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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-04-27 05:39

Message:
Logged In: YES 
user_id=489673

I've confirmed that this bug still exists in 1.6beta2.  I do
wonder if it's related to running a 64 bit OS.  I don't know
if there is any bit-twiddling in the edit code but, if it
assumes a 32 bit int or long int and does some manipulation,
the actual variable may be left filling in a platform
dependent way.  I certainly found that on the ISCS project I
maintain where I had to replace a ton of "long int" with
uint_32t.  Just a thought; I don't know why one would
normally manipulate bits in a save or edit file routine - John

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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-04-17 06:03

Message:
Logged In: YES 
user_id=489673

Sorry to take so long to get back to you.  I thought for
sure that you must be right and there was some corruption in
my personal commentary so I renamed the personal commentary
and downloaded a fresh copy.

Here is a printout of my directory after creating the first
comment:

[jsullivan at jaspav personal]$ ls -l
total 736
-rw-------  1 jsullivan jsullivan     21 Apr 17 06:54 0000000
-rw-------  1 jsullivan jsullivan      4 Apr 17 06:54 incfile
-rw-rw-r--  1 jsullivan jsullivan 127321 Apr 17 06:54 nt
-rw-rw-r--  1 jsullivan jsullivan  49476 Apr 17 06:54 nt.vss
-rw-rw-r--  1 jsullivan jsullivan 370320 Mar 29  2005 ot
-rw-rw-r--  1 jsullivan jsullivan 144690 Mar 29  2005 ot.vss   

Here is what happens when I try to edit this brand new,
single comment:

[jsullivan at jaspav personal]$ ls -l
total 744
-rw-------  1 jsullivan jsullivan     40 Apr 17 06:59 ??
-rw-------  1 jsullivan jsullivan     21 Apr 17 06:54 0000000
-rw-------  1 jsullivan jsullivan      4 Apr 17 06:54 incfile
-rw-rw-r--  1 jsullivan jsullivan 127321 Apr 17 06:54 nt
-rw-rw-r--  1 jsullivan jsullivan  49476 Apr 17 06:54 nt.vss
-rw-rw-r--  1 jsullivan jsullivan 370320 Mar 29  2005 ot
-rw-rw-r--  1 jsullivan jsullivan 144690 Mar 29  2005 ot.vss

Notice the ?? file.

When I delete the comment, I get this:
[jsullivan at jaspav personal]$ ls -l
total 744
-rw-------  1 jsullivan jsullivan      0 Apr 17 07:00 ??
-rw-------  1 jsullivan jsullivan     21 Apr 17 06:54 0000000
-rw-------  1 jsullivan jsullivan      0 Apr 17 07:00
46909632806913
-rw-------  1 jsullivan jsullivan      4 Apr 17 07:00 incfile
-rw-rw-r--  1 jsullivan jsullivan 127337 Apr 17 07:00 nt
-rw-rw-r--  1 jsullivan jsullivan  49476 Apr 17 07:00 nt.vss
-rw-rw-r--  1 jsullivan jsullivan 370320 Mar 29  2005 ot
-rw-rw-r--  1 jsullivan jsullivan 144690 Mar 29  2005 ot.vss

Notice the new "46909632806913" file.

When I readd the comment, I get this:

[jsullivan at jaspav personal]$ ls -l
total 752
-rw-------  1 jsullivan jsullivan      0 Apr 17 07:00 ??
-rw-------  1 jsullivan jsullivan     21 Apr 17 06:54 0000000
-rw-------  1 jsullivan jsullivan      0 Apr 17 07:00
46909632806913
-rw-------  1 jsullivan jsullivan     24 Apr 17 07:02
46909632806914
-rw-------  1 jsullivan jsullivan      4 Apr 17 07:02 incfile
-rw-rw-r--  1 jsullivan jsullivan 127353 Apr 17 07:02 nt
-rw-rw-r--  1 jsullivan jsullivan  49476 Apr 17 07:02 nt.vss
-rw-rw-r--  1 jsullivan jsullivan 370320 Mar 29  2005 ot
-rw-rw-r--  1 jsullivan jsullivan 144690 Mar 29  2005 ot.vss

Is there any chance this is related to the fact that I am
using a 64 bit OS (Fedora Core 4 X86_64)?

Thanks - John 

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-04-01 07:59

Message:
Logged In: YES 
user_id=1323055


I untarred the commentary and tried to reproduce with 1.5.2,
1.5.3, and 1.6pre1... and I could not recreate the bug.

However, the files named ??0002 and ?? and the like make me
wonder if there is some corruption in your sword module or
your personal commentary.

I tried verses in Genesis, Exodus, and I John... and all my
edits remained in tact.  This is with the commentary
installed in $HOME and in /usr/share/sword.

Just for grins, would you mind:

1. Tarring up your commentary (so you don't lose it)
2. Uninstalling the personal commentary
3. Reninstall a clean personal commentary to your user directory
4. Try to reproduce this bug.

Thanks,
Gabriel


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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-30 08:20

Message:
Logged In: YES 
user_id=489673

I've attached a bz2 tarfile of my personal commentary. 
Thanks - John

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

Comment By: Martin Gruner (mgruner)
Date: 2006-03-30 03:11

Message:
Logged In: YES 
user_id=169722

Hi John. Can you perhaps zip up the module and send it to Gabriel for debugging? Perhaps also Sword has problems with handling such an amount of comments, which it should not have?

God bless,

mg

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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-25 23:21

Message:
Logged In: YES 
user_id=489673

I've made the suggested chown and chmod changes but I still
have the same results.  Thanks - John

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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-25 23:16

Message:
Logged In: YES 
user_id=489673

No problem.  The output of ls -ld
/usr/local/share/sword/modules/comments/rawfiles/personal/*
is quite long.  Here is a section:

[jsullivan at jaspav ~]$ ls -ld
/usr/local/share/sword/modules/comments/rawfiles/personal/*
-rw-------  1 jsullivan jsullivan    120 Sep  7  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/??
-rw-------  1 jsullivan jsullivan    231 Mar 25 20:18
/usr/local/share/sword/modules/comments/rawfiles/personal/??00000
-rwxr-xr-x  1 jsullivan jsullivan     74 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000000
-rwxr-xr-x  1 jsullivan jsullivan    711 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000001
-rwxr-xr-x  1 jsullivan jsullivan    267 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000002
-rwxr-xr-x  1 jsullivan jsullivan    642 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000003
-rwxr-xr-x  1 jsullivan jsullivan    179 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000004
-rwxr-xr-x  1 jsullivan jsullivan     82 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000005
-rwxr-xr-x  1 jsullivan jsullivan    429 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000006
-rwxr-xr-x  1 jsullivan jsullivan    223 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000007
-rwxr-xr-x  1 jsullivan jsullivan    140 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000008
-rwxr-xr-x  1 jsullivan jsullivan     91 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000009
-rwxr-xr-x  1 jsullivan jsullivan     86 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000010
-rwxr-xr-x  1 jsullivan jsullivan    697 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000011

.
.
.
-rwxr-xr-x  1 jsullivan jsullivan    138 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000196
-rwxr-xr-x  1 jsullivan jsullivan    140 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000197
-rwxr-xr-x  1 jsullivan jsullivan    165 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000198
-rwxr-xr-x  1 jsullivan jsullivan    229 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000199
-rw-------  1 jsullivan jsullivan     37 Jan  4 12:10
/usr/local/share/sword/modules/comments/rawfiles/personal/??00002
-rwxr-xr-x  1 jsullivan jsullivan    329 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000200
-rwxr-xr-x  1 jsullivan jsullivan    553 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000201
-rwxr-xr-x  1 jsullivan jsullivan    140 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000202
-rwxr-xr-x  1 jsullivan jsullivan    216 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000203
-rwxr-xr-x  1 jsullivan jsullivan    186 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000204
-rwxr-xr-x  1 jsullivan jsullivan    147 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000205
-rwxr-xr-x  1 jsullivan jsullivan    172 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000206
-rwxr-xr-x  1 jsullivan jsullivan    342 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000207
-rwxr-xr-x  1 jsullivan jsullivan    262 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000208
-rwxr-xr-x  1 jsullivan jsullivan    168 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000209
.
.
.
-rwxr-xr-x  1 jsullivan jsullivan     22 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000296
-rwxr-xr-x  1 jsullivan jsullivan     25 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000297
-rwxr-xr-x  1 jsullivan jsullivan     16 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000298
-rwxr-xr-x  1 jsullivan jsullivan    237 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000299
-rw-------  1 jsullivan jsullivan    162 Sep  8  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/??00003
-rwxr-xr-x  1 jsullivan jsullivan    538 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000300
-rwxr-xr-x  1 jsullivan jsullivan     37 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000301
-rwxr-xr-x  1 jsullivan jsullivan    126 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000302
-rwxr-xr-x  1 jsullivan jsullivan     14 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000303
-rwxr-xr-x  1 jsullivan jsullivan     13 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000304
-rwxr-xr-x  1 jsullivan jsullivan    189 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000305
.
.
.
.
-rwxr-xr-x  1 jsullivan jsullivan    102 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000353
-rwxr-xr-x  1 jsullivan jsullivan    102 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000354
-rwxr-xr-x  1 jsullivan jsullivan     67 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000355
-rwxr-xr-x  1 jsullivan jsullivan     35 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000356
-rwxr-xr-x  1 jsullivan jsullivan    280 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000357
-rwxr-xr-x  1 jsullivan jsullivan     34 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000358
-rw-------  1 jsullivan jsullivan      5 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000359
-rw-------  1 jsullivan jsullivan   1652 Jul 12  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000360
-rw-------  1 jsullivan jsullivan   1069 Jul 26  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000364
-rw-------  1 jsullivan jsullivan    292 Jul 28  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000368
-rw-------  1 jsullivan jsullivan    391 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000370
-rw-------  1 jsullivan jsullivan     49 Aug  9  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000383
-rw-------  1 jsullivan jsullivan    434 Aug 10  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000387
-rw-------  1 jsullivan jsullivan    445 Sep  6  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000388
-rw-------  1 jsullivan jsullivan    102 Sep  7  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000389
-rw-------  1 jsullivan jsullivan    852 Sep  7  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000395
-rw-------  1 jsullivan jsullivan    146 Sep  8  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000399
-rw-------  1 jsullivan jsullivan    820 Sep  8  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000401
-rw-------  1 jsullivan jsullivan    262 Sep  9  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000407
-rw-------  1 jsullivan jsullivan     60 Sep  9  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000408
-rw-------  1 jsullivan jsullivan   4609 Sep 10  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/0000413
.
.
.
-rw-------  1 jsullivan jsullivan    110 Jan 20 13:50
/usr/local/share/sword/modules/comments/rawfiles/personal/0000460
-rw-------  1 jsullivan jsullivan    126 Jan 21 09:47
/usr/local/share/sword/modules/comments/rawfiles/personal/0000461
-rw-------  1 jsullivan jsullivan    639 Feb 21 11:33
/usr/local/share/sword/modules/comments/rawfiles/personal/0000464
-rw-------  1 jsullivan jsullivan    142 Mar  4 10:34
/usr/local/share/sword/modules/comments/rawfiles/personal/0000466
-rw-------  1 jsullivan jsullivan    392 Aug 10  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/??46909
-rw-------  1 jsullivan jsullivan   1652 Jul 12  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807273
-rw-------  1 jsullivan jsullivan     93 Jul 12  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807274
-rw-------  1 jsullivan jsullivan     93 Jul 12  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807275
-rw-------  1 jsullivan jsullivan   1010 Jul 26  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807277
-rw-------  1 jsullivan jsullivan    288 Jul 26  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807278
-rw-------  1 jsullivan jsullivan    231 Jul 26  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807279
-rw-------  1 jsullivan jsullivan    695 Jul 28  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807281
-rw-------  1 jsullivan jsullivan    201 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807283
-rw-------  1 jsullivan jsullivan    203 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807284
-rw-------  1 jsullivan jsullivan    339 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807285
-rw-------  1 jsullivan jsullivan     96 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807286
-rw-------  1 jsullivan jsullivan    104 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807287
-rw-------  1 jsullivan jsullivan    172 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807288
-rw-------  1 jsullivan jsullivan     83 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807289
-rw-------  1 jsullivan jsullivan     58 Jul 31  2005
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807290
.
.
.
-rw-------  1 jsullivan jsullivan     74 Jan 10 11:10
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807367
-rw-------  1 jsullivan jsullivan    140 Jan 11 08:12
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807369
-rw-------  1 jsullivan jsullivan    228 Jan 11 08:15
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807370
-rw-------  1 jsullivan jsullivan    216 Jan 11 08:17
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807371
-rw-------  1 jsullivan jsullivan    108 Jan 21 09:57
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807374
-rw-------  1 jsullivan jsullivan    108 Jan 21 09:58
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807375
-rw-------  1 jsullivan jsullivan    927 Feb 21 13:02
/usr/local/share/sword/modules/comments/rawfiles/personal/46909632807377
-rwxr-xr-x  1 jsullivan jsullivan      4 Mar  4 10:34
/usr/local/share/sword/modules/comments/rawfiles/personal/incfile
-rwxr-xr-x  1 jsullivan jsullivan 128722 Mar  4 10:34
/usr/local/share/sword/modules/comments/rawfiles/personal/nt
-rwxr-xr-x  1 jsullivan jsullivan  49476 Mar  4 10:34
/usr/local/share/sword/modules/comments/rawfiles/personal/nt.vss
-rwxr-xr-x  1 jsullivan jsullivan 373645 Feb 21 11:33
/usr/local/share/sword/modules/comments/rawfiles/personal/ot
-rwxr-xr-x  1 jsullivan jsullivan 144690 Feb 21 11:33
/usr/local/share/sword/modules/comments/rawfiles/personal/ot.vss


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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-25 21:39

Message:
Logged In: YES 
user_id=1323055


Yep.  No argument here.  :-)  Regarding the 'open
contradiction' -- you never know who's going to be offended
by what.

If possible, could you post the output of:
$ ls -ld
/usr/local/share/sword/modules/comments/rawfiles/personal/*
(I meant to post that one earlier)

IIRC, Fedora makes a group for each user.  Perhaps, as root,
try both of these:

# chown -R jsullivan:jsullivan
/usr/local/share/sword/modules/comments/rawfiles/personal
# chmod -R u+rw,g+rw
/usr/local/share/sword/modules/comments/rawfiles/personal

Then give it a try.

Note that I (personally) have not ruled out a BibleTime bug
(or even a Sword bug).  However, I can only recreate the
behavior by either manually manipulating file permissions,
or setting my umask to something like 222.

Oh yes:  THANKS for all your help on this bug.  I really
appreaciate it, and I know Martin and Joachim do, too.

Peace,
Gabriel



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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-25 19:22

Message:
Logged In: YES 
user_id=489673

Hmm . . .I just changed ownership on the entire sword
directory and all subdirectories to jsullivan (the user):
chown -R jsullivan /usr/local/share/sword  (done as root).

I still have the same problem :(

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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-25 19:13

Message:
Logged In: YES 
user_id=489673

No problem.  I wouldn't even mind the open contradiction :)
 My question was really more to learn than to argue.  If no
one else is experiencing the problem, I can simply change
ownership of everything; there's really no need for a shared
set up on this computer.

Here is the output of the commands you sent.  Thank you:

[jsullivan at jaspav ~]$ umask -S
u=rwx,g=rwx,o=rx
[jsullivan at jaspav ~]$ grep jsullivan /etc/passwd
jsullivan:x:501:500:John A. Sullivan
III:/home/jsullivan:/bin/bash
[jsullivan at jaspav ~]$ ls -lnd
/usr/local/share/sword/modules/comments/rawfiles
drwxr-xr-x  3 0 0 4096 Jun 27  2005
/usr/local/share/sword/modules/comments/rawfiles
[jsullivan at jaspav ~]$ ls -lnd
/usr/local/share/sword/modules/comments/rawfiles/*
drwxr-xr-x  2 501 0 16384 Mar 20 11:01
/usr/local/share/sword/modules/comments/rawfiles/personal

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-25 15:06

Message:
Logged In: YES 
user_id=1323055

It is indeed possible for you to create a file, fill it with
data, and then be unable to edit it.  

Here's an example of how this could happen:
$ /bin/bash
$ umask -S
u=rwx,g=rwx,o=rx
$ mkdir foo
$ ls -ld foo
drwxrwxr-x 2 gabriel parents 4096 2006-03-25 14:36 foo
$ umask a-w && umask -S
u=rx,g=rx,o=rx
$ echo "hello, world." > hello.txt
habs: hello.txt: Permission denied
$ emacs foo.txt
$ cat foo.txt
Lala.
$ echo "cat foo" >> foo.txt
bash: foo.txt: Permission denied
$ ls -l
-r--r--r-- 1 gabriel parents 6 2006-03-25 14:39 foo.txt
-r--r--r-- 1 gabriel parents 0 2006-03-25 14:38 hello.txt
$ exit
$

Do you see?  With emacs, I could create and write a file but
then be unable to edit it.  However, you can't do the same
with a file redirection because it creates the file and then
tries to manipulate it.  I was unable to edit the contents
of foo.txt because I didn't have write permission.  I didn't
have write permission because of the umask setting (see 'man
bash').

To sum up, I can't reproduce your bug, and AFAIK nobody else
has either.  On the other hand, BibleTime does not check for
write permission before writing -- and it does not warn you
if there's a failure.  This is not good at all, so I've
improved that part of it.  

Still, it's *likely* that it's a local configuration issue
(and not a bug).  However, you've checked the permissions,
and they are 'in tact.'  Even so, I still suspect it's a
permissions issue -- possibly a umask issue.  The umask is
set up when you login (/etc/profile and ~/.bashrc).  Trying
this patch would give some insight into the problem without
running the risk of contradicting you openly.  (Reason:  the
relationship is more important than the bug.)

So, in consideration of your backlog, it might be simpler to
be more direct...

Would you please post the following commands -- as the user
who is having the problem.  If you 'su' to the user, be sure
to do 'su -' and not just 'su'.

$ umask -S
$ grep $(echo $(who am i | sed 's/ .*//')) /etc/passwd
  (or 'grep USERNAME /etc/passwd')
$ ls -lnd /usr/local/share/sword/modules/comments/rawfiles
$ ls -lnd /usr/local/share/sword/modules/comments/rawfiles/*

Thanks,
Gabriel


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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-25 10:01

Message:
Logged In: YES 
user_id=489673

OK - thanks.  Unfortunately, I'm backlogged with projects
right now and so probably cannot get to it for at least two
weeks but I am eager to assist in resolving the problem.

I'm still a little unclear given the explanations below of
why I can write once to the personal commentary and the
comments are indeed saved - at least they appear after
reopening the application - but I cannot edit the same
comments that I could sucessfully write the first time.

Thanks again - John

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-24 21:52

Message:
Logged In: YES 
user_id=1323055

CVS HEAD now checks for isWritable() on the module before
trying to save any changes.  It issues an error if the
module can not be written to.  However, the sword library
does not appear to respond to dynamic changes in the file
permissions.    It assumes that once the files are opened,
the permissions are not changed.

John, if you could check out the source and try it, then it
would give us some insight into the bug.  If you prefer, I
can provide a patch for 1.5.2.

FYI, I'm still tracking down the endless loop issue. 
Somehow the (Previous|Next)(Chapter|Book|Verse) signal is
being duplicated when using the keychooser widget.  Note
that (barring DCOP) there isn't really another way to get
the error.  As soon as you click from the commentary to the
bible window, you get the "Save Changes" dialog even though
the key isn't really changing.  So, Ctrl+X (or the like)
will not create this bug because they don't apply to a
*writer* window, but *reader* windows.


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

Comment By: Martin Gruner (mgruner)
Date: 2006-03-24 11:13

Message:
Logged In: YES 
user_id=169722

This needs to be fixed for 1.6.
Thanks for all work so far, gentlemen!

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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-17 05:32

Message:
Logged In: YES 
user_id=489673

I believe I compiled from source.  I also gave the local
user permissions to the personal commentary directory when I
installed it.  I have just checked and the permissions are
still intact.  I would think that if the permissions were
lacking, I could not create the comment in the first place.
 The problem is not creating a comment; that works fine. The
problem is editing a comment previously created by the same
user.  Thanks - John

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-16 21:50

Message:
Logged In: YES 
user_id=1323055

More info in the endless loop:

It appears that the whatever calls the
(book|chapter|verse)PrevRequested() slots is being handled
multiple times:

1. If you press the button to get "Previous Chapter," you
will repeatedly get the previous chapter.  Likewise for
verse and book.

2. There are two (2) KMessageBoxes popping up.

I don't yet know why.  Perhaps it has to do with
synchronized display, the even loop started by the
KMessageBox, or possibly a timer that is being set somewhere
(there's an autoRepeatTimeout in the backtrace).  The loop
doesn't trigger until you say "Yes" or "No" to the
KMessageBox.  (Either "Yes" or "No" results the same.)

Here's a backtrace, after the 2nd KMessageBox has popped up.
 Notice that it's huge, and there are four (4)
'beforeKeyChange()' methods being called... two of which
make direct calls to the KMessageBox.

(gdb) bt
#0  0xb611a2e8 in select () from /lib/tls/libc.so.6
#1  0xb6b5408e in QEventLoop::processEvents () from
/usr/lib/libqt-mt.so.3
#2  0xb6bc7b01 in QEventLoop::enterLoop () from
/usr/lib/libqt-mt.so.3
#3  0xb6badc61 in QApplication::enter_loop () from
/usr/lib/libqt-mt.so.3
#4  0xb6dca368 in QDialog::exec () from /usr/lib/libqt-mt.so.3
#5  0xb7631bc7 in KMessageBox::createKMessageBox () from
/usr/lib/libkdeui.so.4
#6  0xb763237c in KMessageBox::createKMessageBox () from
/usr/lib/libkdeui.so.4
#7  0xb76330cb in KMessageBox::warningYesNoListWId () from
/usr/lib/libkdeui.so.4
#8  0xb76331f7 in KMessageBox::warningYesNoList () from
/usr/lib/libkdeui.so.4
#9  0xb7660a6f in KMessageBox::warningYesNo () from
/usr/lib/libkdeui.so.4
#10 0x080a3f04 in CWriteWindow::beforeKeyChange
(this=0x8236ac8, key=@0x85cfea8) at cwritewindow.cpp:165
#11 0x0809bb41 in CWriteWindow::qt_invoke (this=0x8236ac8,
_id=82, _o=0xbfec71f8) at cwritewindow.moc.cpp:94
#12 0x0809b2d4 in CPlainWriteWindow::qt_invoke
(this=0x8236ac8, _id=82, _o=0xbfec71f8) at
cplainwritewindow.moc.cpp:96
#13 0xb6c187ff in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#14 0xb6c18d2c in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#15 0x080b5561 in CKeyChooser::beforeKeyChange
(this=0x8225200, t0=@0xbfec72bc) at ckeychooser.moc.cpp:154
#16 0x080b5cdb in CBibleKeyChooser::setKey (this=0x8225200,
key=0x8462690) at cbiblekeychooser.cpp:123
#17 0x0808db9a in CDisplayWindow::lookup (this=0x8236ac8,
moduleName=@0xbfec73bc, keyName=@0xbfec741c) at
cdisplaywindow.cpp:449
#18 0x0808d9cc in CDisplayWindow::lookup (this=0x8236ac8,
keyName=@0xbfec741c) at cdisplaywindow.cpp:485
#19 0x0809f4cc in CBibleReadWindow::syncWindows
(this=0x858fbf0) at cbiblereadwindow.cpp:444
#20 0x0809f567 in CBibleReadWindow::lookup (this=0x858fbf0,
newKey=0x83f3a38) at cbiblereadwindow.cpp:428
#21 0x080a4ab7 in CBibleReadWindow::qt_invoke
(this=0x858fbf0, _id=100, _o=0xbfec74cc) at
cbiblereadwindow.moc.cpp:117
#22 0xb6c1892c in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#23 0x080b54bf in CKeyChooser::keyChanged (this=0x8277098,
t0=0x83f3a38) at ckeychooser.moc.cpp:148
#24 0x080b60a2 in CBibleKeyChooser::setKey (this=0x8277098,
key=0x83f3a38) at cbiblekeychooser.cpp:148
#25 0x080b663f in CBibleKeyChooser::versePrevRequested
(this=0x8277098) at cbiblekeychooser.cpp:222
#26 0x080bd10c in CBibleKeyChooser::qt_invoke
(this=0x8277098, _id=68, _o=0xbfec76ac) at
cbiblekeychooser.moc.cpp:160
#27 0xb6c187ff in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#28 0xb6c19290 in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#29 0x080bc77b in CKeyChooserWidget::prev_requested
(this=0x84b0780) at ckeychooserwidget.moc.cpp:213
#30 0x080bc932 in CKeyChooserWidget::qt_emit
(this=0x84b0780, _id=3, _o=0xbfec778c) at
ckeychooserwidget.moc.cpp:248
#31 0xb6c187d3 in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#32 0xb6c19290 in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#33 0xb6faee81 in QButton::clicked () from
/usr/lib/libqt-mt.so.3
#34 0xb6cb35de in QButton::autoRepeatTimeout () from
/usr/lib/libqt-mt.so.3
#35 0xb6faef82 in QButton::qt_invoke () from
/usr/lib/libqt-mt.so.3
#36 0xb6fca376 in QToolButton::qt_invoke () from
/usr/lib/libqt-mt.so.3
#37 0xb6c187ff in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#38 0xb6c19290 in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#39 0xb6fa8526 in QTimer::timeout () from /usr/lib/libqt-mt.so.3
#40 0xb6c3d741 in QTimer::event () from /usr/lib/libqt-mt.so.3
#41 0xb6baf122 in QApplication::internalNotify () from
/usr/lib/libqt-mt.so.3
#42 0xb6baf314 in QApplication::notify () from
/usr/lib/libqt-mt.so.3
#43 0xb72fafde in KApplication::notify () from
/usr/lib/libkdecore.so.4
#44 0x080aad81 in QApplication::sendEvent
(receiver=0x83de2cc, event=0xbfec7c28) at qapplication.h:520
#45 0xb6ba0bad in QEventLoop::activateTimers () from
/usr/lib/libqt-mt.so.3
#46 0xb6b54566 in QEventLoop::processEvents () from
/usr/lib/libqt-mt.so.3
#47 0xb6bc7b01 in QEventLoop::enterLoop () from
/usr/lib/libqt-mt.so.3
#48 0xb6badc61 in QApplication::enter_loop () from
/usr/lib/libqt-mt.so.3
#49 0xb6dca368 in QDialog::exec () from /usr/lib/libqt-mt.so.3
#50 0xb7631bc7 in KMessageBox::createKMessageBox () from
/usr/lib/libkdeui.so.4
#51 0xb763237c in KMessageBox::createKMessageBox () from
/usr/lib/libkdeui.so.4
#52 0xb76330cb in KMessageBox::warningYesNoListWId () from
/usr/lib/libkdeui.so.4
#53 0xb76331f7 in KMessageBox::warningYesNoList () from
/usr/lib/libkdeui.so.4
#54 0xb7660a6f in KMessageBox::warningYesNo () from
/usr/lib/libkdeui.so.4
#55 0x080a3f04 in CWriteWindow::beforeKeyChange
(this=0x8236ac8, key=@0x82141b0) at cwritewindow.cpp:165
#56 0x0809bb41 in CWriteWindow::qt_invoke (this=0x8236ac8,
_id=82, _o=0xbfec8248) at cwritewindow.moc.cpp:94
#57 0x0809b2d4 in CPlainWriteWindow::qt_invoke
(this=0x8236ac8, _id=82, _o=0xbfec8248) at
cplainwritewindow.moc.cpp:96
#58 0xb6c187ff in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#59 0xb6c18d2c in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#60 0x080b5561 in CKeyChooser::beforeKeyChange
(this=0x8225200, t0=@0xbfec830c) at ckeychooser.moc.cpp:154
#61 0x080b5cdb in CBibleKeyChooser::setKey (this=0x8225200,
key=0x8462690) at cbiblekeychooser.cpp:123
#62 0x0808db9a in CDisplayWindow::lookup (this=0x8236ac8,
moduleName=@0xbfec840c, keyName=@0xbfec846c) at
cdisplaywindow.cpp:449
#63 0x0808d9cc in CDisplayWindow::lookup (this=0x8236ac8,
keyName=@0xbfec846c) at cdisplaywindow.cpp:485
#64 0x0809f4cc in CBibleReadWindow::syncWindows
(this=0x858fbf0) at cbiblereadwindow.cpp:444
#65 0x080a4ac4 in CBibleReadWindow::qt_invoke
(this=0x858fbf0, _id=101, _o=0xbfec8508) at
cbiblereadwindow.moc.cpp:118
#66 0xb6c187ff in QObject::activate_signal () from
/usr/lib/libqt-mt.so.3
#67 0xb6fa6421 in QSignal::signal () from /usr/lib/libqt-mt.so.3
#68 0xb6c35eec in QSignal::activate () from
/usr/lib/libqt-mt.so.3
#69 0xb6c3d9b0 in QSingleShotTimer::event () from
/usr/lib/libqt-mt.so.3
#70 0xb6baf122 in QApplication::internalNotify () from
/usr/lib/libqt-mt.so.3
#71 0xb6baf314 in QApplication::notify () from
/usr/lib/libqt-mt.so.3
#72 0xb72fafde in KApplication::notify () from
/usr/lib/libkdecore.so.4
#73 0x080aad81 in QApplication::sendEvent
(receiver=0x85eb618, event=0xbfec8878) at qapplication.h:520
#74 0xb6ba0bad in QEventLoop::activateTimers () from
/usr/lib/libqt-mt.so.3
#75 0xb6b54566 in QEventLoop::processEvents () from
/usr/lib/libqt-mt.so.3
#76 0xb6bc7b01 in QEventLoop::enterLoop () from
/usr/lib/libqt-mt.so.3
#77 0xb6bc7a26 in QEventLoop::exec () from
/usr/lib/libqt-mt.so.3
#78 0xb6badc35 in QApplication::exec () from
/usr/lib/libqt-mt.so.3
#79 0x08087843 in main (argc=1, argv=0xbfec8db4) at main.cpp:275
(gdb) 

-Gabriel

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-13 22:56

Message:
Logged In: YES 
user_id=1323055

It's unlikely that you will have write permission to any
files stored in /usr/local/share.  This is why your changes
are not saved -- and BibleTime doesn't warn you that you
don't have write permission.  A similar thing happens if you
try to remove modules from /usr/local/share.  It will fail,
but it won't notify you of the failure.

Two workarounds:
1. (Recommended) UNINSTALL the personal commentary from
/usr/local/share/sword.  Then use the BibleTime bookshelf
manager (Settings | Bookshelf Manager) to reinstall it in
your user directory (i.e. ~/.sword).

2. (Not recommended) Change the permissions of the personal
commentary directory so that you have write access.  E.g.

# chgrp -R mygroup
/usr/local/share/sword/modules/comments/rawfiles/personal
# chmod -R g+w
/usr/local/share/sword/modules/comments/rawfiles/personal

How did this commentary get installed under /usr, anyway? 
YUM?  An RPM?

Peace,
Gabriel



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

Comment By: John A. Sullivan III (jsulliva)
Date: 2006-03-13 17:44

Message:
Logged In: YES 
user_id=489673

Thank you.  I did encounter the error you produce which is
why I always save before navigating away.

I am running Bibletime 1.5.2.  I believe I am using Sword
1.5.8.  The personal commentary appears to be in
/usr/local/share/sword/modules/comments/rawfiles

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

Comment By: Gabriel M. Beddingfield (gabrbedd)
Date: 2006-03-12 17:37

Message:
Logged In: YES 
user_id=1323055

John,

Would you please give the exact version of BibleTime
('bibletime --version'), and if possible the exact version
of Sword (maybe try 'rpm -qa sword').  Also, do you know
where your personal commentary is stored?  (i.e. in ~/.sword
or /usr/share/sword)

Here's what I've been able to reproduce:
CVS HEAD: Editing verse, saving, navigating away, and coming
back works fine.  However, editing then navigating away
brings up a 'save changes?' dialog.  This dialog puts the
application in an endless loop of changing the current verse
displayed.  The dialog remains.  After closing the dialog
and bibletime, and reopening the verse comments are saved
with the wrong verse (saved with the verse that you were
navigating *to*).

1.5.3: Same as CVS HEAD.

However, I can not recreate the issue that you've posted.

Peace,
Gabriel


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

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


More information about the bt-devel mailing list