Closed Bug 1194547 Opened 9 years ago Closed 9 years ago

[Window Mgmt] Taking a picture from galley in landscape and going back to gallery causes the device lock up

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-v2.2 unaffected, b2g-master verified)

VERIFIED FIXED
blocking-b2g 2.5+
Tracking Status
b2g-v2.2 --- unaffected
b2g-master --- verified

People

(Reporter: KTucker, Assigned: etienne)

References

()

Details

(Keywords: regression, Whiteboard: [2.5-Daily-Testing][Spark])

Attachments

(3 files)

If the user opens gallery while in landscape mode, taps on the "Camera" icon, snaps a picture, taps on the preview and goes back to gallery, the device will stop responding to touch inputs. The user must hold device in landscape mode the whole time to reproduce this issue. 


Prerequisite: All steps below are performed while holding the device in landscape mode. 

Repro Steps:
1) Update a Aries to 20150813030210
2) Open the gallery app while in landscape mode.
3) Tap on the "Camera" icon in gallery. 
4) Take a picture and tap on the preview circle. 
5) Tap on the "..." and then tap on "Open Gallery". 
6) Try to tap on a picture to view it. 

Actual:
The phone will start acting strangely and will not respond to touch input.

Expected:
The phone responds to the user's touch inputs. 

Notes:

Device: Aries (RC4 > OTA to dogfood-latest)
BuildID: 20150812231434
Gaia: 52f3ea58df38e5427f6afeb636bc6ad01d24022f
Gecko: 7649ffe28b67aa2dad0f67ea01500c0ff91b2bac
Gonk: 2916e2368074b5383c80bf5a0fba3fc83ba310bd
Version: 43.0a1 (2.5 Master) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

User Impact:

Repro frequency: 5/5 100%
See attached: Video, logcat
[Blocking Requested - why for this release]:

Regression and locks up the user's device so nominating 2.5?

Please note this is not the same issue as bug 1192759 This bug goes back before what the regression window points to listed in that issue. That issue is only dealing with the zoomed in gallery view.
blocking-b2g: --- → 2.5?
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(pbylenga)
Keywords: regression
Whiteboard: [2.5-Daily-Testing][Spark]
blocking-b2g: 2.5? → 2.5+
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+][qa-tracking]
Flags: needinfo?(pbylenga)
Summary: {Window Mgmt} Talking a picture from galley in landscape and going back to gallery causes the device lock up → {Window Mgmt} Taking a picture from galley in landscape and going back to gallery causes the device lock up
Nominating to block dogfood ota as it freezes the app.

NI Doug for feedback on blocking ota.
Flags: needinfo?(drs)
Whiteboard: [2.5-Daily-Testing][Spark] → [2.5-Daily-Testing][Spark][dogfood-blocker]
It wasn't mentioned anywhere but this issue does repro on Flame 2.5.
QA Whiteboard: [QAnalyst-Triage+][qa-tracking] → [qa-tracking]
QA Contact: pcheng
This issue also occurs on Flame Master

The phone stops responding to touch input after performing the steps from Comment 0. 

Device: Flame 2.5 (Full Flash)(KK)(319mb)
Build ID: 20150814030213
Gaia: 39b121515ab8a8c3ea07f26d3ba1dd792e90217c
Gecko: 4e883591bb5dff021c108d3e30198a99547eed1e
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 43.0a1 (2.5)
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0


This issue does not occur on Flame 2.2

Touch inputs work as expected after completing steps from Comment 0.

Device: Flame 2.2 (Full Flash)(KK)(319mb)
Build ID: 20150814032503
Gaia: 102f1299e9eafe3760e1deb44d556b5c4f36b5af
Gecko: 9295034c0ee3
Gonk: bd9cb3af2a0354577a6903917bc826489050b40d
Version: 37.0 (2.2)
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
b2g-inbound regression window:

Last Working
Device: Flame
BuildID: 20150618012742
Gaia: ad8a87ddd3d255f34f5f58893010ddbaf5fa0d72
Gecko: bd7b2334924d
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 41.0a1 (2.5 Master) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0

First Broken
Device: Flame
BuildID: 20150618025743
Gaia: 7626a37ee5e4ec63a5f383897b5226f7b14135ae
Gecko: 148608189b11
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 41.0a1 (2.5 Master) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0

Last Working Gaia First Broken Gecko - no repro
Gaia: ad8a87ddd3d255f34f5f58893010ddbaf5fa0d72
Gecko: 148608189b11

Last Working Gecko First Broken Gaia - repro
Gaia: 7626a37ee5e4ec63a5f383897b5226f7b14135ae
Gecko: bd7b2334924d

Gaia pushlog:
https://github.com/mozilla-b2g/gaia/compare/ad8a87ddd3d255f34f5f58893010ddbaf5fa0d72...7626a37ee5e4ec63a5f383897b5226f7b14135ae

Caused by changes made in Bug 1170944.
Blocks: 1170944
QA Whiteboard: [qa-tracking] → [qa-tracking], [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Given the length of the window, this isn't something new, removing dogfood-blocking tag.
Flags: needinfo?(drs)
Whiteboard: [2.5-Daily-Testing][Spark][dogfood-blocker] → [2.5-Daily-Testing][Spark]
Alison, can you take a look at this please? This might have been caused by the landing for bug 1170944. The author of the original landing is no longer available.
QA Whiteboard: [qa-tracking], [QAnalyst-Triage?] → [qa-tracking], [QAnalyst-Triage+]
Flags: needinfo?(ktucker) → needinfo?(ashiue)
Hi Fred,

Could you please help to dispatch this issue? Thank you!
Flags: needinfo?(ashiue) → needinfo?(gasolin)
Luke, would you like take it a look?
Flags: needinfo?(gasolin) → needinfo?(lchang)
After a quick look, I think it's caused by some racing condition and results in that the incorrect "overlay" class remains on the AppWindow.

I can look into it until next week as I have some other issues in hand. Keep the NI for a reminder. Please feel free to take this bug if anyone is interested in it.
Summary: {Window Mgmt} Taking a picture from galley in landscape and going back to gallery causes the device lock up → [Window Mgmt] Taking a picture from galley in landscape and going back to gallery causes the device lock up
Attached image 2015-08-19-10-45-15.png
I can produce this bug very easily and I suspect this is not about Window Mgmt.

1. Go to Settings > Keyboards
2. Rotate the phone horizontally and tap "Built-in Keyboard" to go to the keyboard app settings.

Expected:

1. A horizontal keyboard settings app, response interaction.

Actual:

1. Content got enlarged with width === height of the device. Can't be interacted. See screenshot.

Going to move this to Core::Layout since there is no way window mgmt can enlarge the content (w/o some transfrom scale styling, which we don't do).
(In reply to Tim Guan-tin Chien [:timdream] (slow response; please ni? to queue) from comment #12)
> Going to move this to Core::Layout since there is no way window mgmt can
> enlarge the content (w/o some transfrom scale styling, which we don't do).

Actually, I am not sure about it, and I am not sure if this bug or bug 1192759 is talking about this STR. Let me comment there and let :etienne to respond.
Definitely something wrong with the screenshot here, taking a look.
Assignee: nobody → etienne
Comment on attachment 8652386 [details] [review]
[gaia] etiennesegonzac:bug-1194547 > mozilla-b2g:master

Hey Alberto, welcome to the wonderful world of window manager screenshots :)

Tried to explain what I changed in the commit message.
The main part if that anybody calling .ready() on an appWindow could lock it with the screenshot displayed.
This happened while resizing for example, hence this bug.

I verified that this patch does not regress neither bug 976846 nor bug 1072779, some of those old solutions just weren't applicable anymore.
Attachment #8652386 - Flags: review?(apastor)
Comment on attachment 8652386 [details] [review]
[gaia] etiennesegonzac:bug-1194547 > mozilla-b2g:master

I can still repro the bug described in comment #0. After going to the camera from the gallery, and opening the taken picture from preview on the gallery (everything in landscape mode) the pictures are not responding to clicks anymore. Any idea?
Flags: needinfo?(etienne)
Attachment #8652386 - Flags: review?(apastor)
Comment on attachment 8652386 [details] [review]
[gaia] etiennesegonzac:bug-1194547 > mozilla-b2g:master

Thanks for diving into this Alberto!

Rebased my patch this morning, got a green try, replied to your comment on github and I can't reproduce Comment 0.

So asking for review again :)
Flags: needinfo?(etienne)
Attachment #8652386 - Flags: review?(apastor)
Comment on attachment 8652386 [details] [review]
[gaia] etiennesegonzac:bug-1194547 > mozilla-b2g:master

Something was wrong with my device. I was having issues even on master when opening directly the Gallery in landscape mode. Everything worked fine after reflashing and pushing again your patch. Thanks!
Attachment #8652386 - Flags: review?(apastor) → review+
Flags: needinfo?(lchang)
https://github.com/mozilla-b2g/gaia/commit/73b3e382220adc2334ed043138bff2bd5578b1e3
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Adding qawanted for verification.
Keywords: qawanted
This issue is verified fixed. After step 6, Gallery app can be utilized as expected.

Verified on:
Device: Flame 2.5
BuildID: 20150828030207
Gaia: b69c16798ddd7154207f56d983721a327522f5d1
Gecko: 87e23922be375985d0b1906ed5ba5f095f323a38
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 43.0a1 (2.5) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

Device: Aries 2.5
BuildID: 20150828140025
Gaia: fa15462b29258fdec8329bfc367e590022dbc9e5
Gecko: 008d4d76f387b722fbee151e1c9e1501482054e5
Gonk: 2916e2368074b5383c80bf5a0fba3fc83ba310bd
Version: 43.0a1 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-tracking], [QAnalyst-Triage+] → [qa-tracking], [QAnalyst-Triage?]
Flags: needinfo?(jmercado)
Keywords: qawanted
QA Whiteboard: [qa-tracking], [QAnalyst-Triage?] → [qa-tracking], [QAnalyst-Triage+]
Flags: needinfo?(jmercado)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: