sparklemotion icon indicating copy to clipboard operation
sparklemotion copied to clipboard

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

Open xian opened this issue 1 year ago • 0 comments

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 avatar Jul 29 '23 23:07 xian