Comments (12)
Agreed. The new dialog (shown above) does exactly that.. specifies which file can't be parsed.
I'll release a new version with the dialog shortly.
from clrvpin.
hi @MikedaSpike, thanks for submitting the bug report.
I reckon you're right, it sounds like the .net xml parser doesn't think your xml file is well formatted. At a guess, you might be missing a closing tag for 'manufactuer' or perhaps your manufacturer description includes a name with a tag in it.
If you can upload the first 50ish lines of your xml file I should be able to confirm. Alternatively, feel free to upload the whole xml file and I'll make sure the rest of it is ok too.
Depending on the issue, I might be able to cleanse the xml file when it's read, but before it gets parsed.
from clrvpin.
Another option is upload your xml file into an online xml file parser to confirm it looks ok. For example.. https://codebeautify.org/xmlvalidator
from clrvpin.
Added a user friendly dialog for invalid xml files.. instead of the 'catch all' unhandled error dialog which submits a bug to github.
It's still quite technical though, but hopefully won't be seen too often :)
from clrvpin.
When I'm at the cab, i will do the steps.
Xml is fine as it is working with PBX.
It is a slighty modified one, as ot is created with DBM.
On top of my head , an empty entry will only have (where entry is the name field) instead of the closing tag.
from clrvpin.
Sounds good. I'll be very keen to know why the xml file doesn't parse.. especially since it works with PBX.
from clrvpin.
Another option is upload your xml file into an online xml file parser to confirm it looks ok. For example.. https://codebeautify.org/xmlvalidator
Xml file is valid, according to the site.
Here are the first 3 table entries
<?xml version="1.0" encoding="Windows-1252"?>
<menu>
<game name="_123(Talleres de Llobregat 1973)">
<description>1-2-3 (Talleres de Llobregat 1973)</description>
<rom>TlD_123</rom>
<manufacturer>Talleres de Llobregat</manufacturer>
<year>1973</year>
<type>EM</type>
<hidedmd>True</hidedmd>
<hidetopper>True</hidetopper>
<hidebackglass>False</hidebackglass>
<enabled>True</enabled>
<rating>0</rating>
<players>1</players>
<comment />
<theme>TV Game Show</theme>
<author>jpsalas, akiles50000, Loserman76</author>
<version>1.0.2</version>
<IPDBnr>5247</IPDBnr>
<dateadded>1900-01-01 00:00:00</dateadded>
<datemodified>2022-01-20 06:02:04</datemodified>
</game>
<game name="2001 (Gottlieb 1971)">
<description>2001 (Gottlieb 1971)</description>
<rom>GTB2001_1971</rom>
<manufacturer>Gottlieb</manufacturer>
<year>1971</year>
<type>EM</type>
<hidedmd>True</hidedmd>
<hidetopper>True</hidetopper>
<hidebackglass>False</hidebackglass>
<enabled>True</enabled>
<rating>0</rating>
<players>1</players>
<comment />
<theme>Fantasy</theme>
<author />
<version>1.0</version>
<IPDBnr>2697</IPDBnr>
<dateadded>2020-04-11 14:58:29</dateadded>
<datemodified>2017-12-25 23:59:59</datemodified>
</game>
<game name="24 (Stern2009)EmperorModv1.1">
<description>24™ (Stern 2009)</description>
<rom>twenty4_150</rom>
<manufacturer>Stern</manufacturer>
<year>2009</year>
<type>SS</type>
<hidedmd>True</hidedmd>
<hidetopper>True</hidetopper>
<hidebackglass>False</hidebackglass>
<enabled>True</enabled>
<rating>0</rating>
<players>4</players>
<comment />
<theme>Licensed Theme - Television Show - Law</theme>
<author>Freneticamnesic</author>
<version>2.0.1</version>
<IPDBnr>5419</IPDBnr>
<dateadded>1900-01-01 00:00:00</dateadded>
<datemodified>2021-09-26 06:20:30</datemodified>
</game>
from clrvpin.
You're right, that XML snippet does look perfectly valid. I terminated it with a closing tag and it parsed fine..
Based on your initial bug report, I suspect it's a different file (in the same folder) that can't be parsed. The crash you reported has the 'manufacturer' tag on line 5, where as the example above has it on line 6.
Note, ClrVpin will load all of the *.xml database files that exist within the folder.
from clrvpin.
You are right, Must be another file, If I remove all other files from that directory and only leave the "visual pinball.xml", it is starting fine.
Maybe a file handling that will show which file is causing it, as the log doesn't show what file is causing this (I have multiple XML files in my visual pinball database directory)
But now it starts fine
from clrvpin.
This version should provide what you need to identify the problem file.. https://github.com/stojy/ClrVpin/releases/tag/4.0.1
from clrvpin.
Hopefully you've identified the file and problem. I'll close out this issue, but if you believe it's a bug then i can re-open it.
from clrvpin.
You can close it. It is now showing the incorrect file. Thanks
from clrvpin.
Related Issues (20)
- Importer - online database integration HOT 1
- Additional fuzzy logic improvements HOT 1
- fuzzy match online tables/content with local table pinball X/Y database (read only) HOT 1
- Windows 7 Ultimate HOT 4
- Running with v2.2.0 getting unhandled exception on scan HOT 2
- Bombs when trying to rename a file - it thinks it should add a : in the filename...bad HOT 4
- Divide By Zero HOT 2
- Incorrect mod date being used in the scanner? HOT 5
- Settings - file extensions and linked file extensions doesn't update correctly
- Automated version update management HOT 1
- downgrade doesn't work HOT 1
- update local table pinballX/Y database file with online table information HOT 1
- Unhandled Error - <add summary description here> HOT 1
- Cant scan etc HOT 4
- More flexible and simplified folder setup HOT 1
- Detect installed applications and automatically assign folders
- Unhandled Error - cleaner is unable to access the file path HOT 5
- Unhandled Error - [add summary description here] HOT 1
- add support for missing media folders: backglass images, table images, etc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clrvpin.