Git Product home page Git Product logo

Comments (4)

yaoliu1025 avatar yaoliu1025 commented on May 5, 2024 1

Hello! I am facing the exact same issue on the same phone. I believe it is indeed a shared context problem. Because if I change the sharedContext here https://github.com/google/grafika/blob/master/src/com/android/grafika/TextureMovieEncoder.java#L385 to EGL14.eglGetCurrentContext(), then the camera opens (however the recording seems to be broken still, because there is no image, just sound). I don't really know how to work around the problem by not using shared context correctly? Could anyone please provide any help? Thanks a lot!

from grafika.

275288698 avatar 275288698 commented on May 5, 2024

i hava search the error code 0x3009 mean:
EGL_BAD_MATCH is generated if the current rendering API is EGL_NONE (this can only arise in an EGL implementation which does not support OpenGL ES, prior to the first call to eglBindAPI).

EGL_BAD_MATCH is generated if the server context state for share_context exists in an address space which cannot be shared with the newly created context, if share_context was created on a different display than the one referenced by config, or if the contexts are otherwise incompatible.

from grafika.

fadden avatar fadden commented on May 5, 2024

If you're running the stock version of Grafika then I would guess it's a problem with that specific device. Sounds like the handling of shared EGL contexts is broken.

The HUAWEI P6-U06 appears to use a Vivante GPU. I've seen some strange things from them in the past, e.g. this post and this post.

You can work around the problem by not using shared contexts, something I recommend anyway (see #36).

from grafika.

275288698 avatar 275288698 commented on May 5, 2024

thanks,fadden, and i will try it

from grafika.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.