implementing camera using ndk camera api, getting error [ImageReader-4208x3120f23u3m3-8785-0](id:225100000000,api:4,p:832,c:8785) connect: already connected (cur=4 req=2) #2087
Replies: 2 comments 3 replies
-
If you're looking for help from a Googler, the folks that know the APIs don't monitor this forum. I've sent the link on to one of them so hopefully they'll be along soon, but in general the best way to get the attention of the API experts is to file a framework bug via http://b.android.com. |
Beta Was this translation helpful? Give feedback.
-
Paraphrasing what the camera API expert told me over DM: That error happens when more than one thing writes to the same surface. cur =4 means it's connected to camera, and you're trying to draw into it via CPU (2). You're trying to draw into something that the camera is already drawing into. This is probably an architectural flaw in your app, but there's not enough context here to say much for certain. |
Beta Was this translation helpful? Give feedback.
-
ndk version : 25
I am trying to implement the preview of camera using ndk camera cpp api but I am unable to lock the window to set the preview.
Here are the logs I am getting
below is the code where I am trying to lock the screen:-
below is the step I am trying to perform after receiving frames:-
please help me with the same getting stuck to this since long time.
#UPDATE
please find the discussion for this problem here:- https://issuetracker.google.com/u/1/issues/372873691
Beta Was this translation helpful? Give feedback.
All reactions