Page 1 of 2

NS_ERROR_FAILURE

Posted: 19. May 2011, 15:32
by bluecube
Hello,

I am getting this error with my Windows 7 VM. It's currently inaccessible..

Code: Select all

PCDATA invalid Char value 3.
Location: '/home/my.name/VirtualBox VMs/Windows 7/Windows 7.vbox', line 157 (3), column 36.
/home/vbox/vbox-4.0.8/src/VBox/Main/src-server/MachineImpl.cpp[679] (nsresult Machine::registeredInit()).
Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
VirtualBox
Interface: 
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
I'm running Fedora 14 on 2.6.35

I've done some searching, but a lot of the problems don't apply to me. Can anyone help me figure this out? I am relatively new to Linux, I've been on board for just about a year now.

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 15:38
by Perryg
Do you know what caused this? Fedora update, VBox update, Power failure, ETC.? What happened between the time it worked and now?
Also where does you VBox come from, VirtualBox.org,? It looks like you are running a self-compiled version, is that right?

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 15:52
by bluecube
I did a VBox update not too long ago, I ran the Windows 7 VM once after the update to 4.0.8, when I shut it down and tried to run it again I got the error.

I am running from the rpm at virtualbox.org

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 16:02
by Perryg
Go ahead and post the *.vbox file for this guest. Also if there is a valid guest log file, post the newest (lowest number) here as well (as an attachment).
Do you use snapshots, or was the VBox update done while the guest was in a saved stated (not shut down)?

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 17:03
by tmhunt2
I got the same error today with the exact same symptoms as you.

Only my xml file referenced line 158. I look at the file and Line 158 had the following line:

<GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="^L^C" timestamp="1305645451082681000" flags=""/>

The "^L^C" looked oddly out of place. So I removed those values and left it blank ex: value=""

The new line loks like:

<GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="" timestamp="1305645451082681000" flags=""/>

I could then boot the VM normally. I have no idea what might have caused this only that it fixed my issue. So far I have had no repercussions.

Hope this helps you.

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 18:05
by colemickens
I have had this problem occur three times.

I'm using the Ubuntu 11.04 binary packages. I have the default extpack installed. I always shut down my VM responsibly, and know for sure that I did so when this same corruption has occurred. Opening the *.vbox file and removing the GuestPropert for VersionEx resolves the problem each time.

I never had this happen prior to upgrading to 4.0.8.

(also, off topic, I find it completely unacceptable that my password was emailed to me in plaintext)

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 18:18
by bluecube
I did the same thing, and saw two funny characters in the value property, deleted them and I'm back..

Must be a bug..

Thank you guys for helping me out..

Re: NS_ERROR_FAILURE

Posted: 19. May 2011, 18:32
by tmhunt2
Glad it helped. I never had this happen before either. I guess we will be seeing 4.0.10 pretty soon. ;-)

Re: NS_ERROR_FAILURE

Posted: 20. May 2011, 08:55
by defol
I have the same problem:
This line is responsible:
<GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="" timestamp="1305871687566004000" flags=""/>

After changing the value to .... (I tried rather everything incl. deleting the complete line) I can start the VM .....but only once.
After shutting down the VM the invalid characters are written back.

I also changed the windoof7-64.vbox file to read only (chmod 400 windoof7-64.vbox) but it was changed back by virtualbox.
Any other idea?
Regards
D.F.

Re: NS_ERROR_FAILURE

Posted: 20. May 2011, 09:07
by brhahlen
I am having the same error, Fedora 14, x86_64.
It only started occurring after my update to 4.0.8, never happened before.
My error reads:

Code: Select all

PCDATA invalid Char value 3.
Location: '/home/bhahlen/.VirtualBox/Machines/VD_Office/VD_Office.xml', line 90 (3), column 36.
/home/vbox/vbox-4.0.8/src/VBox/Main/src-server/MachineImpl.cpp[679] (nsresult Machine::registeredInit()).
Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
VirtualBox
Interface: 
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
The line in the XML reads:

Code: Select all

<GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="" timestamp="1305789086129642000" flags=""/>
The last time I just deleted this line, and everything worked again, but removing the values in it also seems to work.
I think this really is a bug.

Re: NS_ERROR_FAILURE

Posted: 20. May 2011, 14:09
by kjbucknum
Thanks for the tip. For the last 3 days I've been recreating the machine each morning. I had tried deleting the line, but it wouldn't start after that. I'll try just removing the control characters Monday when I come in.

Re: NS_ERROR_FAILURE

Posted: 26. May 2011, 02:50
by matakb
I have the same problem, everytime i have to remove the value="L " to value="". The win7 then can start. But it will write back to the file. Annoying when using.

Re: NS_ERROR_FAILURE

Posted: 26. May 2011, 02:58
by Perryg
Shut all things VBox down. Guest must be shut down not saved state.
Replace the crazy values with "4.0.8" and start the VBox service and guest. Does this help?

Re: NS_ERROR_FAILURE

Posted: 27. May 2011, 15:35
by brewerja
No, I have the same problem, and replacing with 4.0.8 does not work. It starts and runs fine, but after shutdown, the value reverts to the special character. Very annoying to have to edit the .vbox file every time.

Re: NS_ERROR_FAILURE

Posted: 27. May 2011, 16:48
by brewerja
The solution can be found in the comments of this ticket: http://www.virtualbox.org/ticket/8948