Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Qt and CLucene
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt and CLucene

Scheduled Pinned Locked Moved General and Desktop
13 Posts 2 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Did you try to run it with the debugger ? That should give you more information

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hatchi
      wrote on last edited by
      #3

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        The only information ? Did you run it with a debug build ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hatchi
          wrote on last edited by
          #5

          "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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Can you provide the backtrace ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              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.
              @
              ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Hatchi
                wrote on last edited by
                #8

                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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  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 ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    Hatchi
                    wrote on last edited by
                    #10

                    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

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      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.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        Hatchi
                        wrote on last edited by
                        #12

                        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!

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          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 :)

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved