Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, April 2007
QProcess crash


Message 1 in thread

Hi,

I've been trying to start a second process from the GUI thread of a
multi-threaded Qt 4.2 Linux application, but the newly created process 
always
crashes (returns QProcess::Crashed). If I comment out the code that
creates new threads in my app, the new process will start just fine. Why
do you suppose this happens, and what might fix it?

I also noticed that when I am able to start the process, it freezes my
GUI, why does this happen?

I used the same code in a single threaded application and it works fine, 
doesn't freeze the GUI either.

Thanks,

John Voltz

--
 [ signature omitted ] 

Message 2 in thread

On 09.04.07 15:12:59, John Voltz wrote:
> Hi,
> 
> I've been trying to start a second process from the GUI thread of a
> multi-threaded Qt 4.2 Linux application, but the newly created process always
> crashes (returns QProcess::Crashed). If I comment out the code that
> creates new threads in my app, the new process will start just fine. Why
> do you suppose this happens, and what might fix it?
> 
> I also noticed that when I am able to start the process, it freezes my
> GUI, why does this happen?
> 
> I used the same code in a single threaded application and it works fine, 
> doesn't freeze the GUI either.

Without sample code its really hard to give any suggestions. Please
provide a minimal compilable example that reproduces the problem. Or at
least show some snippets that demonstrate how you use QThread and how
you start QProcess (and where).

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

John Voltz wrote:
> Hi,
> 
> I've been trying to start a second process from the GUI thread of a
> multi-threaded Qt 4.2 Linux application, but the newly created process 
> always
> crashes (returns QProcess::Crashed). If I comment out the code that
> creates new threads in my app, the new process will start just fine. Why
> do you suppose this happens, and what might fix it?
> 
> I also noticed that when I am able to start the process, it freezes my
> GUI, why does this happen?
> 
> I used the same code in a single threaded application and it works fine, 
> doesn't freeze the GUI either.
> 
> Thanks,
> 
> John Voltz
> 
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

Did you create a wait state in the thread after calling qprocess?

--
 [ signature omitted ]