gst-launch crash the program

Bug #438255 reported by Ivan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Olifant
Fix Committed
Undecided
Unassigned

Bug Description

The new gstreamer player, using gst-launch, chrashes the program when the unlock button is pressed.

This is the output
ivan@bigwave olifant/ $ python olifant.py
gstreamer init alarm.mp3...

Pressed the togglebutton
Start Starting the monitoring process

Pressed the togglebutton
Stop Stopping the monitoring process
gst-launch-0.10: nessun processo trovato
Terminated
ivan@bigwave olifant/ $

Info:
OS: Archlinux

I think the cause of this bug is the way the sound is stopped and played.
Killing the process and using "commands".

Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :

A fix will be committed now which __may__ fix the problem.

Changed in olifant:
status: New → Fix Committed
Revision history for this message
Ivan (inovembri-deactivatedaccount) wrote :

This fix doesn't work.

The program has the same problem.

ivan@bigwave olifant/ $ python ./olifant.py
gstreamer init alarm.mp3...

Pressed the togglebutton
Start Starting the monitoring process

Pressed the togglebutton
Stop Stopping the monitoring process
gst-launch-0.10: nessun processo trovato
gst-launch-0.10: nessun processo trovato
sh: nessun processo trovato

The previous method (without gst-launch) worked perfectly...

Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :
Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :

A typo was found in the previous commit. It was fixed in this revision: http://bazaar.launchpad.net/~olifanteam/olifant/latest-dev/revision/27

Revision history for this message
Ivan (inovembri-deactivatedaccount) wrote :

This method still doesn't work.

When I press the unlock button (that should stop *immediately* the sound) doesn't work, and the sound continue playing still the end of the music file.

Even if I close the program the sound continue playing.

ivan@bigwave olifant/ $ python olifant.py
gstreamer init alarm.mp3...

Pressed the togglebutton
Start Starting the monitoring process

Pressed the togglebutton
Stop Stopping the monitoring process
gst-launch-0.10: nessun processo trovato

Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :

A new fix has been committed http://bazaar.launchpad.net/~olifanteam/olifant/latest-dev/revision/30 .
This should fix the problem.

Revision history for this message
Ivan (inovembri-deactivatedaccount) wrote :

Now when I press the unlock button the sound stops and restart immediatly.

And if I press the unlock button twice there are two alarm sounds toghether.

PS: Il the latest revisions, in my opinion, you've added too much space between the widgets (mainvbox)
None of the GNOME programs have this spacing.

Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :

Try this fix: http://bazaar.launchpad.net/~olifanteam/olifant/latest-dev/revision/31
It uses an external script instead of running a loop in command.getstatusoutput(), and kills alarmloop instead of sh.

Revision history for this message
Ivan (inovembri-deactivatedaccount) wrote :

Now Olifant doesn't play the alarm file.
There are no sound.

Revision history for this message
Ahmed El-Mahdawy (propeng) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.