BibleCS
  1. BibleCS
  2. BCS-101

create verselist from result, copy clipboard:only percentage in clipboard

    Details

    • Type: Bug Bug
    • Status: Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:

      i7-3970x 3.5GHz 64GiB RAM, windows 7 ultimate 64-bit SP1, 2x4TB hard disks, sword project installed on Samsung 840 pro 256GB SSD (did not speed things up much though). same on pentium 4 HT 2.8GHz 3GiB RAM, 2x2TB hard disks.

      Description

      in The Sword Project 1.5.11 on windows 7 64-bit,
      1. bring up sword project
      2. click search and select KJV w strongs.
      3. bring up microsoft Word 2010 or Wordpad
      4. strong's off, case insensitive regex search for \bword
      comes up with 1179 matches, clear to Revelations.
      5. click "create verselist from result" button
      6. click the copy to clipbboard button on the right
      7. paste into microsoft Word or Wordpad (or notepad++ and count lines)
      8. check that last verse is from Revelations.

      actual: last verse is from judges 16:16 and not from Revelations, so not the entire clipboard data was put into the clipboard
      but only percentage of verses get copied to clipboard.
      is this some sort of 32-bit limitation, or is it something else like the program running into a piece of data it can't handle?
      I calculate that 1179 characters * 339 characters per line comes out to 397K,
      a paltry amount even for 32-bit. this should have worked.
      there may be some sort of "I don't know what to do with this unusual data" syndrome in the program at 1 Samuel 1:23 or Judges 16:16. or (443+1)/3=148 verses.
      there seems to be nothing special about 1 samuel 1:23 except that it is the first chapter that has a space in the book name, and I don't think that's it.
      the bible is 5MB of raw text. limitations on 32-bit programs are typically 800GB, maximum 1.6GB of memory due to video card use of memory, OS overhead, and the 4TiB limitation of 32 bits,
      from my experience. web browsers, email, and microsoft office are 32-bit applications. if I turn on strong's numbers, I get (248+1)/3=83 verses.

      expected:should get the full data into the clipboard and be able to paste all of it.
      800GB to 1.6GB of memory should be plenty.
      sword.exe*32 shows 27MiB of memory use. so it sounds to me there is a bug of some sort and it's not memory-related.

      1. try same search except with the sword project except with multiword case insensitive, wisdom

      actual: 222 matches. paste stops short consistently between runs at 525/3=175 verses.
      expected: should get full data into and from clipboard.

      2. try same search except with the sword project except with multiword case insensitive, pray

      actual: 510 matches. paste stops short consistently between runs at 423/3=141 verses.
      expected: should get full data into and from clipboard.

      • might have something to do with how much content there is?
      • maybe someone allocated a static array to hold the verses?
        we have vectors now that take care of this problem.
        if you need initialization of vectors, there is initializer_list which requires c++11.

      if this is due to being worried about platform memory, on older systems, maybe that should be dynamically allocated with new and if it fails, balk. there are 2 ways to do it. if asking for a vector fails, it fails. I don't know if this creates an exception or not, maybe some sort of test can see if it does, or checking up on the docs for vector.

        Activity

        Hide
        Jim Michaels added a comment -

        I am getting an empty clipboard when "copy all entries to clipboard" in verse list dialog when I have searched regex case insensitive for \bstrength
        1. select KJV with strong's
        2. search regex case insensitive for \bstrength
        3. click create verselist from result
        4. click "copy all entries to clipboard"

        actual: 307 matches from search. none of them make it to the clipboard.
        expected: all verses should be copied.

        Show
        Jim Michaels added a comment - I am getting an empty clipboard when "copy all entries to clipboard" in verse list dialog when I have searched regex case insensitive for \bstrength 1. select KJV with strong's 2. search regex case insensitive for \bstrength 3. click create verselist from result 4. click "copy all entries to clipboard" actual: 307 matches from search. none of them make it to the clipboard. expected: all verses should be copied.
        Hide
        Jim Michaels added a comment -

        I was told this is "The Sword Project". why it is called BibleCS I don't know. if I have posted this bug to the wrong place, please tell me where to post it, the project names throw me off.

        Show
        Jim Michaels added a comment - I was told this is "The Sword Project". why it is called BibleCS I don't know. if I have posted this bug to the wrong place, please tell me where to post it, the project names throw me off.
        Hide
        Jim Michaels added a comment -

        oops. not 800GB, 800MB.

        Show
        Jim Michaels added a comment - oops. not 800GB, 800MB.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jim Michaels
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: