```Error: Could not find or load main class org.gr...
# compose-ios
m
Copy code
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
think you just need to run
gradle wrapper
I don't have gradle installed on my machine atm
just get you to commit the
gradle-wrapper.jar
and I can have another little poke around
right found another wrapper and it got it building
interestingly even if using
preferredFramesPerSecond
to just one frame a second, it's reaches
EXC_BAD_ACCESS
by 11 frames:
Copy code
setView(GLKView().apply {
    paused = true
    preferredFramesPerSecond = 1
did try look look for a way to synchronize with the Skia rendering pipeline by manually triggering
setNeedsDisplay
Copy code
DisposableEffect(frameCount) {
        // Trigger redraw on the GLKView manually by using the stored ViewController reference
        viewController.view?.let { glkView ->
            if (glkView is GLKView) {
                glkView.setNeedsDisplay()
            }
        }
        onDispose { }
    }
frame count did get up to 595 before faulting again
j
Sorry for the delayed response. Thanks for looking into it. Interesting idea to try one frame per second and it still dies after ~10 seconds. I didn't think about syncing that way with the rendering pipeline, very interesting!
I have been wondering if it is due to this: "Your drawing method should only modify the contents of the framebuffer object. Never attempt to read the pixel information from the underlying framebuffer object, modify or dispose of the framebuffer object, or read its other properties by calling OpenGL ES functions. Instead, rely on the properties and methods provided by the GLKView class."
That does refer to only the drawing method, but it could indicate that it has assumptions about the state of the framebuffer and that Skia is messing with its assumptions.
I will hopefully get a chance to play around with Metal-based GLKView in the next few weeks.
m
no worried, curious to follow
didn't see the OpenGL error you mentioned, but suppose you could remove the functions it's complaining about and still have the render ticking over to see if it still occurs
not looked into how to intercept the skia render loop, but thought might share this article if of interest: https://medium.com/@mmartosdev/pushing-the-boundaries-of-compose-multiplatform-with-agsl-shaders-d6d47380ba8a