Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Incorrect camera preview after changing device orientation

Open minnmann opened this issue 6 years ago • 5 comments

  • [X] I have searched open and closed issues for duplicates
  • [X] I am submitting a bug report for existing functionality that does not work as intended
  • [X] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
  • [X] This isn't a feature request or a discussion topic

Bug description

When Signal shows the camera preview and I rotate it (e.g. from portrait to landscape), the camera preview gets screwed up. I.e., it only shows the bottom part (?) of the actual image. The same happens vice versa, i.e. starting from landscape and rotating to portrait.

(This behavior was also at least present on 4.78)

Steps to reproduce

  • Use the in-app camera
  • Rotate the device (e.g. portrait to landscape)

Actual result: The camera preview shows an incomplete (and mostly unusable) image. Expected result: The camera preview should be the same (or as similar as possible) to the actual image.

Screenshots

  1. Phone in portrait orientation --> correct: signal-2020-12-01-110710

  2. Preview after changing it to landscape: signal-2020-12-01-110705

  3. Image captured in landscape (very different from preview): signal-2020-12-01-110619

Device info

Device: Google Pixel 4 Android version: 11 Signal version: 4.79.0

Link to debug log

https://debuglogs.org/15ba6068693239e9d7d0b7db1b7840418c9a714a311ec795d3205e872d8af418

minnmann avatar Dec 01 '20 10:12 minnmann

After having installed the latest Android update as well as Signal 5.0.1, I just want to ask if there is anything I can help, or provide additional details, logs, instructions, screenshots etc.

I would very much appreciate this issue to be fixed, as it currently renders the in-app camera basically useless for me. Thanks!

minnmann avatar Dec 08 '20 09:12 minnmann

Can confirm I still have this in 5.0.8 on a Google Pixel 4 XL with Android 11 (Dec 2020 update).

For me, the preview is not just a different angle but completely distorted / squeezed before taking the picture:

Screenshot_20210108-154557

nicolaus-hee avatar Jan 08 '21 14:01 nicolaus-hee

Have this on Mi 9 Miui 12 Android 10. Signal 5.4.12

xcruzix avatar Mar 08 '21 08:03 xcruzix

Same issue here.

Honor COL-L29 Huawei EMUI 10.0.0, Android 10 Signal 5.21.6

kenwoodken avatar Sep 02 '21 20:09 kenwoodken

Can't reproduce any more (at least on Android 12 with Signal 5.28.5). Closing it for now. If anybody still sees this issue, please feel free to reopen.

minnmann avatar Dec 20 '21 10:12 minnmann