June 23, 2013

CAD_coding CAD_coding
Ant Farmer
129 posts

[Solved] Strange error while opening file?

 

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:

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

6 replies

June 23, 2013

mcosta mcosta
Ant Farmer
393 posts

Hi,

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

 Signature 

Qt Certified

June 25, 2013

CAD_coding CAD_coding
Ant Farmer
129 posts

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

July 22, 2013

Jamie Robertson Jamie Robertson
Lab Rat
2 posts

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.

September 5, 2013

Jamie Robertson Jamie Robertson
Lab Rat
2 posts

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

September 8, 2013

CAD_coding CAD_coding
Ant Farmer
129 posts

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?

October 10, 2014

echostorm echostorm
Ant Farmer
29 posts

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

 
  ‹‹ Get free disk space      Strange error while debugging my application? ››

You must log in to post a reply. Not a member yet? Register here!