PDA

View Full Version : Qt-5.3.1/Qt-5.2.1 application is crashing on desktop



sanjeet
8th September 2014, 06:26
Hi Everybody,

We are trying to build Qt-5.3.1 on desktop from Qt source(qt-everywhere-opensource-src-5.3.1.tar.gz).
Our system/PC is of 64bit architecture and OS is Ubuntu-12.04

We are able to build/configured Qt successfully without any error.

But when we are trying to run the application, system is going on "power-save mode" and application
is crashing without any error/warning.

When we are trying to run simple console-based application its running fine. So only GUI based application
is not running.

But with same configuration/building on another system/PC which is having same configuration its running fine.

Why its not working on some of the system and its working on few system, only difference is RAM size, we have
observed that, the PC having 4GB RAM where it is working but where RAM is 2GB its not working.

So, We have tried with lower version of Qt-5.2.1 from source, but we are getting same problem. but with error that is
following"
"QXcbConnection: XCB error: 3 (BadWindow), sequence: 667, resource id: 0, major code: 15 (QueryTree), minor code: 0"

What could be the problem, why its running on some of the system and not running on most of the system.
Is It RAM size problem or what...??

I don't think so its RAM problem, please clarify if anyone aware it.

We build Qt with following configure option:
./configure -qt-xcb

Any suggestions is valuable.

Thanks in advance,
Sanjeet

wysota
8th September 2014, 06:51
There is no way to determine anything without any concrete information available. Do examples that come with Qt cause the same effect as well or does it only apply to your one particular application?

sanjeet
9th September 2014, 05:33
Hi Wyosta,

We have tried in both cases either "examples that come with Qt" or "any gui application created by us", it is same effect.
System is going on power-save mode, even some time we have to manually restart the system.

wysota
9th September 2014, 06:52
It is an issue with your system configuration rather than something related to RAM. Does the same happen if you use pre-built Qt package instead of compiling your own?

sanjeet
9th September 2014, 07:45
Hi wyosta

yeah, same problem happening with pre-built Qt package also,
we have tried with {qt-opensource-linux-x64-5.3.1.run), its installing properly, but
we are not able to run application.

I got doubt may be some display related issue on system, because only
gui-based application is not running.

So, we have tried to build Qt-4.7.4 from source on same system, we build successfully.
And with Qt-4.7.4 gui and console based both application is running fine.

Why only we are getting problem with Qt-5, that is not able to understand.

sanjeet
9th September 2014, 11:18
Hi,

I sorted out the issue.
Issue was with display setting.

Earlier resolution was 1600x900, where it was not working.
we changed it to 1440x900, now its working fine.

Thanks wyosta,
N thanks to everybody.


Sanjeet