openframeworks / openframeworks/openFrameworks

ofParameter<unsigned char> leads to XML parse error

Open
#4,348 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.