[Bug 225588] Re: qcomicbook hangs when opening zip archives

JRavasi jravasi at gmail.com
Sat Jul 18 20:08:37 UTC 2009


I can reproduce it here. It seems at least two bugs, one in Qt4 and
another in qcomicbook.

The main GUI thread hangs in src/imgarchivesink.cpp,
QComicBook::ImgArchiveSink::extract(const QString &, const QString &,
ArchiveType), around line 221:

	extcnt = 0;
	pext->start(extprg, extargs);
	if (!pext->waitForFinished(5000))
		return SINKERR_ARCHEXIT;

pext is a QProcess*. The unzip command is executed, but the call to
waitForFinished() never returns. Instead, it hangs in an infinite
select(), that is, no file descriptors to monitor and infinite timeout.
This happens *after* the command is executed and the zip is decompressed
in /tmp. Whatever happens, Qt should not run a select() without any file
descriptors to monitor.

The qcomicbook bug is that, according to Qt4 documentation, QProcess
should not be used from the GUI thread.

-- 
qcomicbook hangs when opening zip archives
https://bugs.launchpad.net/bugs/225588
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list