Closed Bug 1045332 Opened 10 years ago Closed 10 years ago

[QRD KK Only] After 5 minutes of camera usage, homescreen can no longer be launched

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
critical

Tracking

(blocking-b2g:2.0+)

RESOLVED WORKSFORME
blocking-b2g 2.0+

People

(Reporter: ggrisco, Assigned: mikeh)

References

Details

(Whiteboard: [caf priority: p1][CR 700028])

[Blocking Requested - why for this release]:

Steps to Reproduce:

1. Start camera
2. Switch to video mode
3. record video for 5 minutes or so
4. Stop recording
5. Press the Home button

Expectation:  homescreen should be displayed
Actual Result:  Camera app remains as the current app and the app is still functional.  Repeated presses of home button do not bring up homescreen, neither does holding the home button key.
Can we get about:memory and logcat for this?
Keywords: qawanted
Hema, mike, this sounds like we are leaking something in the parent when we use the camera.
Flags: needinfo?(mhabicher)
Flags: needinfo?(hkoka)
Whiteboard: [CR 700028] → [caf priority: p1][CR 700028]
I just tried tracking this with my USS plotter, and found that the Camera app and mm-qcamera-daemon blow up after about an hour of recording. See bug 1045704.

Will try to reproduce with DMD enabled to get some visibility into what's going on.
Flags: needinfo?(mhabicher)
blocking-b2g: 2.0? → 2.0+
Component: Gaia::Homescreen → Gaia::Camera
Thanks mike for the quick check!
Mike, is this same as what Andrew encountered https://bugzilla.mozilla.org/show_bug.cgi?id=1039654 (JB specific per Inder/Mike?) Please investigate
Assignee: nobody → mhabicher
Flags: needinfo?(hkoka) → needinfo?(aosmond)
(In reply to Hema Koka [:hema] from comment #5)
>
> Mike, is this same as what Andrew encountered
> https://bugzilla.mozilla.org/show_bug.cgi?id=1039654 (JB specific per
> Inder/Mike?) Please investigate

Sure sounds like it. I guess we'll have to wait for Flame/KK before we know for sure.
Although, for now, I can at least run DMD on Gecko to see what's leaking in the Camera app.
(In reply to Hema Koka [:hema] from comment #5)
> Mike, is this same as what Andrew encountered
> https://bugzilla.mozilla.org/show_bug.cgi?id=1039654 (JB specific per
> Inder/Mike?) Please investigate

