Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 592 - Win/Linux: Corrupt OGG starts to import then quits instead of reporting sequence number gap
Win/Linux: Corrupt OGG starts to import then quits instead of reporting seque...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.0.3
PC Windows and Linux
: P5 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-09 14:57 UTC by Benjamin Drung
Modified: 2019-05-29 09:22 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
Open corrupt Ogg file.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2019-05-29 00:00:00
petersampsonaudacity: Test‑OK‑Win+
stevethefiddle: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Drung 2012-10-09 14:57:01 UTC
The bug was initial reported in Launchpad [1] and confirmed by me. Here's the description from the reporter:

I can not open a certain ogg file with audacity. When I try to open the file it displays the import dialog but closes it after some progress. Same happens if I try to import it. It does not show me any error message. The file plays fine with any audio player i tried so far. I can also open different ogg files with audacity.

The file was recorded with gnome-sound-recorder (ubuntu default) in the ogg-format.

I tried with audacity 2.0 and Audacity 2.0.3-alpha-Oct 7 2012. Same result.

The file is 72 MB at about 80 min.
Information about the file
Vorbis Audio
Stereo, 44100Hz, 160kb/s

The file is attached to the second comment in the Launchpad bug [1]. 

[1] https://launchpad.net/bugs/1063298
Comment 1 Gale Andrews 2013-01-14 14:48:19 UTC
IMPORTANCE changed to P5, Repeatable. 

Confirmed on Windows 7 but the file is corrupt. 

oggdec.exe crashes trying to play it, hence probably why the import aborts.

oggenc.exe reports:
New logical stream (#1, serial: 3d051edb): type vorbis
S

Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20101101 (Schaufenugget)
Channels: 2
Rate: 44100

Nominal bitrate: 160.000000 kb/s
Upper bitrate not set
Lower bitrate not set
Warning: sequence number gap in stream 1. Got page 1247 when expecting page 1246
. Indicates missing data.
Warning: discontinuity in stream (1)
[repeats until...]
Warning: discontinuity in stream (1)
Warning: EOS not set on stream 1
Vorbis stream 1:
        Total data length: 72668428 bytes
        Playback length: 79m:50.160s
        Average bitrate: 121.362821 kb/s

I suggest user installs FFmpeg, then in Audacity does File > Open or File > Import, and selects the "FFmpeg-compatible files" filter. The file will then import using FFmpeg providing user has not unchecked "Attempt to use filter in OpenFile dialog first" in Extended Import Preferences.
Comment 2 Peter Sampson 2019-05-26 09:32:03 UTC
I downloaded the ogg test file from the link provided in Benjamin's comment #0

Testing on W10 with audacity-2.3.3-alpha-252-88dc11f525215cea57f7a89b0038fc7d40a50149

This formerly problematic ogg file I can now import properly into Audacity with drag&drop and File>Import.  I can also File>Open the test ogg file.

So there no longer appears to be a problem on Windows with is particular ogg file.


This should also be tested on Linux before closing this old bug
Comment 3 Steve Daulton 2019-05-29 09:22:29 UTC
On Linux, the file https://bugs.launchpad.net/ubuntu/+source/audacity/+bug/1063298/+attachment/3383394/+files/H.ogg imports correctly, and error messages are correctly logged in the Audacity log (as shown below).
Closing this bug as fixed.

Audacity log messages:
14:10:25: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:26: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:26: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:26: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:26: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:27: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole
14:10:28: Error: Ogg Vorbis importer: file H.ogg is malformed, ov_read() reported a hole