View Single Post
Posts: 111 | Thanked: 31 times | Joined on May 2007
#287
The segfault i experienced only occur when using /home/user/sword as SWORD_PATH , i have no clue why, but things worked better if i use another directory to store my modules.

I have several question about katana:

1) How on earth do you use gdb on this thing ?

I compiled it with -g (after adding it in the Makefile manually), but i always end up with gdb segfaulting when it is supposed to stop at a break point.

[sbox-FREMANTLE_X86: ~/dev/katana/trunk] > SWORD_PATH=/home/user/sword2/ run-standalone.sh gdb ./katana
GNU gdb (GDB) 6.8.50.20090417
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) b BibleInfo::getVerseText
Breakpoint 1 at 0x8055a8f: file bible_text_source.cpp, line 104.
(gdb) run
Starting program: /home/user/dev/katana/trunk/katana
free(): invalid pointer 0x9bf0033!
free(): invalid pointer 0x9bb0033!
Xlib: extension "Generic Event Extension" missing on display ":2.0".
Xlib: extension "Generic Event Extension" missing on display ":2.0".
Xlib: extension "Generic Event Extension" missing on display ":2.0".
Xlib: extension "Generic Event Extension" missing on display ":2.0".
/usr/bin/run-standalone.sh: line 11: 7138 Segmentation fault (core dumped) "$@"

2) There is a problem when using french module encoded in utf-8 such as FreSegond

The following patch makes the display works correctly using QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8")) ; in InfiniteScrollViewer::insertParagraph

http://81.56.33.6/melmoth/katana-utf8.diff

However, i guess a cleaner way would be to first check the module is actually encoded in utf8 before doing so.

3) would it be possible to use some tool such as designer to generate the layout with a nice gui thingy ? :-)

4) what about a mailing list hosted on garage ?