"not well formed (invalid token)" error when recovering proj
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.
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.
-
Franck Dernoncourt
- Posts: 3
- Joined: Sun Jan 15, 2012 10:37 pm
- Operating System: Please select
"not well formed (invalid token)" error when recovering proj
Just to let you know, my computer crashed while I was a recording the audio input with Audacity 1.3.14-beta (my Windows 7 x64 SP1 sometimes fights with the hardware, not Audacity's fault I believe). When I opened Audacity after reboot, Audacity offered me to recover the project, but I got the error "not well formed (invalid token) at line 1105. I just had to delete line 1105, which was virtually full of null characters (see enclosed zipped .autosave file), to make it work. (thank you XML!). I guess Audacity's recovering function could be easily modified to check for suspicious characters like wandering NULs to clean this kind of mess.
- Attachments
-
- Nouveau projet - 2012-01-15 21-21-45 N-9 - Copy.zip
- (4.82 KiB) Downloaded 114 times
-
kozikowski
- Forum Staff
- Posts: 68938
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: "not well formed (invalid token)" error when recovering
What did you use to view the xml with line numbers?
Koz
Crashing doesn't always produce this exact problem, but are you volunteering to program that module? I can put you in touch with the right elves.I guess Audacity's recovering function could be easily modified to check for suspicious characters like wandering NULs to clean this kind of mess.
Koz
-
Franck Dernoncourt
- Posts: 3
- Joined: Sun Jan 15, 2012 10:37 pm
- Operating System: Please select
Re: "not well formed (invalid token)" error when recovering
Notepad++ and 010 EditorWhat did you use to view the xml with line numbers?
Not sure I'll find the time but I'll have a look at the source code. On http://wiki.audacityteam.org/wiki/Developing_On_Windows, at lineare you volunteering to program that module?
'Check here' points to a broken link. What's the right link?To develop in C/C++ for Windows you need a second download from Microsoft, the "Platform SDK", or the later "Windows SDK". Check here for the one you require.
Re: "not well formed (invalid token)" error when recovering
This section of the wiki is being rewritten to bring it up to date, but it's not a simple job so it could be a while before it is fully updated.Franck Dernoncourt wrote:'Check here' points to a broken link. What's the right link?
Here are some interim notes on the subject: http://www.hometownband.org/CompilingAudacity.html
and a link for the Windows SDK: http://msdn.microsoft.com/en-us/library/ms717422.aspx
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: "not well formed (invalid token)" error when recovering
The links on that page have just been updated.Franck Dernoncourt wrote:Not sure I'll find the time but I'll have a look at the source code. On http://wiki.audacityteam.org/wiki/Developing_On_Windows, at line'Check here' points to a broken link. What's the right link?To develop in C/C++ for Windows you need a second download from Microsoft, the "Platform SDK", or the later "Windows SDK". Check here for the one you require.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: "not well formed (invalid token)" error when recovering
I've updated the links a short while ago (but the page is as Steve says in a bit of a state of flux at present). The Windows SDK (Microsoft Windows SDK for Windows 7 and .NET Framework 4) is the one wanted for XP SP3 or later.Franck Dernoncourt wrote:'Check here' points to a broken link. What's the right link?To develop in C/C++ for Windows you need a second download from Microsoft, the "Platform SDK", or the later "Windows SDK". Check here for the one you require.
Note that Audacity doesn't support VS 2010.
On past experience, the developers probably won't want to handle nulls or anything specious in the .aup file (such as a control character), so it would mean a direct clean up/removal of the problem.
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
-
Franck Dernoncourt
- Posts: 3
- Joined: Sun Jan 15, 2012 10:37 pm
- Operating System: Please select
Re: "not well formed (invalid token)" error when recovering
steve wrote:The links on that page have just been updated.
Thanks!Gale Andrews wrote:I've updated the links a short while ago
Why?Gale Andrews wrote:the developers probably won't want to handle nulls or anything specious in the .aup file (such as a control character)
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: "not well formed (invalid token)" error when recovering
Because the argument went that handling/ignoring specious characters in the .aup could create unpredictability in the project.Why?Gale Andrews wrote:the developers probably won't want to handle nulls or anything specious in the .aup file (such as a control character)
For example a few Beta versions ago, some files from iTunes contained metadata that would corrupt the .aup on Mac computers. We stopped that corruption occurring by preventing those characters being parsed into the .aup, but .aup files that already have those characters are refused with an error message.
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual