New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2D: error calling surface.setTitle() #3721

Closed
chrsmlls333 opened this Issue Aug 26, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@chrsmlls333

chrsmlls333 commented Aug 26, 2015

Processing 3b5
Windows 10

When using P2D/P3D renderer, and frameRate() is set in setup(), calling the frameRate variable in surface.setTitle() results in error below. Works fine when frameRate isn't limited. This is a super useful tool for a quick glance without filling the console so I'd hate to see it gone!

java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms for: <6970340b, 7c83507a>[count 2, qsz 0, owner <main-Display-.windows_nil-1-EDT-1-FPSAWTAnimator#00-Timer0>] - <main-Display-.windows_nil-1-EDT-1>
    at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
    at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
    at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
    at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2133)
    at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1024)
    at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1029)
    at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:499)
    at processing.opengl.PSurfaceJOGL.startThread(PSurfaceJOGL.java:529)
    at processing.core.PApplet.startSurface(PApplet.java:10263)
    at processing.core.PApplet.runSketch(PApplet.java:10241)
    at processing.core.PApplet.main(PApplet.java:9969)
Caused by: java.lang.RuntimeException: Waited 5000ms for: <6970340b, 7c83507a>[count 2, qsz 0, owner <main-Display-.windows_nil-1-EDT-1-FPSAWTAnimator#00-Timer0>] - <main-Display-.windows_nil-1-EDT-1>
    at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
    at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:950)
    at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1015)
    at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
    at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)

Error can be reproduced with this sketch (comment/uncomment frameRate(30) to trigger)

void setup() {
  size(640, 360, P2D);   
  frameRate(30);
}

void draw() { 
  surface.setTitle(str(frameRate));
  background(0);
} 

UPDATE:
Actually triggered by any call of surface.setTitle(); when frameRate() is set.

void setup() {
  size(640, 360, P2D);   
  frameRate(30);
}

void draw() { 
  surface.setTitle("x");
  background(0);
} 

@codeanticode codeanticode added the opengl label Aug 26, 2015

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 27, 2015

Contributor

@codeanticode This is related to #3520, somewhere we are calling GLWindow methods on the wrong thread.

Contributor

JakubValtar commented Aug 27, 2015

@codeanticode This is related to #3520, somewhere we are calling GLWindow methods on the wrong thread.

@codeanticode codeanticode self-assigned this Aug 27, 2015

@benfry benfry changed the title from P2D: error using frameRate variable in surface to P2D: error calling surface.setTitle() Aug 27, 2015

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Aug 31, 2015

Contributor

Should be fixed in a384cbf for beta 6.

Contributor

JakubValtar commented Aug 31, 2015

Should be fixed in a384cbf for beta 6.

@benfry benfry closed this Sep 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment