Import audio crash

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
billw58
Forum Staff
Posts: 5566
Joined: Wed Aug 12, 2009 2:10 am
Operating System: macOS 10.15 Catalina or later

Re: Import audio crash

Post by billw58 » Sun Jan 01, 2012 3:34 pm

@rrm:
We're pretty sure the problem is with the ID3 tags in that file. You can import it if you set the "File Type" dropdown menu in the File Import dialog to "MP3 files" or "FFmpeg-compatible files".

Starting at byte 0 we find:
Screen Shot 2012-01-01 at 10.25.34 AM.png
Screen Shot 2012-01-01 at 10.25.34 AM.png (35.44 KiB) Viewed 2490 times
Then starting at byte 4320:
Screen Shot 2012-01-01 at 10.26.33 AM.png
Screen Shot 2012-01-01 at 10.26.33 AM.png (44.44 KiB) Viewed 2490 times
-- Bill

rrm
Posts: 10
Joined: Thu Dec 29, 2011 6:12 pm
Operating System: Please select

Re: Import audio crash

Post by rrm » Sun Jan 01, 2012 8:30 pm

billw58 wrote:@rrm:
We're pretty sure the problem is with the ID3 tags in that file. You can import it if you set the "File Type" dropdown menu in the File Import dialog to "MP3 files" or "FFmpeg-compatible files".
-- Bill
The option of MP3 Files works great, FFmpgeg gives exact the same problem.
Also tried to rename the file, unfortunately without any success.

billw58
Forum Staff
Posts: 5566
Joined: Wed Aug 12, 2009 2:10 am
Operating System: macOS 10.15 Catalina or later

Re: Import audio crash

Post by billw58 » Sun Jan 01, 2012 9:04 pm

Renaming the file won't help: it's the embedded ID3 tags that appear to be causing the problem. I've never seen that "Exact Audio Copy (Secure Mode)" notation before.

-- Bill

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Import audio crash

Post by Gale Andrews » Mon Jan 02, 2012 6:02 am

billw58 wrote:Then starting at byte 4320:
Well, byte 4318 (the "I" of "ID3"). I deleted that entire block of partially duplicated tags (bytes 4318 - 4477) then the file imported fine even when libsndfile (the PCM importer) tried it first, as it does when "All files" is selected. Deleting the duplicates still leaves the metadata visible in Audacity Metadata Editor as it was before.

Sndfile-convert in libsndfile 1.0.24 (the version Audacity is using) and also the current 1.0.25 crash out when encountering the file with the duplicated tags present. They skip the file as they should when the duplicates are removed. So I think we can assume a libsndfile rather than Audacity problem. Best thing is to report it to Erik, I would think.

That still leaves something unresolved with what Ed encountered. Can you reproduce that again with another file, Ed?



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Import audio crash

Post by Edgar » Mon Jan 02, 2012 6:15 am

Gale Andrews wrote: That still leaves something unresolved with what Ed encountered. Can you reproduce that again with another file, Ed?
I have only been able to repro the crash by importing the specific file in question. I suspect that the file was created "improperly" (somehow??) but, I also do not believe that trying to read a corrupt file should result in a crash (or, in Bill's case what seems to have manifested in an endless loop). My best guess is the libsndfile code is ignoring a read return error or referencing a variable which is improperly (most likely "not at all") uninitialized.

Given a copy of this file, anyone familiar with the libsndfile code (which is very strangely formatted and, for me, extremely hard to read) should be able to diagnose and fix this problem. Any repeatable crash can be rewound to the offending code fairly easily but given the coding style someone else will need to do it.
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Import audio crash

Post by Gale Andrews » Tue Jan 03, 2012 2:51 am

@Ed, what I was referring to in my question to you was your earlier post in this topic where you said:
I just tried something like what you are doing and also had a problem with 1.3.15-alpha. I waited at least 5 minutes and Audacity still seemed "hung". My steps were to Generate 5 hours, 30 minutes & 1 second of default noise in Mono then try to import a 15 minute stereo WAV. I got fed up waiting and clicked the Close button which worked but the WAV audio showed an empty track still.
That would concern me a bit on the formula 1 machine you have.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Import audio crash

Post by Edgar » Tue Jan 03, 2012 4:32 am

Gale Andrews wrote:@Ed, what I was referring to in my question to you was your earlier post in this topic where you said:
I just tried something like what you are doing and also had a problem with 1.3.15-alpha. I waited at least 5 minutes and Audacity still seemed "hung". My steps were to Generate 5 hours, 30 minutes & 1 second of default noise in Mono then try to import a 15 minute stereo WAV. I got fed up waiting and clicked the Close button which worked but the WAV audio showed an empty track still.
That would concern me a bit on the formula 1 machine you have.


Gale
Mea culpa! Operator error. I just tried it again with no problem. The file I was using was 15 seconds not minutes and as a result its waveform was invisible in the context of 5+ hours. (I say wiping egg off face!)
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Locked