crosswire / xiphos

Xiphos is a Bible study tool written for Linux, UNIX, and Windows using GTK, offering a rich and featureful environment for reading, study, and research using modules from The SWORD Project and elsewhere.
http://xiphos.org
GNU General Public License v2.0
208 stars 51 forks source link

Some crossrefences or notes lead to error dialog #1105

Open mcepl opened 2 years ago

mcepl commented 2 years ago

When I drive mouse over footnotes in this verse (original OSIS XML):

<verse sID="Mark.8.1" osisID="Mark.8.1"/>Když<note type="crossReference" osisRef="Mark.8.1" osisID="Mark.8.1!o237" n="o237">srv. 6,30—44; //Mt 15,32—39</note> <transChange type="added">tam</transChange>
byl v těch dnech opět veliký zástup a neměli co jíst, zavolal si
učedníky a <w morph="robinson:V-PEI-3S">řekl</w> jim: <verse eID="Mark.8.1"/>

I get this error:

screenshot-2022-01-07_19-01-1641581224

The error message back-translated into English reads: "Module error: unuseable xref encoding. Please, report this with the name and version of module.”

The module is CzeCSP, version 1.4, but I really don’t see anything wrong anywhere. Any ideas, what’s wrong? What’s even more confusing, And Bible doesn’t seem to have any problems with this module (or this verse).

LAfricain commented 2 years ago

Really odd, its working on my computer: csp

I tested also with bibletime, and it's ok.

karlkleinpaste commented 2 years ago

I'm with LAfricain, it displays for me. I have v1.4 of the module.

The complaint comes out of xiphos/src/main/sidebar.cc:main_display_verse_list_in_sidebar:

    /* improper xref encoding, not BCV: gets null list from Sword. */
    if (verse_list == NULL) {
        gui_generic_warning(_("Module error: Unusable xref encoding.\n"
                      "Please report this, with module & verse"));
        return;
    }

It's Xiphos' recognition of a sword-detected error, where in this case "error" means Xiphos got an empty list back from a query to the sword engine. csp-mk 8 1

mcepl commented 2 years ago

What’s even more weird is that actually that note/crossreference gets displayed, just that dialogue box is obnoxious.