Our testing is being done on KK based build and on KK build we did not encounter bug 1039654 so it can't be that issue.
(In reply to Mike Habicher [:mikeh] from comment #6)
> (In reply to Hema Koka [:hema] from comment #5)
> >
> > Mike, is this same as what Andrew encountered
> > https://bugzilla.mozilla.org/show_bug.cgi?id=1039654 (JB specific per
> > Inder/Mike?) Please investigate
> 
> Sure sounds like it. I guess we'll have to wait for Flame/KK before we know
> for sure.

Mike: Viral has been very helpful in getting his QRD up with a KK 2.0 build to reproduce some of the KK specific issues (though that QRD has a different chip). 

If we dont get a KK Flame build by end of today, please NI viral to try this on his QRD and collect logcat/about:memory. While you investigate a similar issue that you are seeing on flame with 1 hr recording.

Thanks
Hema

Thanks
Hema
This issue doe snot reproduce on the latest Flame 2.0 build.  The homescreen loaded just fine after recording for 5 minutes or more.

Environmental Variables:
Device: Flame 2.0
BuildID: 20140730080807
Gaia: e8425788e0372fbbcc40387b799f0636c041fc14
Gecko: 20c472fc0ee3
Version: 32.0 (2.0) 
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(jmitchell)
Keywords: qawanted
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Viral,

Could you please help check on the QRD (with KK) that you have and see if you are able to reproduce this issue and provide logs/about:memory while Mike is also investigating on his Flame. 

Thanks a lot!
Hema
Flags: needinfo?(aosmond) → needinfo?(vwang)
Summary: After 5 minutes of camera usage, homescreen can no longer be launched → [QRD KK Only] After 5 minutes of camera usage, homescreen can no longer be launched
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
Inder,

Could you please help provide logcat/about:memory as well so we can make some progress here?

Thanks
Hema
Flags: needinfo?(ikumar)
NI Greg per Inder's request.
Flags: needinfo?(ikumar) → needinfo?(ggrisco)
I was trying on latest build last Friday and wasn't seeing the same behavior.  Can bug 1045704 (from comment 3) still be reproduced?
Flags: needinfo?(ggrisco)
Flags: needinfo?(mhabicher)
I can not used video in QRD8226.
Once I switch camera to video mode, the preview screen is hung and I can't use any icon on the screen :(
Flags: needinfo?(vwang)
Something different happens with Flame KK. Using the v162-3 KK base image with latest Gecko/Gaia (master, v2.1), when you stop recording, the Camera app crashes and you return to the homescreen. I first tried recording for 5 minutes and when that crashed I tried again for 5 seconds and it still crashed. There seems to be some strangeness with the camera hardware in general though on Flame KK (no focus, strange bright areas of the viewfinder).
Justin, does it get LMKed on the KK build?

# adb shell dmesg | grep sigkill

If you limit the Flame to 319MB, what is the output of /proc/meminfo?

# adb shell cat /proc/meminfo
Flags: needinfo?(mhabicher) → needinfo?(jdarcangelo)
Greg: 

I've got some questions for you about this bug.

First of all, is this a 256mb device you're testing on?

Next: is this bug reproducible consistently or is it intermittent?

> 
> 1. Start camera
> 2. Switch to video mode
> 3. record video for 5 minutes or so

Have you tried for shorter lengths?  

> 4. Stop recording
> 5. Press the Home button

Does your device have a soft home button or a hardware button?

If you long press on the button, to bring up the task manager, do you at least feel the vibration that it does before bringing up the task manager.

Do the volume keys work when the phone is in this state, or are they disabled, too?

> 
> Expectation:  homescreen should be displayed
> Actual Result:  Camera app remains as the current app and the app is still
> functional.  Repeated presses of home button do not bring up homescreen,
> neither does holding the home button key.
Flags: needinfo?(ggrisco)
It would also be interesting to know what the cpu usage is when the camera gets stuck like this.

When recording stops, the red dot in the status bar is removed, but the status bar is not visible in the camera. Bug 1038998 is seeing weird statusbar related behavior. And there was some other bug I saw recently where turning airplane mode (affecting statusbar) on while launching the camera (hiding the status bar) caused problems...  It is just a hunch, but I wonder if there's something wrong in the status bar code.

And, if the camera app keeps functioning, can you get it out of this state?  Preview videos or take still pictures or something? Can you ever get the home button to work again?
(In reply to David Flanagan [:djf] from comment #18)

> First of all, is this a 256mb device you're testing on?

Yes, this is 256Mb.

> Next: is this bug reproducible consistently or is it intermittent?

At the time it was consistent.  Although I tried again just now on recent build and I can't reproduce it anymore.

> > 3. record video for 5 minutes or so
> 
> Have you tried for shorter lengths?  

Originally, tester had reported it after 5 minutes of recording, but I reproduced it after 30 seconds.

> Does your device have a soft home button or a hardware button?

It has a hardware button.

> If you long press on the button, to bring up the task manager, do you at
> least feel the vibration that it does before bringing up the task manager.

I remember that I could still feel the vibration even though homescreen wouldn't come up.

> Do the volume keys work when the phone is in this state, or are they
> disabled, too?

I didn't try that, so can't say since I can't reproduce anymore.



I'll go ahead and close this now.  If the problem reproduces, I'll try to answer your questions here and from comment 19 as well.  Thanks.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ggrisco)
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I will create a new bugid
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → WORKSFORME
Clearing NI?, also unable to reproduce with latest v165 KK base build.
Flags: needinfo?(jdarcangelo)
You need to log in before you can comment on or make changes to this bug.