.html xmlns="http://www.w3.org/1999/.html">
Click on Join Now to Sign Up
java.lang.NullPointerException
at processing.core.PFont.addGlyph(PFont.java:462)
at processing.core.PFont.index(PFont.java:584)
at processing.core.PFont.width(PFont.java:664)
at processing.core.PGraphics.textWidthImpl(PGraphics.java:3270)
at processing.core.PGraphics.textWidth(PGraphics.java:3246)
at myapp.myappCore.trimText(myappCore.java:17697)
at myapp.myappCore.linkmap(myappCore.java:11731)
at myapp.core.thread.RunAnalysis.run(RunAnalysis.java:25)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
java.lang.NullPointerException
java.lang.NullPointerException
at processing.core.PFont.addGlyph(PFont.java:462)
at processing.core.PFont.index(PFont.java:584)
at processing.core.PFont.getGlyph(PFont.java:567)
at processing.core.PGraphics.textCharImpl(PGraphics.java:3728)
at processing.opengl.PGraphicsOpenGL.textCharImpl(PGraphicsOpenGL.java:1598)
at processing.core.PGraphics.textLineImpl(PGraphics.java:3716)
at processing.core.PGraphics.textLineAlignImpl(PGraphics.java:3706)
at processing.core.PGraphics.text(PGraphics.java:3405)
at processing.core.PGraphics.text(PGraphics.java:3360)
at processing.core.PApplet.text(PApplet.java:8931)
at myapp.myappCore.drawloader(myappCore.java:13805)
at myapp.myappCore.drawloader(myappCore.java:13744)
at myapp.myappCore.programloader(myappCore.java:12931)
at myapp.myappCore.draw(myappCore.java:836)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Application Specific Information:
Java information:
Exception type: Bus Error (0xa) at pc=00000000956d6ea4
Java VM: Java HotSpot(TM) Client VM (20.12-b01-434 mixed mode macosx-x86)
Current thread (0000000002450400): JavaThread "pool-1-thread-1" [_thread_in_native, id=-1314140160, stack(00000000b19bd000,00000000b1abd000)]
Stack: [00000000b19bd000,00000000b1abd000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jogamp.opengl.gl4.GL4bcImpl.dispatch_glGetError1(J)I+0
j jogamp.opengl.gl4.GL4bcImpl.glGetError()I+33
j processing.opengl.PGL.getError()I+3
j processing.opengl.PGraphicsOpenGL.report(Ljava/lang/String;)V+13
j processing.opengl.PGraphicsOpenGL.beginDraw()V+3
j sketch_Dec12a.loadbuffer()V+9
j sketch_Dec12a$RunLoadNodes.run()V+4
j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4
j java.util.concurrent.FutureTask$Sync.innerRun()V+30
j java.util.concurrent.FutureTask.run()V+4
j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
Thanks!
Remember Bret Victor's live coding talk from last month? He presented an example where he would edit code on one side, and the corresponding visual would automatically update on the other side. It was instant feedback that could help in learning code. Gabriel Florit implemented the idea with D3, and it's called water. Edit on the right and the diagram updates on the left. Try clicking on a number and then holding down the Alt key (or option on the Mac) for slider goodness.
Also, check out Daniel Hooper's interactive JavaScript editor, CodeBook. It's the same idea but a slightly different implementation.
camera.setZoomScale(double scale); // 1.0 by default
camera.setRotationScale(double scale); // 1.0 by default
camera.setPanScale(double scale); // 1.0 by default
double getZoomScale();
double getRotationScale();
double getPanScale();
camera.setDamping(double rotate, double zoom, double pan); // default 1,1,1
camera.setPanOnScreenEdge(boolean panOnScreenEdge); // default false
camera.setPanOnScreenEdge(boolean panOnScreenEdge, boolean panEdgeReverse); //reverses pan direction when true
camera.lookThrough(double x, double y, double z);
camera.lookThrough(double x, double y, double z, long animationTimeInMillis);
camera.lookThrough(double x, double y, double z, double distance);
camera.lookThrough(double x, double y, double z, double distance, long animationTimeInMillis);
camera.getMinimumDistance();
camera.getMaximumDistance();
camera.isMoving(); // returns true or false
camera.setRotations(double pitch, double yaw, double roll, long animationTimeInMillis);
