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

Signal camera not working on Huawei phones

Open ajsteele opened this issue 7 years ago • 109 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 trying to take a picture to send within Signal using a Huawei Mate 10 Pro or a Huawei P20, a black screen is displayed with the shutter button and the square in the bottom left of existing pictures, but no camera image. On pressing back to return to the chat and trying again, Signal stops being responsive.

Steps to reproduce

  • Open a chat
  • Try to take a photo to send

Actual result: Black screen with camera UI but no image Expected result: Camera UI with a moving image of what the camera sees

Device info

Device: Huawei Mate 10 Pro, Huawei P20 Android version: 9.1 Signal version: 4.49.13

Link to debug log

https://debuglogs.org/b6f9596c588335d29eccc0851848d75b31ad9be16ee8a06e75de96286985e662

ajsteele avatar Oct 31 '19 17:10 ajsteele

Without a debug log the devs can do nothing, but guess. Please include one. Here is how to grab one: https://support.signal.org/hc/en-us/articles/360007318591-Debug-Logs-and-Crash-Reports#android_debug

rainerzufall avatar Oct 31 '19 18:10 rainerzufall

I have exported one and added it to the original comment. :)

ajsteele avatar Oct 31 '19 18:10 ajsteele

Can confirm this bug on P20pro with latest Android 9.1 and latest Signal 4.49.14. https://debuglogs.org/d4a4e8b68f53fa4d265c5a7e479966180d72f68a566b0b1f763234bb5096c1f6

dateaAT avatar Nov 02 '19 10:11 dateaAT

I reported this during the beta testing on the Signal Community and via the support email (no response from this at all). My phone is a Huawei P20 Pro and one of my debug logs is https://debuglogs.org/5f89fa4fbbaacbb78129c31801644c2ef00c403ba160a62ddf5724f7e4398ee7

vincemarsters avatar Nov 02 '19 12:11 vincemarsters

Mate 20 Pro same issue.

KyleNie avatar Nov 02 '19 17:11 KyleNie

FYI, this is NOT an issue on my Huawei Nexus 6P running stock Android 8.1.0. I use signal every day without picture and video issues. Just wanted to confirm that not ALL Huawei phones are impacted by this issue. Thanks

markwdickson avatar Nov 03 '19 14:11 markwdickson

One more with exactly same issue, Android 9.1, Signal app version 4.49.14, Huawei P20 Pro

BuzzMcWoof avatar Nov 04 '19 07:11 BuzzMcWoof

+1 Android 9.1 Signal 4.49.14 Huawei P20 Pro

entfernt avatar Nov 04 '19 07:11 entfernt

Same behavior here with Signal 4.49.14, Android 9.1.0 and a Honor 10. You can find my logs here: https://debuglogs.org/ac09b21c2d195269cf43e4d10ef368eb41d5bda7997551729f6a1ddba4589be3

hephtaicie avatar Nov 04 '19 12:11 hephtaicie

+1 for P30. To clarify, this is a regression that started happening after upgrading to 4.49.13 and 4.49.14. Camera worked fine on previous versions.

pabl0 avatar Nov 04 '19 16:11 pabl0

+1 Huawei Mate 10 As pabl0 said, this started after upgrading to 4.49.13 Log link below

https://debuglogs.org/511fa0393844537837bb6e7e7d861e4357b12f685901e6e58d61a652ff3fac23

Flyerone avatar Nov 04 '19 23:11 Flyerone

P20 is also in the list.

GAS85 avatar Nov 06 '19 12:11 GAS85

Tested on a P30 Pro, same behaviour.

Taipo avatar Nov 06 '19 18:11 Taipo

Tested with Huawei Mate 9 and it works fine: Android 9 (252C432, MHA-L29 9.1.0.252(C432E7R1P8)) Signal 4.49.18 (5652)

mlsxlist avatar Nov 09 '19 08:11 mlsxlist

Tested with P20 and P20 Pro... Still black screen.

GAS85 avatar Nov 09 '19 09:11 GAS85

Tested with Huawei Mate 9 and it works fine: Android 9 (252C432, MHA-L29 9.1.0.252(C432E7R1P8)) Signal 4.49.18 (5652)

You go my hopes up with the 4.49.18 update...sadly still fritz'd on Mate 10. It actually crashed and prompted a send feedback action when trying to use camera.

Flyerone avatar Nov 09 '19 11:11 Flyerone

Frustratingly, the camera works fine on the Huawei device I do have, the Huawei Mate 10 Lite. The logs aren't super helpful for tracking down something I could use to detect this more widely, and it does seem to work for some Huawei devices, so don't want to blanket-disable the new camera for all Huawei's.

Instead, I've taken down the list of phones you all have listed, and I've added them to a "new camera blacklist" that will cause you to fall back to our legacy camera. This change will go out in 4.50.x, which is likely releasing to beta soon. If you're still experience the problem, or you have a model that hasn't been listed here, please post a debug log (your phone model info is in the log).

So far, I've blacklisted the following:

  • Huawei Mate 10
  • Huawei Mate 10 Pro
  • Huawei Mate 20
  • Huawei Mate 20 Pro
  • Huawei P20
  • Huawei P20 Pro
  • Huawei P30
  • Huawei P30 Pro
  • Huawei Honor 10

In the meantime, a temporary workaround would be to hit the '+' button in the compose bar and select the external camera option. This will link to your system camera.

greyson-signal avatar Nov 11 '19 23:11 greyson-signal

Thank you for working on this, @greyson-signal. Even a workaround helps.

I think the difference between your device and the ones having problems is that Mate 10 Lite only has a single main camera and not dual/triple. Multiple main cameras are very common in modern higher end phones. But this issue does not happen on other manufacturer's multi-camera devices?

pabl0 avatar Nov 12 '19 05:11 pabl0

Hello, I also have the issue on my Honor 10. Android 9 - EMUI 9.1.0 Thanks for the workaround anyway !

sACLeFR avatar Nov 13 '19 14:11 sACLeFR

Hi.

I wanted to chip in. I have the same issue with my Mate 10 Pro.

See log here: https://debuglogs.org/8fcb16c1a48aa40b9d7fb13e57627c7ab76aeb6bbd5958d8eb427e4e20416ca2

I found this line in the log: 2019-11-13 09:29:37.765 CET E VideoCapture: AudioRecord object cannot initialized correctly!

It's found almost at the end of my log.

@greyson-signal I hope above may help figuring out the issue.

Thank you! :)

EchersMedia avatar Nov 13 '19 14:11 EchersMedia