sap

floatingpoint exception when playing ogg over HTTP

Bug #377358 reported by jezra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sap
In Progress
Medium
jezra

Bug Description

When trying to play an ogg file over HTTP, sap prints "floating point exception" and quits.

jezra (jezra)
Changed in sap+:
assignee: nobody → jezra (jezra)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Hamza Bhatti (hamza.bhatti) wrote :

a backtrace would be helpful

Revision history for this message
jezra (jezra) wrote :

As of Vala 7.2 or 7.3, this bug is no longer reproducible. This leads me to believe that the bug was in the Vala Gstreamer binding.

Changed in sap+:
status: Confirmed → Invalid
Revision history for this message
Hamza Bhatti (hamza.bhatti) wrote :

Ubuntu 9.04 (32-bit)
Same bug is reproducible with valac 0.7.4

jezra, can you check what version of gstreamer you have? I think this is a problem with the older gstreamer plugin, not the vala bindings.

Changed in sap+:
status: Invalid → Confirmed
Revision history for this message
jezra (jezra) wrote :

My appologies for marking invalid.
Currently I have GStreamer 0.10.23

The reason I thought it was an issue with the binding is because running the command:
>gst-launch-0.10 playbin uri=http://www.example.com/some_file.ogg
Would not give the floating point exception error.

Revision history for this message
Hamza Bhatti (hamza.bhatti) wrote :

Yes, that's because the duration query returns a null value for the ogg format using the http protocol, and so the process_position_duration function in main_controller.vala throws a floating point exception when it tries to calculate the percent.

Do you want me to submit a temporary patch for this?

After checking the gstreamer reference docs, I've found some ways to get the duration, bu it'll take some time for me to implement the functionality.

Please advise.

Revision history for this message
jezra (jezra) wrote :

if you have a temporary patch for the specific ogg issue, then by all means, please do submit it. Even if it is not a complete fix for the issue, it is better to have an app that plays audio as opposed to an app that crashes.

Revision history for this message
Hamza Bhatti (hamza.bhatti) wrote :

Thanks! I notice you've implemented a temporary fix in revno 28
Changing to In Progress

Revision history for this message
Hamza Bhatti (hamza.bhatti) wrote :

working on a more permanent fix

Changed in sap+:
status: Confirmed → In Progress
Revision history for this message
jezra (jezra) wrote :

Although I can no longer replicate the bug when using Gstreamer 0.10.23, there is a "new" issue of receiving a negative value for duration when playing an ogg over http.

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.