Android Question CamEx2 IllegalArgumentException: CaptureRequest contains unconfigured Input/Output Surface!

DonManfred

Expert
Licensed User
Longtime User
I´m getting a problem in using CamEx2.


I can´t find the problem. Any hints?

If it is Relevant: Device is Samsund Note 8, Android 8.0
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Thank you for your Like, @Erel.

I checked the PreviewSize.
- The Default Size IS supported.
- I tried to use other values (from the list of supported sizes). No change
Maybe it was not clear.

I should have written
But unfortunately no change. The Error still happen.

Not solved as of now.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
When exactly does the error happen?
in PrepareSurface resp. in Camera.StartSession


Are you in still mode?
Erm... I don´t know? What is "Still mode"?

Do you see the preview frames?
No.

What happens if you change line 94 to:
The same error

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I ran the example without changes.

After Permissionrequest i took a picture. This was successfully.

Then i clicked on the button to change the mode. It then crashes with the same error.


If it is relevant: i am using the Activity in my App in forced Landscape mode using
B4X:
SetActivityAttribute(CaptureVideo, android:screenOrientation, "landscape")
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Thank you!

I did try it with the unchanged camex2 example.
It does work on my Note 8. Picture and Video can be captured. No error happens.

i´ll try it tomorrow in my app when i´m at work again. It is an App for the company and i do not have the source here at my home. So for now i could only test with the camex2. But i can confirm that v1.11 does work with it. I´ll report the result here tomorrow nut i expect it to work as in camex2,
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I´m at work now.
As Expected, it does work in my app at work.

I just updated the internal library, did a new Compile and the Video Record is working even in my App (not in CamEx Source).

Great. Seems like this long time issue is solved.
What was the problem then?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…