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

java.lang.IllegalArgumentException #28

Closed
FIndustries opened this issue May 23, 2017 · 4 comments
Closed

java.lang.IllegalArgumentException #28

FIndustries opened this issue May 23, 2017 · 4 comments
Assignees
Labels

Comments

@FIndustries
Copy link

FIndustries commented May 23, 2017

I get a lot of crashlogs on devices with Android 4.2 and 4.4 (most are Samsung):

java.lang.IllegalArgumentException: 
  at io.fotoapparat.parameter.provider.InitialParametersValidator.validate(c.java:0)
                                                                  validateParameter
  at io.fotoapparat.parameter.provider.InitialParametersValidator.validate(c.java:0)
                                                                  validateParameter
  at io.fotoapparat.parameter.provider.InitialParametersProvider.initialParameters(b.java:0)
                                                                 putPreviewSize
                                                                 photoSize
  at io.fotoapparat.routine.StartCameraRoutine.run(d.java:0)
  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'm only using this code:

fotoapparat = Fotoapparat
                    .with(this)
                    .into(cameraView)
                    .lensPosition(front())
                    .build();
@Diolor
Copy link
Member

Diolor commented May 23, 2017

Hi @FIndustries ! Can you please put the full stacktrace and, if possible, non-obscufied?

@Diolor Diolor self-assigned this May 23, 2017
@FIndustries
Copy link
Author

Unfortunately this is what I have.
It's from Google Play Developer Console.

@dmitry-zaitsev dmitry-zaitsev self-assigned this May 24, 2017
@dmitry-zaitsev
Copy link
Member

dmitry-zaitsev commented May 24, 2017

I might have an idea what is the reason behind the crash. Will fix it asap and publish a new version.

@dmitry-zaitsev
Copy link
Member

The issue should be fixed now. Try updating to 1.0.1.

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

3 participants