Closed Bug 1115313 Opened 11 years ago Closed 11 years ago

[FFOS7715 v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock.

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:2.1S+, b2g-v2.1 verified, b2g-v2.1S fixed, b2g-v2.2 verified)

VERIFIED FIXED
2.2 S3 (9jan)
blocking-b2g 2.1S+
Tracking Status
b2g-v2.1 --- verified
b2g-v2.1S --- fixed
b2g-v2.2 --- verified

People

(Reporter: jinchao.wang, Assigned: gweng)

Details

(Whiteboard: sprd386315)

Attachments

(3 files)

Description:Gallery displays half of the screen when unlock. Device: SPRD 7715ea Steps to Reproduce: 1) open gallery 2)horizontal screen(landscape?) 3)press power button to lock screen on horizontal screen status 4)Vertical screen(portrait?) 5)press power button to light screen 6)unlock screen on Vertical screen status Actual Result:Gallery displays half of the screen. Expected Result:Gallery displays full of the screen Repro frequency:10/10,100%
Priority: -- → P1
Summary: [gaia][window manager][gallery]Gallery displays half of the screen when unlock. → [FFOS7715_v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock.
I has did test on Flame2.1,it has the same problem.
Whiteboard: sprd386315
When reproduce, we should enable 'screen lock' first in Settings App.
This bug may because of : Bug 1099006 - [Flame][Lock Screen]The keybord of PIN input page will be displayed on lockscreen after restart device.
Flags: needinfo?(gweng)
Why? Regression window? From the code I don't think so. Anyway, I would do some bisect to find out the root cause.
Flags: needinfo?(gweng)
(In reply to Greg Weng [:snowmantw][:gweng][:λ] from comment #4) > Why? Regression window? > > From the code I don't think so. Anyway, I would do some bisect to find out > the root cause. Dear Greg Weng: It prevents the spread of 'system-resize'. Video,Gallery and Browser have the same issue. Please check,thanks! I can reproduce 100% on Flame.
Yes. What I looks for is the actual root cause. The bug looks not like the root cause.
(Of course if it is I would still fix it according the bug).
OK. With Alive's opinion the fix should happen at https://github.com/mozilla-b2g/gaia/blob/v2.1/apps/system/js/layout_manager.js#L173 to remove the condition. So that every window would be re-sized.
I'll try the fix and to see if it works.
Assignee: nobody → gweng
Attached file Patch v2.1
The patch makes it resizing after unlocking. However, user would see the resizing transition few ms, if this is what we expect than this is a valid patch. I now also check if v2.0 need this fix.
Attachment #8541530 - Flags: review?(alive)
Well with v2.0 there is another bug occurs (orientation related, Bug 1110960). The patch is waiting approval. I may check it again after the patch landed.
Alive: I also fix another bug only on v2.1 that breaks LockScreen too: if there is no LockScreen window been created while booting(via build variable), and then we turn it on and rotate screen with apps like Gallery or Video, user would see a broken LockScreen after pressing the power button. This is because when LockScreenWindowManager firstly create the window, the screen is still in landscape mode, so the rendering code would get wrong H/W. I patched this by adding a mozLockOrientation call before LWM create the window. (And this only happens on v2.1).
[Blocking Requested - why for this release]: Regression
blocking-b2g: --- → 2.1?
Attachment #8541530 - Flags: review?(alive) → review+
Comment on attachment 8541530 [details] [review] Patch v2.1 [Approval Request Comment] [Bug caused by] (feature/regressing bug #): Bug 1099006 [User impact] if declined: Gallery broken as the description [Testing completed]:With known intermittent error: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=e7ce5af11238 [Risk to taking this patch] (and alternatives if risky): No [String changes made]: No
Attachment #8541530 - Flags: approval-gaia-v2.1?(bbajaj)
ni?me for reminding the uplift to 2.1S
Flags: needinfo?(styang)
Triage: regression blocking.
blocking-b2g: 2.1? → 2.1+
Summary: [FFOS7715_v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock. → [FFOS7715 _v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock.
Summary: [FFOS7715 _v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock. → [FFOS7715 v2.1][gaia][window manager][gallery]Gallery displays half of the screen when unlock.
Comment on attachment 8541530 [details] [review] Patch v2.1 Requesting QA verification once this lands on 2.1.
Attachment #8541530 - Flags: approval-gaia-v2.1?(bbajaj) → approval-gaia-v2.1+
Keywords: verifyme
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S3 (9jan)
Attached video VIDEO0223_Compress.MP4
This issue dose not exist on Flame 2.1/2.2 Flame 2.1 Gaia-Rev ed2e278753e8c9301ba322dcf2c3591f5928408d Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/127a0ead5f83 Build-ID 20150108001214 Version 34.0 Flame 2.2 build: Gaia-Rev d4dac29613076bdba3cb8adc217deadb08a2ac20 Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/70de2960aa87 Build-ID 20150108010221 Version 37.0a1 Reproduce rate 0/10
Hi Vincent, Kai-Zhen, we will need the solution for 2.1S.
blocking-b2g: 2.1+ → 2.1S+
Flags: needinfo?(vliu)
Flags: needinfo?(styang)
Flags: needinfo?(kli)
Bug fixed in v2.1 will get merged into v2.1s regularly. https://hg.mozilla.org/releases/mozilla-b2g34_v2_1s/rev/127a0ead5f83
Flags: needinfo?(vliu)
Flags: needinfo?(kli)
Keywords: verifyme
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: