Error opening project

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

Mac 0S X 10.3 and earlier are no longer supported but you can download legacy versions of Audacity for those systems HERE.
haydenso
Posts: 2
Joined: Mon Jul 06, 2009 9:25 am
Operating System: Please select

Re: Error opening project

Post by haydenso » Mon Jul 06, 2009 9:48 am

Hi Steve, Gale, Leland,

I was about to send a bug report and saw this thread. So I will just chip in here.

I saw the very same problem as Steve described. After some experiments, it seems that this will happen whenever I put in non-ANSCII characters in the tags via the new "Metadata Editor" in 1.3.x. I am not sure if the OP and other people are having the same problem but I can easily reproduce the error by putting in unicode characters through the "Metadata Editor". In fact, the bug shows up for each and every field that I've put in unicode characters, but not on other tags. For example, to produce the following erroneous .aup file, all I have to do is to put simple English name under "Album Title", "Artist Name" and some Chinese characters in "Track Title":

Code: Select all

	<tags>
		<tag name="id3v2" value="1"/>
		<tag name="ALBUM" value="english_album_name"/>
		<tag name="TITLE" name="TITLE"/>
		<tag name="ARTIST" value="english"/>
	</tags>
By the way, developers: this error only shows up in the saved .aup file. The values (e.g. the Chinese unicode characters under Track Title) remains intact in memory. In other word, as long as the project is still opened in Audacity, press Save project, then the corresponding (erroneous) .aup file will be produced. However, if you open up Metadata Editor the values remain intact in memory. Furthermore, when the project is exported to .mp3 files, the tags are correctly encoded in the produced id3v2 tags of the mp3 file as well. This indicates that the bug is related to the project .aup file production.

As I said, it might not exactly be the same cause that caused the OP's problem, but it definitely is a bug in my current setup:

OS X: 10.5.7, Intel
Audacity: 1.3.7 (Unicode)

I simply downloaded the packaged binary from sourceforge, haven't gotten the time to look at the source code yet.


--Hayden

The9th
Posts: 3
Joined: Mon Jun 29, 2009 10:05 pm
Operating System: Please select

Re: Error opening project

Post by The9th » Tue Jul 14, 2009 12:28 pm

Here's my little "duplicate attribute on line n,nnn (2,077 of a 2,096-line .aup xml project file: I put into Word and use the line-counter to find the error.

It seems to be the bold line, which is the first entry in the Label track, and should be "Blowin' In the Wind", but it gets a triple entry of very high precision zeros (to the eighth place, no less! That's the kind of zero our own Wall Street should be able to understand--especially if we tattooed it onto their backsides while we're "clawing back" those billions of bucks in bonuses we paid the gamblers who lost their big, fraudulent bets.

At any rate, I've now had about three occurrences of this, and it's always been the first entry of my label track, appended at the bottom of the project file. I'm beginning to think there's something wrong with the Metadata editor or the way I'm placing labels on the first track of an LP.

(I'm afraid I haven't figured out how to use this forlorn posting formatting stuff. What's wrong with HTML or XML code, I wonder. What's with the square brackets and this lame formatting?? In the publishing industry we spent about 20 years getting the accursed"inline markup" removed and put into "format" file--separating "form", Process, and "Content" attributes. And here we are back inserting a common apostrophe in a mere SIX CHARACTERS. This is just going the wrong way!! Sorry, Mr. Andreeson, but this is what happens when young kids with none of the benefits of history run with a project. But that's an old man's complaint, I supposed.)

Anyway, I tried to make the first track entry bold, so you could see it more easily. Anyway, it's the first label in the label track, the "zero-th entry."

(Oh, BLUSH!--I shouldn't do this when I'm so tired I'm seeing double--it looks like labels 6, 7 and 8 got trashed, too. I'm wondering if I should be "selecting" the entire track to which I apply each label for each cut? Anyone have guidance on this matter? Something's fairly flaky here, seems to me, if it's this sensitive to particular user practices)

Code: Select all

		</waveclip>
	</wavetrack>
	<labeltrack name="Label Track" numlabels="13">
		[color=#BF4040][b]<label t="0.00000000" t1="0.00000000" t1="0.00000000"/>[/b][/color]
		<label t="170.43026976" t1="170.43026976" title="2. Girl From the North Country"/>
		<label t="373.99941605" t1="373.99941605" title="3. Masters of War"/>
		<label t="647.52326531" t1="647.52326531" title="4. Down the Highway"/>
		<label t="851.28997732" t1="851.28997732" title="5. Bob Dylan&apos;s Blues"/>
(these 3	<label t="995.92707483" t1="995.92707483" t1="995.92707483"/>
labels too)	<label t="1407.96517007" t1="1407.96517007" t1="1407.96517007"/>
		<label t="1628.49668934" t1="1628.49668934" t1="1628.49668934"/>
		<label t="1931.66802721" t1="1931.66802721" title="9. Oxford Town"/>
		<label t="2043.00000000" t1="2043.00000000" title="10. Talking World War III Blues"/>
		<label t="2430.27011338" t1="2430.27011338" title="11. Corrina, Corrina"/>
		<label t="2595.93287982" t1="2595.93287982" title="12. Honey, Just Allow Me One More Chance"/>
		<label t="2718.01179138" t1="2718.01179138" title="13. I Shall Be Free"/>
	</labeltrack>
</project>
If I correct the entry, like so, I can open the file. (But then, knock wood, I hope I don't get "orphan" datablocks."

I wonder if the darned HTML markup for apostrophes is problematic? This &apos; jazz--six characters to type instead of one consarned itsy-bitsy apostrophe. Ain't it a joy to edit copy with in-line markup!

Code: Select all

		</waveclip>
	</wavetrack>
	<labeltrack name="Label Track" numlabels="13">
	[color=#BF4040][b]	<label t="0.00000000" t1="0.00000000" title="1. Blowin&apos; In The Wind"/>[/b][/color]
		<label t="170.43026976" t1="170.43026976" title="2. Girl From the North Country"/>
		<label t="373.99941605" t1="373.99941605" title="3. Masters of War"/>
		<label t="647.52326531" t1="647.52326531" title="4. Down the Highway"/>
		<label t="851.28997732" t1="851.28997732" title="5. Bob Dylan&apos;s Blues"/>
		<label t="995.92707483" t1="995.92707483" title="6. A Hard Rain&apos;s a Gonna Fall"/>
		<label t="1407.96517007" t1="1407.96517007" title="7. Don&apos;t Think Twice, It&apos;s All Right"/>
		<label t="1628.49668934" t1="1628.49668934" title="8. Bob Dylan&apos;s Dream"/>
		<label t="1931.66802721" t1="1931.66802721" title="9. Oxford Town"/>
		<label t="2043.00000000" t1="2043.00000000" title="10. Talking World War III Blues"/>
		<label t="2430.27011338" t1="2430.27011338" title="11. Corrina, Corrina  "/>
		<label t="2595.93287982" t1="2595.93287982" title="12. Honey, Just Allow Me One More Chance"/>
		<label t="2718.01179138" t1="2718.01179138" title="13. I Shall Be Free"/>
	</labeltrack>
</project>
bw

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

Re: Error opening project

Post by Gale Andrews » Sat Jul 18, 2009 2:34 am

The9th, if you enclose text within code tags, it will display as you write it, like the <pre> HTML tag.

Can I ask all of you who have this issue to try 1.3.8 please.

We have certainly come across one user who found that saving a project in 1.3.7 with Unicode characters in labels created the duplicate attributes in the .aup file, but when creating and saving the same project in 1.3.8, it didn't. That does not mean we fixed it, because we could never reproduce it to do so. If any of you can come up with steps to reproduce this in 1.3.8 we'd be very grateful. If the "duplicate attribute" error occurs on re-opening the .aup project file, please make a copy of the .aup file and its _data folder without modifying them, and upload both in a zip file to a free file transfer service such as:
http://www.yousendit.com/
http://www.sendspace.com/


Then let us know the web address where we can download the zip. Note the _data folder is very large, so this may not be practicable for projects longer than a minute or two, but this is what we need to find and fix it, if this still exists.


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

haydenso
Posts: 2
Joined: Mon Jul 06, 2009 9:25 am
Operating System: Please select

Re: Error opening project

Post by haydenso » Mon Jul 20, 2009 12:55 pm

Hi Gale,

1.3.8 works like a charm on Intel OSX unicode. I can put in unicode characters in the tags and they will be correctly escaped in the corresponding .aup files. Thanks.

--Hayden

yori
Posts: 3
Joined: Sat Jul 25, 2009 7:26 am
Operating System: Please select

Re: Error opening project

Post by yori » Sat Jul 25, 2009 10:18 am

Guess i'll hop onto this thread instead of making a new topic…
My file has this error: mismatched tag at line 375 (which is the very last line. …Or somewhere nearby.) [Edit] Checked in MSWord, it's the last line (</project>)

Here are the first few lines of the .aup file

Code: Select all

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE project PUBLIC "-//audacityproject-1.3.0//DTD//EN" "http://audacityteam.org/xml/audacityproject-1.3.0.dtd" >
<project xmlns="http://audacityteam.org/xml/" projname="jbf01_data" version="1.3.0" audacityversion="1.3.7" sel0="100.0131742799" sel1="100.0131742799" vpos="1824" h="91.6639394821" zoom="39.4048087002" rate="44100">
and here are the last few lines

Code: Select all

<simpleblockfile filename="e00069cd.au" len="21888" min="-0.014204" max="0.01117" rms="0.000529"/>
				</waveblock>
			</sequence>
			<envelope numpoints="0"/>
		</waveclip>
	</wavetrack>
</project>
I figured a guess and added a <project> tag on line 3, but then it asked me to upgrade my version of Audacity (???), so i changed it back. Before that, it indicated broken tags on line 9 and then line 60-something (in both cases "<wavetrack" didn't have the closing ">", which i fixed). I don't think the file is corrupted, though why it didn't save properly is a mystery (never happened before this), so i would appreciate it if someone could tell me how to fix the code. Please and thanks! The file was saved on 1.3.7, though i just upgraded to 1.3.8 a minute ago to try my luck. No such luck.
Last edited by yori on Sat Jul 25, 2009 10:48 pm, edited 2 times in total.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Error opening project

Post by steve » Sat Jul 25, 2009 1:57 pm

yori wrote:My file has this error: mismatched tag at line 375 (which is the very last line. …Or somewhere nearby.)
Do you have a text editor that has line numbering? I don't use Macs so I'm not sure what is available, but for fixing these kind of issues you really do need line numbers.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

yori
Posts: 3
Joined: Sat Jul 25, 2009 7:26 am
Operating System: Please select

Re: Error opening project

Post by yori » Sat Jul 25, 2009 10:50 pm

stevethefiddle wrote:Do you have a text editor that has line numbering? I don't use Macs so I'm not sure what is available, but for fixing these kind of issues you really do need line numbers.
Thanks for the tip; I did just that and have edited my comment.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Error opening project

Post by steve » Sat Jul 25, 2009 11:15 pm

You have an opening tag for <project> in Line 3, and a closing tag </project> in the last line (the "/" indicates that it is a closing tag).
Do a word search for "project" - there's probably an extra one somewhere else.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

yori
Posts: 3
Joined: Sat Jul 25, 2009 7:26 am
Operating System: Please select

Re: Error opening project

Post by yori » Sat Jul 25, 2009 11:26 pm

stevethefiddle wrote:You have an opening tag for <project> in Line 3, and a closing tag </project> in the last line (the "/" indicates that it is a closing tag).
Do a word search for "project" - there's probably an extra one somewhere else.
Ran the search and found no extra <project> tags, but the word appears a lot in the first few lines - could that be part of the problem?

kozikowski
Forum Staff
Posts: 69373
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Error opening project

Post by kozikowski » Sun Jul 26, 2009 2:14 am

Hex Fiend has line numbering...in hex...

Error on line AF!!!

Still looking.

Koz

Locked