-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Cannot take picture on Galaxy S2 #4899
Comments
This is related to #4637, also a Samsung Galaxy S2 related Camera problem. BTW the front camera works for me. |
Yes, the front camera works for me too. |
Also related to #3752 |
This should make it easier to debug signalapp#4899.
should help debugging signalapp#4899 closes signalapp#4941 //FREEBIE
@jochenberger could you please build and run the 3.9.0 branch and post a debug log? |
java.io.IOException: provided width and height don't jive with the data length (1382400). Width: 800 height: 480 = data length: 576000 |
This seems to happen on the Galaxy S2 on CM only, so maybe @Lysergic-Acid has a clue. |
I may have a clue on this, but I'm not even sure what this project is about lol |
@Lysergic-Acid it's a secure messaging application for Android. There's an option to take pictures with the phone's camera. This doesn't work with the i9100 on CM (12.1 in my case). Apparently, the data cannot be decoded because the number of bytes that is returned from the system does not match the expected number of bytes (hence the error message). The expected number is 576000 but the actual number is 1382400. This happens for previewFormat: 17, though I'm not sure what that means. ;-) |
This is so weird. The camera HAL has a function to gather the byte amount sent to the system, before it was a fixed value always bigger than necessary lol I gotta check what case the "previewFormat 17 is choosen and why only this app has issues with it |
CM13 (alpha 6) provides some more information:
The |
Probably related to https://jira.cyanogenmod.org/browse/CYAN-6320 and https://jira.cyanogenmod.org/browse/CYAN-7358 |
@Lysergic-Acid does that help you? |
Log when taking a picture with the front camera (works fine):
|
…inuous-video Change-Id: I5f7bdfa3968c94354c51610aaaf23cfcaffde2d4
I think your problem is the "Recording-hint". It is possibly specified with "true" in the camera-parameters. (Be aware that the logcat truncates your debugline of exynos_camera_params_apply). According to your logcat I see the focus-mode is set to continuous-video, so Recording-hint is true. When Recording-hint is true, your specifed "preview-size"-parameter is kind of ignored. A routine is executed which determines the best size with the same aspect ratio. I'm not sure it actually works....: https://github.com/CyanogenMod/android_device_samsung_galaxys2-common/blob/cm-13.0/camera/exynos_camera.c#L680 To bypass the routine, you need to set the "Recording-hint" to "false". It will result in lower preview-fps because the camera is set in 'picture-mode'. When you set your preview-size to 800x480 it will actually use this resolution. |
@rINanDO Thanks for the explanation. I wonder why it seems to work with all other kinds of devices though. |
Seems that the latest CM13 release fixes this problem - rear camera is working for me 😃 |
@lukeIam I can confirm this. The nightly from August 18th works for me. |
Hi, |
GitHub Issue Cleanup: |
It's not possible to take a picture on a Galaxy S2 i9100. logcat shows:
The text was updated successfully, but these errors were encountered: