Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-73

Scoped Devotional Search Infinite Loop

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      In Python do the following: (presumably works with equivalent C++ code)
      from Sword import *
      vk=VerseKey("")
      list=vk.ParseVerseList("gen-mal", "", True)
      mgr=SWMgr()
      mod=mgr.getModule("SME") # C. H. Spurgeon's Morning and Evening

      1. SWIG uses doSearch instead of Search because of funcptr
        mod.doSearch("God", -2, 0, list) # This freezes it

      Note: This bug can easily be reproduced under BibleCS
      Steps:
      1: Open Search, Set module to SME (Spurgeon's Morning and Evening)
      2: Set Custom Range to Old Testament
      3: Click Search

      If you click halt, then you find hundreds of results, the first of which is Genesis 1:1, and the rest are Genesis 41:35

      This does not occur if you build an index and select Optimized Search
      This appears to happen if you search using a bible range in a daily devotional.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benpmorgan Ben Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: