openframeworks / openframeworks/openFrameworks
ofParameter<unsigned char> leads to XML parse error
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
with 70a69c0 on Ubuntu 15.04, open examples/gui/guiFromParametersExample/src/ofApp.h and change line 32 to : ofParameter<unsigned char> radius; then build and run the example.
Change the radius value to something like 28 and save the parameter.
You should see something like :
[ error ] ofXml: parse error: No element found in line 3 column 9
[ error ] ofXml: toString(): XML Exception
in the console.
Note that some values might work, some other don't which makes this bug hard to track down.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/gui/guiFromParametersExample/src/ofApp.h at line 32, build and run the example, then save an unsigned-char radius value such as 28. Trace the parameter save path and XML parsing when the console reports the error; done means unsigned-char values save without producing an XML parse error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100