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

Java 8 bug: NoSuchMethodError: java.nio.FloatBuffer.position(I) #537

Open
xian opened this issue Jul 29, 2023 · 0 comments
Open

Java 8 bug: NoSuchMethodError: java.nio.FloatBuffer.position(I) #537

xian opened this issue Jul 29, 2023 · 0 comments

Comments

@xian
Copy link
Member

xian commented Jul 29, 2023

See https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/

java.lang.NoSuchMethodError: java.nio.FloatBuffer.position(I)Ljava/nio/FloatBuffer;
	at com.danielgergely.kgl.FloatBuffer.<init>(Buffer.kt:24)
	at baaahs.gl.render.Quad.bufferOf(Quad.kt:33)
	at baaahs.gl.render.Quad.<init>(Quad.kt:22)
	at baaahs.gl.render.ModelRenderEngine$Arrangement.<init>(ModelRenderEngine.kt:182)
	at baaahs.gl.render.ModelRenderEngine$1.invoke(ModelRenderEngine.kt:53)
	at baaahs.gl.render.ModelRenderEngine$1.invoke(ModelRenderEngine.kt:53)
	at baaahs.gl.LwjglGlManager$LwjglGlContext.runInContext(LwjglGlManager.kt:39)
	at baaahs.gl.render.ModelRenderEngine.<init>(ModelRenderEngine.kt:53)
	at baaahs.gl.render.ModelRenderEngine.<init>(ModelRenderEngine.kt:20)
	at baaahs.gl.render.RenderManager$renderEngines$1.invoke(RenderManager.kt:15)
	at baaahs.gl.render.RenderManager$renderEngines$1.invoke(RenderManager.kt:14)
	at baaahs.util.CacheBuilder.get(CacheBuilder.kt:13)
	at baaahs.util.CacheBuilder.getBang(CacheBuilder.kt:16)
	at baaahs.gl.render.RenderManager.engineFor(RenderManager.kt:21)
	at baaahs.gl.render.RenderManager.addFixture(RenderManager.kt:32)
	at baaahs.fixtures.FixtureManagerImpl.addFixture(FixtureManager.kt:104)
	at baaahs.fixtures.FixtureManagerImpl.incorporateFixtureChanges(FixtureManager.kt:78)
	at baaahs.fixtures.FixtureManagerImpl.maybeUpdateRenderPlans(FixtureManager.kt:127)
	at baaahs.ShowRunner.housekeeping(ShowRunner.kt:57)
	at baaahs.sm.server.StageManager.housekeeping(StageManager.kt:137)
	at baaahs.sm.server.StageManager.renderAndSendNextFrame(StageManager.kt:126)
	at baaahs.sm.server.StageManager.renderAndSendNextFrame$default(StageManager.kt:114)
	at baaahs.Pinky$run$2$elapsedMs$1.invokeSuspend(Pinky.kt:111)
	at baaahs.Pinky$run$2$elapsedMs$1.invoke(Pinky.kt)
	at baaahs.Pinky$run$2$elapsedMs$1.invoke(Pinky.kt)
	at baaahs.UtilKt.time(util.kt:99)
	at baaahs.UtilKt.time(util.kt:96)
	at baaahs.Pinky$run$2.invokeSuspend(Pinky.kt:109)
	at baaahs.Pinky$run$2.invoke(Pinky.kt)
	at baaahs.Pinky$run$2.invoke(Pinky.kt)
	at baaahs.UtilKt.throttle(util.kt:144)
	at baaahs.UtilKt.throttle$default(util.kt:141)
	at baaahs.Pinky.run(Pinky.kt:102)
	at baaahs.Pinky.access$run(Pinky.kt:31)
	at baaahs.Pinky$run$1.invokeSuspend(Pinky.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
@xian xian changed the title Java 8 bug: Java 8 bug: NoSuchMethodError: java.nio.FloatBuffer.position(I)Ljava/nio/FloatBuffer Jul 29, 2023
@xian xian changed the title Java 8 bug: NoSuchMethodError: java.nio.FloatBuffer.position(I)Ljava/nio/FloatBuffer Java 8 bug: NoSuchMethodError: java.nio.FloatBuffer.position(I) Jul 29, 2023
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

1 participant