code_swarm icon indicating copy to clipboard operation
code_swarm copied to clipboard

Error: "tried to access field processing.core.PFont.size from class code_swarm"

Open caseywatts opened this issue 10 years ago • 1 comments

I'm running OS X 10.10.2, I've upgraded and migrated my development files through a few computers.

When I ran code_swarm (after some other troubleshooting) I got this error:

Exception in thread "Animation Thread" java.lang.IllegalAccessError: tried to access field processing.core.PFont.size from class code_swarm
    at code_swarm.drawLegend(code_swarm.java:537)
    at code_swarm.draw(code_swarm.java:426)
    at processing.core.PApplet.handleDraw(PApplet.java:2306)
    at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
    at processing.core.PApplet.run(PApplet.java:2177)
    at java.lang.Thread.run(Thread.java:695)

I've determined that this is probably pointing at a call to the function font.getSize().

The last time this was edited was in pull request #14 by @longbai. When I checked out commit 70867b3a and tried it, everything works again! I don't know enough java to troubleshoot this any further on my own. I'm happy to provide more information about my programming environment if that would help!

caseywatts avatar Mar 24 '15 19:03 caseywatts

the processing library has updated and do not allow access the field directly. please use getSize.

longbai avatar Mar 25 '15 15:03 longbai