[SOLVED] Qt and CLucene
-
Hi,
Did you try to run it with the debugger ? That should give you more information
-
Dear Sir
All information which I obtained with the debugger is displayed in the post ...
Unless you have any idea for obtaining additional information ..?Kind regards
Hatchi -
The only information ? Did you run it with a debug build ?
-
"http://www.jonaspoelmans.com/error/Error.png":http://www.jonaspoelmans.com/error/Error.png
"http://www.jonaspoelmans.com/error/Error2.png":http://www.jonaspoelmans.com/error/Error2.png
This is all information I have ...
Hatchi
-
Can you provide the backtrace ?
-
Just a quick question, since IndexReader::open takes a const char * (and probably the other functions too) why not use something like:
@QByteArray asciiPath = indexDirectory.toAscii(); // also used in toStdString();
const char * path = asciiPath.constData(); << this will ensure that path will point to valid buffer.
@
? -
Dear Sir
I tried your latest suggestion but I still received the same errors. I am pretty sure something is going wrong inside the CLucene library itself, however when I tried to put breakpoints in the CLucene source code which is in the include path of my application, the debugger doesn't go to here. I compiled CLucene from source and linked in debug modus with the debug version of the DLL. Do you have any suggestion for obtaining the call trace inside this DLL?
Kind regards
Hatchi -
You could already try to get a backtrace from the debug console in QtCreator.
I am however surprised that you can't get in the library, are you sure that your program links agains the debug version of CLucene ?
-
Dear Sir
This is the backtrace I got from Qt creator:
0 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ebe7bea
1 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ed03f4b
2 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ecf86c3
3 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5edf4eb1
4 IndexingEngine::startIndexingTXT indexingengine.cpp 207 0xb6a2e4
5 TextBrowser::indexDocuments textbrowser.cpp 248 0xb62b67
6 TextBrowser::qt_static_metacall moc_textbrowser.cpp 140 0xb90424
7 QObject::destroyed Qt5Cored 0x5df9b210
8 QObject::destroyed Qt5Cored 0x5df9ac41
9 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ebd862b
10 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ebd7d07
11 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ebcf411
12 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ee35a18
13 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ed37dc2
14 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ed38e82
15 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ee34ab0
16 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ec39db5
17 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ed38ca1
18 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ee35a7b
19 QAbstractScrollArea::setHorizontalScrollBarPolicy Qt5Widgetsd 0x5ebf233e
... <More>I could get info from the library in the stack trace but as soon as execution reaches the point where it always crashes, this is the only information ...
Would it be useful if I would send you the dll and some accompanying code to try and test it yourself?
Hatchi
-
One other thing you might want to try first is to build the clucene code along your application (you can have a look at fulltextsearch.pri to see what files to build.
-
Thank you for this suggestion. This solved the problem. I see that Qt uses an older version of CLucene while I was using the newest unstable version.
Thanks!
-
You're welcome !
Don't forget to update the thread title to solved so other forum users will know that a solution have been found :)