app_info.xml parsing problem

Message boards : BOINC client : app_info.xml parsing problem
Message board moderation

To post messages, you must log in.

AuthorMessage
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 18820 - Posted: 25 Jul 2008, 0:20:10 UTC

We're experimenting with app_info.xml files at SETI Beta, in anticipation of the release of Astropulse.

SETI's third party optimised applications make heavy use of the anonymous platform mechanism, even on standard operating systems.

We've had a case where a user was using an app_info including the constructs <executable /> and <main_program /> (with spaces). He then combined this with a second block specifying the Astropulse application, using the constructs <executable/> and <main_program/> (without spaces). All tasks for the original application - the one specified with spaces - then failed with "No main program specified".

I have reproduced the failure on my own machine (by adding spaces), and advised that the spaces should be removed from the reporting problem machine. Further reports as I receive them.

The question is, why did it (apparently) work before editing? I have checked the optimised application download package, and the spaces are present in the pre-supplied app_info. It's been available for download for almost three months (since 1st. May), so I would have expected problems to have shown up and been corrected by now.

All of this is happening in BOINC 5 (mine v5.10.13, his v5.10.45), so the debug output introduced in [trac]#703[/trac] isn't automatically available. I'm not sure whether <unparsed_xml> will help, but I'll try it if no-one can tell me exactly what's wrong with the spacing.
ID: 18820 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 18822 - Posted: 25 Jul 2008, 0:50:15 UTC

Forwarded to the developers.
ID: 18822 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 19085 - Posted: 2 Aug 2008, 16:45:23 UTC

Bump.

This problem is now showing up on SETI Main as well. The application developers are rather busy on social engineering issues right now, so assistance from the rest of the BOINC community would be appreciated.
ID: 19085 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 20768 - Posted: 12 Oct 2008, 14:38:46 UTC

A user at SETI has helped us track down the source of these extraneous spaces (thanks, MarkJ).

On a bog-standard default Windows installation, the XML file extension is associated with Internet Explorer. The temptation for anyone needing to 'tweak' an XML file, therefore, is to:

1) Double-click on the file
2) Select the text they require in the resulting IE window
3) Ctrl-C to copy
4) Open the editor of their choice, paste, and carry on from there.

Whatever you think about Microsoft's definition of "standards", it's clear that Internet Explorer thinks that the standard for a self-closed tag like <executable /> and <main_program /> is to use a space - it inserts one automatically when you use this procedure. And, this being the real world, I think it's important that BOINC at least recognises, and correctly parses, Microsoft's version of the standard.

Jord, do you want to raise the ticket, or shall I?
ID: 20768 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 20769 - Posted: 12 Oct 2008, 15:35:31 UTC - in response to Message 20768.  

Jord, do you want to raise the ticket, or shall I?

You do it, please. I've got my head elsewhere.
ID: 20769 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 20773 - Posted: 12 Oct 2008, 17:46:00 UTC - in response to Message 20769.  

Jord, do you want to raise the ticket, or shall I?

You do it, please. I've got my head elsewhere.

Will do. May be later tonite, or even tomorrow - I want to watch Stephen Fry's road-trip round America this evening.
ID: 20773 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 20774 - Posted: 12 Oct 2008, 19:08:04 UTC - in response to Message 20773.  

I want to watch Stephen Fry's road-trip round America this evening.

I got that one set in the VCR while I'll watch James May's Big Things. ;-)
ID: 20774 · Report as offensive

Message boards : BOINC client : app_info.xml parsing problem

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.