<div dir="ltr">Also, I just committed a fix that permits Xiphos to display text. The issue was, after attempting to fetch material from 0:0 and n:0 the restoration was being done through a call to<div><br></div><div style>
setBook</div><div style>setChapter</div><div style>setVerse</div><div style>setTestament</div><div style><br></div><div style>I moved the setTestament to be the first call and text display works swimmingly. Except I still see the segfault I mentioned in trying to navigate to Genesis 1:1 in both our KJV and ASVD. Xiphos head SVN should work for other references now, though.</div>
<div style><br></div><div style>--Greg</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 9:41 AM, Greg Hellings <span dir="ltr"><<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Troy, Karl,<div><br></div><div>It should also be noted that this update to SWORD causes a segfault in the following code in Xiphos <a href="https://gist.github.com/anonymous/5187582" target="_blank">https://gist.github.com/anonymous/5187582</a></div>
<div><br></div><div>Specifically the line <span style="line-height:16px;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace">key</span><span style="line-height:16px;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;font-weight:bold">-></span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace">setAutoNormalize</span><span style="line-height:16px;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace">(</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre-wrap">oldAutoNorm</span><span style="line-height:16px;font-size:12px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace">); </span><span style="line-height:16px;font-size:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">on line 38 of that Gist generates a SegFault with the following backtrace.</font></span></div>
<div><span style="line-height:16px;font-size:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="font-size:12px;line-height:16px;white-space:pre-wrap">#0 0x00007ffff5278ef0 in std::vector<int, std::allocator<int> >::size (this=0x676e6175685a20)
at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_vector.h:626
#1 0x00007ffff527724c in sword::VersificationMgr::Book::getVerseMax (this=0xa60028, chapter=17424)
at /home/ghellings/Projects-old/sword/src/mgr/versificationmgr.cpp:241
#2 0x00007ffff525aebb in sword::VerseKey::getVerseMax (this=0x1249a60)
at /home/ghellings/Projects-old/sword/src/keys/versekey.cpp:1243
#3 0x00007ffff525b65b in sword::VerseKey::normalize (this=0x1249a60, autocheck=true)
at /home/ghellings/Projects-old/sword/src/keys/versekey.cpp:1353
#4 0x00007ffff525bc85 in sword::VerseKey::setAutoNormalize (this=0x1249a60, iautonorm=true)
at /home/ghellings/Projects-old/sword/src/keys/versekey.cpp:1548
#5 0x000000000049e118 in GTKChapDisp::getVerseBefore (this=0xefc930, imodule=...) at ../src/main/display.cc:1138</span></font><br></font></span></div><div><span><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="font-size:12px;line-height:16px;white-space:pre-wrap"><br>
</span></font></font></span></div><div><span><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="font-size:12px;line-height:16px;white-space:pre-wrap">This segfault only seems to happen when I enter Genesis 1 in the navigation panel and not at any other time. Those with more gdb savvy than I can maybe figure out more of what is going on.</span></font></font></span></div>
<span class="HOEnZb"><font color="#888888">
<div><span><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="font-size:12px;line-height:16px;white-space:pre-wrap"><br></span></font></font></span></div><div><span><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="font-size:12px;line-height:16px;white-space:pre-wrap">--Greg</span></font></font></span></div>
</font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 8:57 PM, Karl Kleinpaste <span dir="ltr"><<a href="mailto:karl@kleinpaste.org" target="_blank">karl@kleinpaste.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see that your new showchapter.cpp works. The only difference in how<br>
that works versus Xiphos code is you changed the VerseKey init slightly,<br>
so I made that change:<br>
<br>
VerseKey *key = (VerseKey *)imodule.getKey();<br>
<br>
And yet Xiphos still fails to construct the chapter. The loop never<br>
executes once. I don't know what to make of it. I will have to look at<br>
it some more.<br>
<div><div><br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>