[sword-devel] Re: Problems running BibleTime 0.3

Joachim Ansorg sword-devel@crosswire.org
Wed, 26 Jul 2000 16:29:34 +0000


--------------Boundary-00=_AHCBD596YL10VS2FEVTM
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Hi again!

My second mail ;-)

I deleted my config files and noticed that the bug does occur then. Looks 
like a critical bug which does only appear if you start BibleTime 0.3 for the 
first time (I havn't tested this before releasing 0.3).

I hope I found the bug. I attached the patch, apply it with

cd <topdir bibletime sources>  # e.g. cd /usr/src/bibletime-0.3/
patch -p0 -i cgroupmanager.cpp.patch

Now type make && make install and run BibleTime again!

BTW, the CToolClass function does return something, but it's in two "if" 
-clauses, that's why the compiler thinks nothing is returned. But maybe 
nothing is returned.

Darwin, you experienced the same as Paul, didn't you? Aplly the patch, it 
should work.

I hope this helps,
--Joachim

Am Mit, 26 Jul 2000 schrieben Sie:
> Hi All,
>
> I get the following errors when trying to start BibleTime:
> > gear03:[/share/src/bibletime]/opt/bibletime/bin/bibletime
> > Starting BibleTime ....
> > main: Added authors ...
> > main: Processed command line arguments
> > main: create new KApplication
> > main: Register ressource types and directories
> > main: Do no restore
> > main: Create startuplogo
> > Can't load startuplogo!
> > main: Create new BibleTime main window
> > CBibleTimeView::initBackend()
> > Create CBackend
> > Language set for SWORD is C using KDE's settings
> > language initialisation finished
> > created listCModuleInfo
> > CSWORDBackEndManager: load modules!
> > created backendmanager
> > constructor of BibleTime baclend finished
> > Symbol
> > Symbol
> > Symbol
> > Symbol
> > Symbol
> > Symbol
> > Symbol
> > BibleTime::initView
> > ## create splitter ##
> > ## created splitter ##
> > CGroupManager::constructor
> > CGroupManager::readSettings()
> > setup now standard tree
> > CGroupManager::setupStandardTree()
> > bibletime: KCrash: crashing.... crashRecursionCounter = 2
> > bibletime: KCrash: Appname = 0x81332e8 apppath = (nil)
> > bibletime: Unable to start dr. konqi
>
> This is the first time i've tried to get 0.3 going, so let me know if
> i've done something wrong.  Environment:
> - Red Hat Linux 6.1 w/- various updates
> - KDE 1.91 & Qt 2.1.1
> - Sword 1.5.1pre from CVS
> - Configure options: --with-sword-dir=/opt/sword --prefix=/opt/bibletime
>
> What's causing this?  I can't figure out from that output where the
> problem is in CGroupManager::setupStandardTree().
>
> BTW, There were a lot of errors like this during the compile:
>
> ctoolclass.cpp:98: warning: control reaches end of non-void function
> `CToolClass::savePlainFile(const QString &, const QString &)'
>
> This could easily be the cause of numerous crashes.  In that particular
> case, it appears that the return value of savePlainFile() is not used
> anywhere (it is used only in CHTMLWidget::saveAs() in
> bibletime/chtmlwidget.cpp), but it is a bad idea to ignore warnings like
> this nonetheless.  If no return value is needed, why not change the
> function to 'void'?  It can always be changed back later if you find the
> need for it.
>
> Paul
> ---------
> "He must become greater; i must become less." - John 3:30
> http://www.bigfoot.com/~paulgear

--------------Boundary-00=_AHCBD596YL10VS2FEVTM
Content-Type: text/english;
  name="cgroupmanager.cpp.patch"
Content-Transfer-Encoding: base64
Content-Description: Patch for cgroupmanager.cpp
Content-Disposition: attachment; filename="cgroupmanager.cpp.patch"

LS0tIGJpYmxldGltZS9mcm9udGVuZC9ncm91cG1hbmFnZXIvY2dyb3VwbWFuYWdlci5jcHAJU3Vu
IEp1bCAyMyAwMTowMTozNCAyMDAwCisrKyAvaG9tZS9qb2FjaGltL0JpYmxlVGltZS9iaWJsZXRp
bWUtMi9iaWJsZXRpbWUvZnJvbnRlbmQvZ3JvdXBtYW5hZ2VyL2Nncm91cG1hbmFnZXIuY3BwCVdl
ZCBKdWwgMjYgMTY6MTQ6MDYgMjAwMApAQCAtMTAzLDE3ICsxMDMsMjEgQEAKIAlBU1NFUlQobW9k
dWxlSW5mb19saXN0KTsJCiAKIAkvL3JlYWQgdGhlIG1vZHVsZSBsaXN0IGZyb20gY29uZmlnIGZp
bGUKKwlkZWJ1ZygicmVhZCB0aGUgbW9kdWxlIGxpc3QiKTsKIAlRU3RyaW5nTGlzdAltb2R1bGVM
aXN0OwogCW1vZHVsZUxpc3QuY2xlYXIoKTsKKwkKIAl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