My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 8: Close Icon Doesn't Stop Process
1 person starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  ----


 
Reported by bitterc...@gmail.com, Jan 29, 2010
What steps will reproduce the problem?
1. Run Marave
2. Click on bottom power icon
3. Go back to terminal and see QT message - check ps and process is still
running.

What is the expected output? What do you see instead?
Program should exit cleanly instead the process continues.

What version of the product are you using? On what operating system?
Latest version from svn, Fedora 12, python 2.6.2, pyqt 4.6.2

Please provide any additional information below.

[jr.peck@jr marave-read-only]$ python main.py
Spellchecking enabled
>> switching bg to: Winter Landscape Classic.jpg
>> switching click to: thozi_daClick.wav
WARNING: Phonon needs QCoreApplication::applicationName to be set to export
audio output names through the DBUS interface
QEventLoop: Cannot be used without QApplication

from another console:
[jr.peck@jr marave-read-only]$ ps -ef | grep python
jr.peck   1336 16598 91 10:06 pts/1    00:03:29 python main.py



Jan 29, 2010
Project Member #1 roberto.alsina
I can't reproduce it, but could you try r26 and see if it helps?
Jan 29, 2010
#2 bitterc...@gmail.com
Just updated to revision 28.  Still get the same behavior.  Don't know enough to
investigate if the issue is something with my setup.  Sorry.
Jan 29, 2010
Project Member #3 roberto.alsina
I'll see if I can do something more. What is your operating system, Qt and PyQt 
version?
Jan 29, 2010
#4 bitterc...@gmail.com
Fedora 12, python 2.6.2, pyqt 4.6.2, qt 4.5.3
  
Jan 29, 2010
#5 bitterc...@gmail.com
I don't know if this will help - but if I mute the clicking before I close I don't
have this issue.  If the click sound is on, I get what I described above.

Here is what it looked like when I closed it with the click sound turned off:

[jr.peck@jr marave-read-only]$ python main.py
Spellchecking enabled
>> switching bg to: Winter Landscape Classic.jpg
>> switching click to: thozi_daClick.wav
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio
output names through the DBUS interface
[jr.peck@jr marave-read-only]$

Here is what it looks like when I close the application with the clicking left on:

[jr.peck@jr marave-read-only]$ python main.py
Spellchecking enabled
>> switching bg to: Winter Landscape Classic.jpg
>> switching click to: thozi_daClick.wav
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio
output names through the DBUS interface
QEventLoop: Cannot be used without QApplication
Terminated
[jr.peck@jr marave-read-only]$
Jan 29, 2010
Project Member #6 roberto.alsina
Interesting.

Could you try r36? I changed it so beeps and music are stopped before quitting.
Status: Started
Jan 29, 2010
#7 bitterc...@gmail.com
I updated to r36.  If I leave the click on and close - I still get

QEventLoop: Cannot be used without QApplication
Terminated

at the end and it doesn't stop.  I have to kill it.
Jan 29, 2010
Project Member #8 roberto.alsina
Reverting r36 then. I am at a loss here :-(
Feb 2, 2010
Project Member #9 christos...@gmail.com
I've got the same issue.
Marave r60; Fedora 12; KDE 4.3.5; PyQt 4.6.2; Python 2.6.2.

I only get the "QEventLoop: Cannot be used without QApplication" message and it 
hangs there.
May 8, 2010
#10 mzibri...@gmail.com
I confirm this behavior in my own app when using Phonon for video playback.
When quiting during video playback I get the following message and 100 % cpu load:

QEventLoop: Cannot be used without QApplication

My system: Gentoo Linux, PyQt 4.7, Qt 4.6.2, Python 2.6.4, Phonon 4.3.80,

Solution to this problem in my app was disconnect Phonon from its audio output.

Since in your main.py 'beep' represents VideoPlayer object, you should use the code 
similar to:

beep.stop()
for path in beep.mediaObject().outputPaths():
    path.disconnect()
May 8, 2010
Project Member #11 roberto.alsina
I'll make that change. I have never been able to reproduce this, so I can't verify if 
it makes a difference, though.

Committed in r450

Powered by Google Project Hosting