Closed Bug 1180657 Opened 9 years ago Closed 9 years ago

After booting, the screen goes black and Gaia never starts

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
FxOS-S4 (07Aug)
Tracking Status
firefox42 --- fixed

People

(Reporter: madrid.crespo, Assigned: boris)

References

Details

Attachments

(4 files, 1 obsolete file)

Attached file ADB logcat
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20150704030210

Steps to reproduce:

I have compiled a v3.0 and v2.2 full build for the Geeksphone Keon. I'm not sure if it is related to the bug.

Serial: full_keon (State: device)
Build ID               20150706015025
Gaia Revision          dc6c18c0dea7af3c40bfff86c530fd877d899dc4
Gaia Date              2015-07-04 01:35:20
Gecko Revision         4d5dc30f0f4a8a8dc5c75013b9f7641dbd15ab8c
Gecko Version          42.0a1
Device Name            keon
Firmware(Release)      4.0.4.0.4.0.4
Firmware(Incremental)  eng.firefox.20150706.013009
Firmware Date          Mon Jul  6 01:48:29 PDT 2015


Actual results:

After booting, the screen goes black and Gaia never starts: https://www.youtube.com/watch?v=71CJYW7YAN8

I have access with adb shell.
Please, check 1:36 in that video, notice tahat there are some random flashes.
Same here for Geeksphone Peak in master branch. Phone boots, but screen stays black. The error appeared around the 20 of June 2015. Build before worked well.
The commit causing the black screen is http://git.mozilla.org/?p=releases/gecko.git;a=commit;h=cfe9c42db44f0ffbfde3edc3430e788a78e5ad7a . When reverting the changes to GonkDisplayICS.cpp in the current B2G master tree the screen is OK again!

helmar@deb:~/Software/B2G$ diff gecko/widget/gonk/libdisplay/GonkDisplayICS.cpp.orig_2015-08-01 gecko/widget/gonk/libdisplay/GonkDisplayICS.cpp
171c171,178
<     return !mFBSurface->compositionComplete();
---
>     mFBSurface->compositionComplete();
> 
>     if (!mHwc) {
>         return true;
>     }
> 
>     mHwc->prepare(mHwc, nullptr);
>     return !mHwc->set(mHwc, dpy, sur, 0);

Maybe someone cound commit this "patch" an make a few Geeksphone users very happy ;-)

Helmar.
Flags: needinfo?(boris.chiou)
i can confirm helmar's solution works :D
thanks, Helmar
Blocks: RefactorHwc
(In reply to leandro from comment #6)
> i can confirm helmar's solution works :D
> thanks, Helmar

Hi leandro,

Could you please apply the patch (attachment 8642233 [details] [diff] [review]) and verify again? I want to make sure this bug is caused by the missing EGL info. Thanks.
Flags: needinfo?(leandro)
Hi Boris,
your patch works and the display boots, but it flicks a bit during the "based on mozilla technology" screen and (this is worse) during transtion  between screens (such as during the configuration wizard, or during the animation when opening an app from the homescreen).

During the scroll of the homescreen it flicks also, and the icons appear blurred.
I think you touched the problem, but there is still something wrong.

Don't know why, but i experienced the Helmar's solution without problems.



(In reply to Boris Chiou [:boris] from comment #9)
> (In reply to leandro from comment #6)
> > i can confirm helmar's solution works :D
> > thanks, Helmar
> 
> Hi leandro,
> 
> Could you please apply the patch (attachment 8642233 [details] [diff] [review]
> [review]) and verify again? I want to make sure this bug is caused by the
> missing EGL info. Thanks.
Flags: needinfo?(leandro)
Attachment #8642233 - Attachment is obsolete: true
Attachment #8642794 - Flags: review?(sotaro.ikeda.g)
(In reply to leandro from comment #11)
> Hi Boris,
> your patch works and the display boots, but it flicks a bit during the
> "based on mozilla technology" screen and (this is worse) during transtion 
> between screens (such as during the configuration wizard, or during the
> animation when opening an app from the homescreen).
> 
> During the scroll of the homescreen it flicks also, and the icons appear
> blurred.
> I think you touched the problem, but there is still something wrong.
> 
> Don't know why, but i experienced the Helmar's solution without problems.
> 
> 
> 
> (In reply to Boris Chiou [:boris] from comment #9)
> > (In reply to leandro from comment #6)
> > > i can confirm helmar's solution works :D
> > > thanks, Helmar
> > 
> > Hi leandro,
> > 
> > Could you please apply the patch (attachment 8642233 [details] [diff] [review]
> > [review]) and verify again? I want to make sure this bug is caused by the
> > missing EGL info. Thanks.

Thanks for your verfication. Let's back out this part.
Attachment #8642794 - Flags: review?(sotaro.ikeda.g) → review+
Assignee: nobody → boris.chiou
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fec4e3434c44
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S4 (07Aug)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: