Error: not well formed (invalid token) at line 1340

Hey all,
I am in the process of recording a song with multiple instrument and vocal tracks. I’ve been working at it for about 2 weeks and today I went to open up the file, only to see this message: Error: not well-formed (invalid token) at line 1340. It’s frustrating because I don’t know what is wrong and I don’t know what happened to make it this way.

Please help me out, this is a very important recording to me and I’m stuck!

Also, here is some tech info for what I am running:
• Audacity 2.0.6 (recording software)
• TASCAM US-1641 (recording interface)
• Windows 8.0 operating system

Sincerely,
Chilly P

http://forum.audacityteam.org/search.php?keywords=[u]error+invalid+token[/u]

Hey Trebor,
I have looked over this thread and still cannot figure it out.

Do you have any other recommendations?

Would it help if I attached the file?

Chilly P

See this FAQ in the Audacity Manual: http://manual.audacityteam.org/o/man/faq_errors.html#nwf

WC

This is going to sound like a dumb question, but how did I make a copy of the file and get it into Notepad? I’ve tried to right click on the AUP file and “copy”, then “paste” into Notepad, but paste does not even come up as an option when I get to the Notepad… like nothing registered as copying.

Thanks,
Chilly P

I don’t use Windows, but, have you tried launching NotePad, then “File menu > Open” and selecting the .AUP file?

Even with Word Wrap off, it seems Notepad (at least on Windows 7) doesn’t format AUP (or AUTOSAVE) files properly because it does not understand LF line endings.

It would be easier to view in Wordpad. Default Save in Wordpad is OK as long as there are not Unicode characters in the file.

If you need help, yes just attach the file. Please see here for how to attach files: https://forum.audacityteam.org/t/how-to-attach-files-to-forum-posts/24026/1


Gale

Good grief, is Linux the only operating system that comes with a decent text editor included? :sigh:

How about NotePad++ then? http://notepad-plus-plus.org/
Perhaps overkill for the job in hand, but it’s a good text editor.

NotePad++ is fine. You should use that anyway if you have Unicode characters in the file.

I suppose you could argue that AUP and AUTOSAVE should be written with Windows CR-LF line endings given that is our majority platform and given Mac and Linux can handle that. I will duck behind the parapet now.


Gale

lol

Windows can “handle” LF, (some Windows applications do) but Microsoft’s inchoate NotePad doesn’t.

CR-LF is two bytes, two commands:
= Carriage Return,
= Line Feed; essentially double spacing, though Microsoft choose to interpret it as single spacing, thus adding unnecessary bloat to all text files. “Unnecessary bloat” is nothing new to Microsoft, but I see no reason that we should follow that practice. :wink:

Given that:

  1. NotePad can’t handle “LF”
  2. Wordpad can’t handle Unicode
  3. Users may not know if their AUP file has Unicode characters (or even what “Unicode” means)
  4. NotePad++ is a third party application that would need to be downloaded separately
  5. NotePad++, although very good, is arguably overkill for the purpose of editing an AUP file

What advice should we put to forum users if they need to view or manually edit an AUP file?

I never was quite sure what “overkill” meant for an editor, especially when it comes to opening “.aup” files.
If I open an “.aup” file in Notepad++, the first few lines read like this:

<?xml version="1.0" standalone="no" ?> http://audacityteam.org/xml/audacityproject-1.3.0.dtd> " >

Obviously, this is not for the faint-hearted! This is XML programming language!

This said, XPad text editor is a much simpler free standalone text editor than Notepad++. It is a cross-platform text editor with full Unicode support. It can open and save “.aup” files correctly.

HTH.
Cheers,
Robert

Not quite. It is a Windows application, but supports text files from Windows, Mac and Linux. It is not designed to “run” on Mac or Linux, only Windows.

Not quite. It is a Windows application, but supports text files from Windows, Mac and Linux.

This is what I meant.

WordPad can read and write any Unicode characters inside the app itself, but if you save an AUP file containing Unicode characters in WordPad (even as “Unicode Text (.txt)”) it is either DOS/ANSI or UCS-2 Little Endian according to what the characters are.

Audacity won’t be able to open that Wordpad-saved AUP, so you will have to open the AUP in Notepad++ and either remove the Unicode characters if the file is ANSI, or convert the file to UTF-8 without BOM if the file is UCS-2 Little Endian.

NotePad++ is also potentially confusing with its complex menus and options unless the user is told exactly how to use it.

I haven’t tried it but XPad looks a possible candidate - though it doesn’t seem to support UCS-2: XPad text editor, official website.


Gale

Hey guys,
So I really appreciate all the responses, but I keep disappointing. I’ve tried opening my file in Notepad & Wordpad, but absolutely nothing pulls up. It must be undetectable to those programs from what I can tell.

Gale, I will attach the file and if you can do anything to make it work again I would be beyond grateful!!!

Chilly P

I’ve attached the .AUP file below. Please let me know if this will not work for diagnosing the problem. I tried to convert the file to a WAV file, but I could not export the project’s audio, because the Error won’t let me access any of my audio tracks :frowning:

Thanks,
Chilly P
Hillbilly Circus.aup (96.8 KB)

Hey guys,
I don’t if you need the data files for my audacity project, but I will try to have a Dropbox link to the data files by tomorrow night.

Chilly P

This seems one of those cases where the AUP file did not complete saving, so is truncated. Did Audacity or this project seem to close normally when you last closed it? Did you power off the instant you saved the project?

The only way I think we’ll open the project is to remove from the AUP file the incomplete “Drum 2” track (only some of its left channel is written to the AUP). So I did that in the AUP file attached. The file should open with a warning about “orphan block files”. Choose the option in the warning to “Continue without deleting”. Don’t change anything in the project, just play it to see what’s missing, open Help > Show Log… and save the log file, then close the project.

The complete data for the “Drum 2” track will be in the “Hillbilly Circus_data” folder - the AU files for “Drum 2” (and the AU files for any other tracks that were not written to the AUP) will be the “orphan” files mentioned in the warning. The Log will show you which files are the orphans that are not in the fixed project, but there is no way to piece the files together short of dragging them into Audacity and and rearranging them into a new track or tracks.


Gale
Hillbilly Circus.aup (62.3 KB)

Hey Gale,

I clicked to open the link and I got 2 Error messages:

The first: Error Opening Project - Couldn’t find the project data folder: “Hillbilly Circus_data”

And if I click on the OK button, it brings me to this message…

The second: Error Opening Project - "Could not load file: “C:UsersPatrickDownloadsHillbilly Circus.aup”

I feel like we’re really close to getting this back in action, please let me know if you need the data file and I’ll send that to you ASAP.

Thanks,
Chilly P