Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash version 1.0.0 #31

Closed
markGilchristBookingBug opened this issue May 25, 2017 · 3 comments
Closed

Crash version 1.0.0 #31

markGilchristBookingBug opened this issue May 25, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@markGilchristBookingBug

Fatal Exception: java.lang.IllegalArgumentException: Opened camera does not support the selected focus_mode options.
at io.fotoapparat.parameter.provider.InitialParametersValidator.validateParameter(InitialParametersValidator.java:31)
at io.fotoapparat.parameter.provider.InitialParametersValidator.validate(InitialParametersValidator.java:24)
at io.fotoapparat.parameter.provider.InitialParametersProvider.initialParameters(InitialParametersProvider.java:52)
at io.fotoapparat.routine.StartCameraRoutine.run(StartCameraRoutine.java:41)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

I am getting this on 1.0.0, if it now fixed then I am sorry to bother you

@dmitry-zaitsev
Copy link
Member

Please post here how you are creating Fotoapparat instance.

@markGilchristBookingBug
Copy link
Author

markGilchristBookingBug commented May 25, 2017

  private void initCamera() {
        if (!checkCameraHardware(getContext()) || isInitialised) return;
        fotoapparat = Fotoapparat
                .with(getContext())
                .into(cameraView)
                .photoSize(biggestSize())
                .lensPosition(back())
                .focusMode( firstAvailable(  // (optional) use the first focus mode which is supported by device
                        continuousFocus(),
                        autoFocus(),         // in case if continuous focus is not available on device, auto focus will be used
                        fixed())             // if even auto focus is not available - fixed focus mode will be used
                )
                .build();
        isInitialised = true;
}


 @Override
 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        initCamera();
}

@dmitry-zaitsev dmitry-zaitsev self-assigned this Jun 7, 2017
@dmitry-zaitsev
Copy link
Member

Fixed (hopefully) and should be rolled out in 1.0.2 within a day or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants