On 2010-06-18 13:56-0400 Hazen Babcock wrote:
> Hazen Babcock wrote:
>> Alan W. Irwin wrote:
>>> On 2010-05-27 22:58+0100 Andrew Ross wrote:
>>>> Well clearly the output files should be properly closed. I've now fixed
>>>> that. You could try again, although I don't think that is the problem.
>>>> You could try again to check. Potentially more interesting are the open
>> Yeah, unfortunately this appears to not be the issue as it still locks
>> up for me. I tried throwing in a call to the exit() method by the
>> QApplication instance prior to deletion, but this also did not help.
> I don't think this "our" problem, but I have no idea who to complain to
> :). This really simple program will also lock up my computer in a
> suspiciously similar fashion if I run it enough times.
> #include <QApplication>
> int main(int argc, char *argv)
> QApplication app(argc, argv);
My guess is that each time you run that simple application you use up some
system resource, and after enough runs of the application you run out of the
resource and your computer freezes. However, I don't have a clue what that
resource might be since you haven't noticed anything strange going on with
the most obvious system resources (memory and disk space).
My further guess (since you get the same issue regardless of QT4 version and
nobody else with Linux distros here can replicate it) is this issue is due
to some bug in the old Ubuntu distro libraries (e.g., the X stack) that Qt4
depends upon or else some incompatibility between Qt4 and the old Ubuntu
distro libraries it depends upon.
To test this hypothesis without actually updating your old Ubuntu distro
version, it might be possible for you to run a live CD version of the latest
Ubuntu distro and build and run the above test code to see whether the issue
is solved for the latest Ubuntu without actually updating your hard drive to
that latest Ubuntu version.
If there is some barrier to running that experiment or it is more trouble
than it is worth, then the last resort is to update your hard drive to the
latest Ubuntu version to see whether that solves the issue. Of course, that
is an irrevocable change (unless you are willing to reinstall your old
Ubuntu distro to the hard drive), but I think you are probably at the "last
resort" stage in any case for solving this issue, Furthermore, you should
update your Ubuntu distro to the latest version every year or so. Thus, this
might be a good time to do that in any case.
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project