Skip to content
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

Video output failure on second display (macOS 12.3.1, sidecar). #125

Open
yojeek opened this issue Dec 16, 2022 · 1 comment
Open

Video output failure on second display (macOS 12.3.1, sidecar). #125

yojeek opened this issue Dec 16, 2022 · 1 comment

Comments

@yojeek
Copy link

yojeek commented Dec 16, 2022

I'm trying to render video output on my iPad connected as a second display via Sidecar (or, how it's called now, "Screen mirroring").

When I choose output device which corresponds to my iPad display, it failes to start and shows following error in output :

The sketch has been automatically resized to fit the screen resolution
OpenGL error 1280 at bot beginDraw(): invalid enumerant
OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation
OpenGL error 1286 at bot endDraw(): invalid framebuffer operation
OpenGL error 1286 at top endDraw(): invalid framebuffer operation
Dec 16, 2022 9:33:09 PM processing.lwjgl.PSurfaceLWJGL handleRun
SEVERE: Uncaught exception in rendering thread
java.lang.RuntimeException: Cannot validate shader program:
Validation Failed: Current draw framebuffer is invalid.

	at [email protected]/processing.core.PGraphics.showException(PGraphics.java:8316)
	at [email protected]/processing.opengl.PShader.validate(PShader.java:945)
	at [email protected]/processing.opengl.PShader.init(PShader.java:902)
	at [email protected]/processing.opengl.PShader.getAttributeLoc(PShader.java:595)
	at [email protected]/processing.opengl.PShader.loadAttributes(PShader.java:1123)
	at [email protected]/processing.opengl.PGraphicsOpenGL.getPolyShader(PGraphicsOpenGL.java:7108)
	at [email protected]/processing.opengl.PGraphicsOpenGL.flushPolys(PGraphicsOpenGL.java:2378)
	at [email protected]/processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2315)
	at [email protected]/processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1480)
	at [email protected]/org.praxislive.video.pgl.PGLGraphics.endDraw(PGLGraphics.java:182)
	at [email protected]/processing.core.PApplet.handleDraw(PApplet.java:2499)
	at [email protected]/processing.lwjgl.PSurfaceLWJGL.handleDraw(PSurfaceLWJGL.java:1236)
	at [email protected]/processing.lwjgl.PSurfaceLWJGL.handleRun(PSurfaceLWJGL.java:1193)
	at java.base/java.lang.Thread.run(Thread.java:833)

This only affects Sidecar, on screen connected normally everything is just fine.

@neilcsmith-net
Copy link
Member

I'm not sure if there's anything we can do about this. Searching OpenGL and Sidecar brings up a whole bunch of issues.

I have no way of testing any of this. Only thing you might try is changing the renderer to GL2 or GLES on the video root and see if that changes anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants