ananjaser1211 / FloydQ_Reports

BUG Reporting for Exynos8890 OneUI 2.0 Project
58 stars 7 forks source link

[BUG] Camera crashes during video calls (Whatsapp, Duo) #182

Closed jiyojolly closed 3 years ago

jiyojolly commented 4 years ago

Describe the bug The camera crashes and stops working during video calls (WhatsApp, Duo, etc.). The issue persists until the phone restarts. Both apps show error messages saying 'Device camera has stopped working. Please restart the phone...' The main camera app (for photography) still works with no issues though.

To Reproduce Steps to reproduce the behavior:

  1. Make video call using any video calling app (WhatsApp or Duo)
  2. Continue call for 5 - 10 mins.
  3. Camera crashes sometimes showing green background
  4. Further attempts at video calls show 'camera not responding' error

Expected behavior Normal video calls using any popular video calling apps

Screenshots None

Smartphone (please complete the following information):

Additional context None.

ananjaser1211 commented 4 years ago

Can you please start logging until it crashes. we had one report of this bug but we are unable to recreate it at all on whatsapp or imo with calls upto 30 mins sessions

jiyojolly commented 4 years ago

Since it is very random, I will try my best to grab a log.

ananjaser1211 commented 4 years ago

Since it is very random, I will try my best to grab a log.

Can you download AIDA64 And send a screen shot from the devices tab (the one that shows what camera sensor you have)

On V3 or V4 it's fine

jiyojolly commented 4 years ago

I managed to grab some logs. logcat_09-03-2020_08-41-22.txt And also here are the screenshots you asked for. Screenshot_20200903-084906_AIDA64 Screenshot_20200903-084902_AIDA64

kathir28 commented 4 years ago

This behaviour also happends when using snapchat (green camera or black). FloydQ V4 S7 FLAT SM-G965F Screenshot_20200922-084011_AIDA64

arkgnan commented 4 years ago

i get same issue, green camera when use whatsapp video call, and it happen randomly

SkyrilHD commented 4 years ago

How long do you have to video call to have a green camera? Because when I tried to reproduce this issue, I video called myself for nearly 35 minutes and couldn't reproduce it.

I will try video calling myself again today and see if I can reproduce it

arkgnan commented 4 years ago

How long do you have to video call to have a green camera? Because when I tried to reproduce this issue, I video called myself for nearly 35 minutes and couldn't reproduce it.

I will try video calling myself again today and see if I can reproduce it

only 5-10 minutes, mine S7 flat too, csc XID

arkgnan commented 4 years ago

When it happen, I must restart my phone to make the camera work again on video call. Close the app (whatsapp) don't make any difference. And I get this issue only in v4

arkgnan commented 4 years ago

I don't have log, but I hope this screenshot can explain the issue 20200925_194948

kathir28 commented 4 years ago

camera.txt

Here's a log

matinzd commented 4 years ago

+1 20200928_103427

Maitre2Citrouille commented 4 years ago

Hello,

I've got same issue on S7 flat, Floyd V4.0, after 10 minutes: video flux freeze, became dark, then black, then green. And the other user in the videocall have a message "poor connection" instead of my video.

Then, must restart the phone to re-activate the video call ability.

And sorry, english is not my maternal langage.

SypeR54 commented 4 years ago

@Sora0605 As i tested over hours of calls, it only crashed if battery cant supply the camera hardware to process data. Unless it works fine. Can you check your battery amount?

matinzd commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

Maitre2Citrouille commented 4 years ago

@Sora0605 As i tested over hours of calls, it only crashed if battery cant supply the camera hardware to process data. Unless it works fine. Can you check your battery amount?

Hello, We were 3 users videocalling. At start of the call, battery was about approximately 53%. At end of the call, battery was about approximately 40% Total duration of the call was 28'40'', but after 10' approximately my video flux has stopped. I stayed online, only with the audio flux until end of call.

arkgnan commented 4 years ago

I think this is critical issue. I know you and all tester didn't get this issue. but now, more user say get this. and it is random. most of the comment in this issue report is S7 Flat. and yes, its make us frustrating. please make more attention for this issue before release new version

ananjaser1211 commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

It is related to the FDSAN patch that was applied in V4. Didn't pin as a fix exists. But not one that suites me. It will bring back the random camera crash from before

A temporary solution is to copy rom.zip/floyd/vendor/lib/libexynoscamera3.so (and the one in lib64)

Under the same path in 4

matinzd commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

It is related to the FDSAN patch that was applied in V4. Didn't pin as a fix exists. But not one that suites me. It will bring back the random camera crash from before

A temporary solution is to copy rom.zip/floyd/vendor/lib/libexynoscamera3.so (and the one in lib64)

Under the same path in 4

Copy where? Could you please explain more? Again I had this issue on lineage os 17.1 too.

ananjaser1211 commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

It is related to the FDSAN patch that was applied in V4. Didn't pin as a fix exists. But not one that suites me. It will bring back the random camera crash from before A temporary solution is to copy rom.zip/floyd/vendor/lib/libexynoscamera3.so (and the one in lib64) Under the same path in 4

Copy where? Could you please explain more? Again I had this issue on lineage os 17.1 too.

copy it to either floydv4zip/floyd/vendor/lib (do the same for lib64)

or in twrp copy it to /system/system/vendor/lib/

it exists in lineage 17 too because we use the same patch for the FDSAN crash, which fixes a bug but causes this bug too.

arkgnan commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

It is related to the FDSAN patch that was applied in V4. Didn't pin as a fix exists. But not one that suites me. It will bring back the random camera crash from before

A temporary solution is to copy rom.zip/floyd/vendor/lib/libexynoscamera3.so (and the one in lib64)

Under the same path in 4

If I do that temp solution, is that me get previous camera issue?

ananjaser1211 commented 4 years ago

I had this problem even I had 90% of battery and that does nothing to do with the battery. I think the kernel is the problem because I had this issue on AOSP Q Rom too and only on Q version @SypeR54. It is random sometimes it crashes after 1 hour even with a low amount of battery and sometimes after 5 minutes with a high amount of battery. This is so frustrating and I don't know why @ananjaser1211 did not pin the issue! I have this issue on S7 Edge.

It is related to the FDSAN patch that was applied in V4. Didn't pin as a fix exists. But not one that suites me. It will bring back the random camera crash from before

A temporary solution is to copy rom.zip/floyd/vendor/lib/libexynoscamera3.so (and the one in lib64)

Under the same path in 4

If I do that temp solution, is that me get previous camera issue?

It will give you the old issue where the camera would stop working after ~12 hours of uptime approximately and require a reboot.

Which also accelerates if you use the camera more often. So your usage will vary

irfankhokhar commented 4 years ago

Same problem for me. S7 edge

ananjaser1211 commented 4 years ago

The green screen video bug will no longer be an issue with V5, however it will bring back #140 most likely

ive added few mitigations for it, so far no reports of fdsan crashes, lets see how it goes