Closed Bug 796294 Opened 12 years ago Closed 12 years ago

[camera][gallery] continual switching between gallery and camera will crash the camera app and cause a grey screen to appear; pipe error (162): Connection reset by peer

Categories

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

defect

Tracking

(blocking-basecamp:+)

VERIFIED WORKSFORME
blocking-basecamp +

People

(Reporter: ghtobz, Assigned: kanru)

Details

(Whiteboard: [label:gallery][label:camera][label:system])

[GitHub issue by nhirata on 2012-09-27T23:26:29Z, https://github.com/mozilla-b2g/gaia/issues/5350]
## Environment :
Otoro phone, build 2012-09-27 us
Taken from default.xml in b2g-distro: 
* "platform_build" revision= 795261940c8b11fb7dddd7a8e9dd8561fdc4fb64
* "gaia" revision= c2af81f97538b34dcd5fe1a2b4a4f1313a41c3b6 
* "releases-mozilla-central" revision= c9e7a6bb03c04e83ce3a2c0cffffd0c69e951430
* "gonk-misc" revision= 602d9b3ef9b6afbc0b93bfedcf3d3196372743e1
  
## Repro :
1. select camera app
2. in the lower corner select the gallery icon
3. in the lower corner of the gallery, select the camera icon
4. repeat 2/3 multiple times (7 or 8 times)

## Expected :
1. neither app crashes

## Actual :
1. camera app crashes and you are left in a grey screen state. http://cl.ly/image/401V0I3T0J0w you have to reboot the phone by long tap and rebooting in order to see other apps.  can't long tap home button to bring up task manager.

## Note :
* 09-27 23:22:53.928: I/Gecko(106): [Parent 106] WARNING: pipe error (162): Connection reset by peer: file /data/jenkins/jobs/build-otoro-ics/workspace/gecko/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 422

Pipeline breaks.
full logcat : 
https://gist.github.com/3797058

Noming; possibly something to worry about in the background.
[GitHub comment by vingtetun on 2012-10-01T15:25:32Z]
@mikeaich Is it for you?
[GitHub comment by daleharvey on 2012-10-01T15:27:56Z]
I will diagnose this one, I am able to pause and resume the camera a lot so not sure this is a problem with cameracontrol api, and guessing its either how I deal with pause / resume during activities, or just activities
[GitHub comment by autonome on 2012-10-01T15:33:51Z]
@daleharvey can you file a Bugzilla bug for this, and link it back here? https://bugzilla.mozilla.org/enter_bug.cgi?product=Boot2Gecko&component=Gaia
[GitHub comment by nhirata on 2012-10-01T15:43:46Z]
I can crash on the bug still, it took a lot longer.  It may be the timing of the launch of gallery/camera during the time it's trying to load the app.  ie as soon as you launch one and see the button press to get to the other.
Priority: -- → P3
Hey Kan-ru, mike said this may be related to stuff you are looking at, if it isnt then you can bounce it back to him
Assignee: dale → kchen
I'm getting a different result, the crasher is gallery not camera. Maybe it was killed due to OOM? I have hundreds of photos on the sdcard.
I can make the gallery or the camera app crash. The worst thing about this is that it renders the phone unusable and displays a broken card switcher:

http://i.imgur.com/cgKQ2.png
Priority: P3 → --
(In reply to Tim Taubert [:ttaubert] from comment #8)
> I can make the gallery or the camera app crash. The worst thing about this
> is that it renders the phone unusable and displays a broken card switcher:
> 
> http://i.imgur.com/cgKQ2.png

Broken cards view is bug 803447. I will fix it.
Can't reproduce this with today's m-c anymore.
Keywords: qawanted
Whiteboard: [label:gallery][label:camera][label:system] → [label:gallery][label:camera][label:system][qawanted:checking against current build]
CAn't reproduce.  marking as WFM for now.


## Environment :
Unagi phone, build 20121031073004
2012-10-31 10:23:10
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Keywords: qawanted
Whiteboard: [label:gallery][label:camera][label:system][qawanted:checking against current build] → [label:gallery][label:camera][label:system]
You need to log in before you can comment on or make changes to this bug.