Comments (7)
i can confirm this (also on LG G3). I cloned the repo to see what's going on, but in debug mode everything works as expected. This seems to be a proguard issue => crash log in dev console
from camerakit-android.
I've seen the same issue on my Nexus 5 (4.4) and Note 5 (6.0). It looks like the culprit is Camera1:261:
AspectRatio targetRatio = aspectRatios.size() > 0 ? aspectRatios.last() : null;
which throws:
at java.util.TreeMap.lastKey(TreeMap.java:630)
at java.util.TreeSet.last(TreeSet.java:272)
at com.flurgle.camerakit.Camera1.getPreviewResolution(Camera1.java:261)
I'm not sure how aspectRatios.last()
could throw an exception if the TreeSet has entries.
from camerakit-android.
@ThomasKomarnicki you see this on the app downloaded from Google Play right? That exception should be resolved in the library.
from camerakit-android.
yes it's only happening in the demo downloaded from Google Play, I cloned the repo and ran the most up to date version and it is no longer happening
from camerakit-android.
@dwillmc ah I found the commit where you fixed it, should be fine then..
from camerakit-android.
If you're curious, it happens due to me wrongly assuming that there will always be matching aspect ratios available when comparing the set of available preview sizes and available picture capture sizes.
from camerakit-android.
An update was just pushed which should rollout in the next few hours and fix this problem.
Please re-open if you get the update and it still doesn't work!
from camerakit-android.
Related Issues (20)
- Activity open from screenlock won't show viewfinder
- Android Layout change issue
- Android 11
- Error: Failed to resolve: com.flurgle:camerakit:0.9.17
- JCenter is shutting down HOT 2
- how can i zoom in and zoom out with CameraKit?
- is this sdk deprecated HOT 2
- Capture Image Callback is not call
- Video recording not getting store with android 11
- Camera
- 11
- 1
- Can't use CameraKit HOT 2
- Integrate into camera app HOT 1
- video can compressed?
- Could not resolve com.camerakit:camerakit:1.0.0-beta3.10 HOT 34
- Could not resolve com.wonderkiln:camerakit:0.13.0. HOT 1
- Failed to resolve: com.wonderkiln:camerakit:0.13.5 HOT 8
- ModuleVersionNotFoundException
- CapmerapKit/camerakit-android HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camerakit-android.