Closed Bug 1047394 Opened 6 years ago Closed 4 years ago

Two "Homescreen" apps running at the same time after running the FTU tutorial

Categories

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

All
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: janx, Unassigned)

References

Details

(Whiteboard: [systemsfe])

I just updated my keon to nightly this morning, didn't do anything, and looking at `b2g-info` I can see two "Homescreen" apps running at the same time:

> $ adb shell b2g-info
>                          |     megabytes     |
>            NAME PID PPID CPU(s) NICE  USS  PSS  RSS SWAP VSIZE OOM_ADJ USER   
>             b2g 107    1   51.2    0 49.5 53.7 69.2  0.0 192.8       0 root   
>          (Nuwa) 365  107    1.1    0  2.8  6.1 20.4  0.0  53.8       0 root   
> Built-in Keyboa 407  365    1.3   18  6.8  9.2 23.6  0.0  69.9      12 app_407
>      Homescreen 449  365    7.7    1 12.7 15.7 31.5  0.0 197.4       2 app_449
> Smart Collectio 487  365    1.2   18  5.1  7.4 21.6  0.0  61.5      11 app_487
>        Settings 503  365    8.1   18 13.2 16.4 32.4  0.0  70.8      10 app_503
>      Homescreen 512  107    1.6   18  9.8 12.9 26.8  0.0  69.5      11 app_512
> (Preallocated a 652  365    0.6   18  5.4  7.4 20.4  0.0  59.5       1 app_652

This probably shouldn't happen.
This issue DOES repro on my Flame 319MB with today's 2.0 build. This happens when you go through the FTU tutorial. 

Prerequisites: ADB must be enabled

STR
1. Reboot your phone.
1bis. (Optional check) Run adb shell b2g-info => Verify that Homescreen process is unique
2. Go to Settings => Developer => Launch first time use
2bis. (Optional check) Run adb shell b2g-info => Verify that Homescreen process is unique
3. Go to the FTU tutorial and start the tour.
4. Run adb shell b2g-info => Now Homescreen appears twice

>                          |     megabytes     |
>           NAME  PID PPID CPU(s) NICE  USS  PSS  RSS VSIZE OOM_ADJ USER    
>            b2g  309    1   34.6    0 39.7 42.9 54.6 207.1       0 root    
>         (Nuwa)  894  309    1.3    0  0.7  2.3 10.5  52.6       0 root    
>     Homescreen  940  894    3.3   18  5.8  8.2 19.8  66.8       8 u0_a940 
>       Settings 1179  894    5.1   18 10.4 13.0 25.0  70.8      10 u0_a1179
>            FTU 1277  894    5.8    1 20.9 23.7 35.9  95.8       2 u0_a1277
>Smart Collectio 1296  309    1.4    7 15.1 17.1 27.1  67.7       6 u0_a1296
>     Homescreen 1297  894    0.9    7  5.2  7.3 17.8  61.6       6 u0_a1297

At first, I thought it was a blocker. But these two processes are correctly removed after an OOM. A normal user wouldn't notice the issue.
Whiteboard: [systemsfe]
Summary: Two "Homescreen" apps running at the same time → Two "Homescreen" apps running at the same time after running the FTU tutorial
AFAIK this happens when you go through the FTU tutorial because the horizontal homescreen is launched for migrating layout, collections and bookmarks and also the vertical homescreen as current view after FTU. This is what you are looking at b2g-info thought, Kevin right?
Flags: needinfo?(kgrandon)
Sounds right. If we are migrating the app, we should try to either reuse the same process, or call window.close() on it if we can't. I'm not sure if there is any end user impact of this bug.
Flags: needinfo?(kgrandon)
Mass update: Resolve wontfix all issues with legacy homescreens.

As of 2.6 we have a new homescreen and having these issues open is confusing. All issues will block bug 1231115 so we can use that to re-visit any of these if needed.
Blocks: 1231115
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.