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] Strange error while opening file?

[Solved] Strange error while opening file?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 15.0k Views
  • 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.
  • CAD_codingC Offline
    CAD_codingC Offline
    CAD_coding
    wrote on last edited by
    #1

    Hi,
    I am getting a strange error in Qt Creator's "Application Output" region while running/degubbing my application from Qt Creator:

    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.

    It wasnt coming earlier but now suddenly it has started coming, I dont know why.
    It happens when the following line is executed:

    @QString fileName = QFileDialog::getOpenFileName(this, "Open a File", cwd, ("MyApp (.abc)"), &ext, 0);@

    cwd is a QString & class variable of my Main Window class. It stores the path of Current Working Directory.
    ext is a QString variable storing the extension of my file, in this case it is "abc".

    I have setup a log file to which the output from qDebug() is printed. It is made thread safe by using QMutex. Please note that the above mentioned error is not appearing in the file but in "Application output" of Qt Creator.

    I am using Qt Creator 2.4.1 with Qt 4.7.4 32 bit on Windows 7 64 bit.

    What could be the cause of this error?
    Any help please?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      seems ad error related to log4cplus.
      Could you post your code?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • CAD_codingC Offline
        CAD_codingC Offline
        CAD_coding
        wrote on last edited by
        #3

        @mcosta I have a SLOT which is called when the open button is clicked.
        In this SLOT I have initialised some variables & then the line of code mentioned in question is called. When the line is executed the error's are throwed.
        Can you please try to reproduce the issue by adding the same line in your Qt & see if you get these errors?

        Can anybody please help sort this issue?
        I dont have debuggable Qt otherwise I would have debugged the cause.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          osu45f
          wrote on last edited by
          #4

          I can confirm that I also get this in a console output window using VS2010 / Qt 5.1 / Windows 7 64bit. The errors appear when calling any of the QFileDialog static functions to open file dialogs.

          I've tested and get the same with the 'Standard Dialog' example

          Looks like a bug to me.

          1 Reply Last reply
          0
          • O Offline
            O Offline
            osu45f
            wrote on last edited by
            #5

            Actually in my case, the issue resolved itself fter uninstalling 'AutoDesk 360' for some reason.

            1 Reply Last reply
            0
            • CAD_codingC Offline
              CAD_codingC Offline
              CAD_coding
              wrote on last edited by
              #6

              Hi Jamie,
              Thanks for confirming my doubt.
              I started observing this error after installing Autodesk 360.
              But I thought it was just a co-incidence.
              Now confirmed that Autodesk is that culprit.
              But still it feels strange how another software can throw Qt internal errors?

              1 Reply Last reply
              0
              • E Offline
                E Offline
                echostorm
                wrote on last edited by
                #7

                Yup facing same error I didn't uninstall the Autodesk 360 program though its enough to disable it if you want updates and your autodesk based applications to work proper you might want to go with my approach instead of uninstalling...

                Also wondering what does it have to do with QT???

                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