Flame unresponsive on FxOS 2.6

I used to run v18D_nightly_v4 on my flame and it was very stable. But then I run into problems and had to upgrade first to 2.5 builds from October and then to nightly-latest builds. I got new features such as a new homescreen and pin the web, but the phone is much less responsive now. For example when I am in an app and press the home button, I see the icons flash and only then I can use the homescreen.

I wonder if anyone else has noticed a slowdown. Or indeed if anyone has a fix. (I have tried various combinations in Developer Settings, but I couldn’t get a responsive UI.) Perhaps foxfooding on Z3C isn’t good for noticing performance regressions as it is a high end phone. But the user experience on low end phones will be even worse than Flame. Although with the recent announcements I am not sure if the low end is a priority any more.

The new homescreen is still work in progress and it has quite some bugs and missing features.
The low end phones are no longer a priority for Mozilla!

For the icon flash follow this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1224268

Thanks for the reply and for the link to the bug.

I’ve gone back to the old homescreen and it still has the problem. And the homescreen was just an example. I constantly find myself tapping something, then thinking it didn’t recognise my tap, then tapping again, only for the phone to react to both taps after a delay. At the moment I find FxOS 2.6 (and 2.5) barely usable on Flame.

All these issues are to be expected in the nightly-latest update channel as it’s not checked by QA!

Mozilla Discourse wrote:


lyovushka

December 27

Thanks for the reply and for the link to the bug.

I've gone back to the old homescreen and it still has the problem. And the homescreen was just an example. I constantly find myself tapping something, then thinking it didn't recognise my tap, then tapping again, only for the phone to react to both taps after a delay. At the moment I find FxOS 2.6 (and 2.5) barely usable on Flame.


To respond, reply to this email or visit https://discourse.mozilla-community.org/t/flame-unresponsive-on-fxos-2-6/6245/3 in your browser.

To unsubscribe from these emails, visit your user preferences.

To stop receiving notifications about this particular topic, click here.

Sent Using Firefox OS

It is important to provide the Build ID you are using or seeing these issues on - there was a bug a while back where there were issues with the tap being recognized. Also, please check the following:

I just updated my Flame to the latest nightly and I am not seeing those specific issues.

My Flame is running the following build:

Build ID 20151228030231
Gaia Revision 15a00047c0868cc8f4c8ec4af253b82ac54d70dd
Gaia Date 2015-12-26 05:30:48
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/7c83da46ea740bc14028aca9f9a662f062de5586

Very good tip with the memory!

I have set the max for mine: 1024 MB

Here is the how to: https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame

You only need to do this:
adb reboot bootloader
fastboot oem mem 1024

My Build ID 1s 20151225030210 and Platform Version is 46.0a1. (But I’ve seen the unresponsiveness in other builds as well, such as 44.0a1 from 5 November and from 26 October.) Not sure about Gaia/Gecko version. Couldn’t find it in Device Information. The memory was set to auto. Now I’ve changed that to 1024. Didn’t see any difference.

This tool has a check version script that you can run that pulls all the device information off the phone - might come in handy in the future.

1 Like

Thanks, that’s handy! Here are the full details.

Build ID 20151225030210
Gaia Revision 94cc99aac11339e297da186ec7153ca4ae9ab8cd
Gaia Date 2015-12-23 06:07:52
Gecko Revision n/a
Gecko Version 46.0a1

The n/a thing is bit strange.

Yes, it is a bit strange.

The full information should look like :
Build ID
Gaia Revision
Gaia Date
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/
Gecko Version
Device Name
Firmware(Release)
Firmware(Incremental)
Firmware Date
Bootloader

Please provide the firmware release/incremental/date. Flashing just the
gaia could lead to unexpected results.

Here is the full Information

Build ID 20151225030210
Gaia Revision 94cc99aac11339e297da186ec7153ca4ae9ab8cd
Gaia Date 2015-12-23 06:07:52
Gecko Revision n/a
Gecko Version 46.0a1
Device Name flame
Firmware(Release) 4.4.2
Firmware(Incremental) eng.cltbld.20150527.043015
Firmware Date Wed May 27 04:30:24 EDT 2015
Bootloader L1TC000118D0

What I did is flash v18D_nightly_v4 and then fota update through nightly-latest channel.

Odd. I’m not sure that the gonk layer changed that much though there are a
few fixes that we do need to push since the v4 base build. We’re trying to
push for a new base build currently. It should be coming within the next
couple of weeks. Hopefully that may solve the issue.

I would highly recommend switching to the new home screen, not the old. I
know that is contrary to what Mihai mentioned earlier. Certain addons
might not work if you have any addons installed.

Do you per chance have an uptime on your phone? Doing an adb shell
b2g-info will also provide some memory information. adb shell dumpsys also
provides some dump state information about the device.

Does a reboot help?

Here is the result of b2g-info

                           |      megabytes      |
           NAME   PID PPID CPU(s) NICE   USS   PSS   RSS SWAP VSIZE OOM_ADJ USER     
            b2g   206    1 1931.3    0 112.5 118.5 140.0  0.0 376.4       0 root     
         (Nuwa)   508  206    8.5    0   5.0   7.7  21.2  0.0  93.4     -16 root     
        Browser   796  508  131.7    0  18.9  22.2  40.5  0.0 119.3      11 u0_a796  
Legacy Home Scr   956  508   90.7    0  21.6  24.8  42.9  0.0 146.0      10 u0_a956  
Built-in Keyboa  1089  508   59.8    0  14.5  17.6  35.5  0.0 121.8      11 u0_a1089 
(Preallocated a 11320  508    1.6    0  12.6  14.5  27.7  0.0 106.4     -16 u0_a11320
          Usage 20068  508   34.6    0  12.6  15.4  33.2  0.0 111.6      12 u0_a20068
 Find My Device 23657  508   30.9    0  10.2  12.8  29.0  0.0 108.0      12 u0_a23657

System memory info:

            Total 911.5 MB
        SwapTotal 192.0 MB
     Used - cache 373.4 MB
  B2G procs (PSS) 233.6 MB
    Non-B2G procs 139.8 MB
     Free + cache 538.1 MB
             Free 291.3 MB
            Cache 246.8 MB
         SwapFree 192.0 MB

Low-memory killer parameters:

  notify_trigger 14336 KB

  oom_adj min_free
        0  4096 KB
       58  5120 KB
      117  6144 KB
      352  8192 KB
      588 20480 KB

And here is the result of shell dumpsys

Currently running services:
  SurfaceFlinger
  android.security.keystore
  batterypropreg
  display.qservice
  drm.drmManager
  media.audio_flinger
  media.audio_policy
  media.camera
  media.player
  permission
  scheduling_policy
-------------------------------------------------------------------------------
DUMP OF SERVICE SurfaceFlinger:
-------------------------------------------------------------------------------
DUMP OF SERVICE android.security.keystore:
-------------------------------------------------------------------------------
DUMP OF SERVICE batterypropreg:
-------------------------------------------------------------------------------
DUMP OF SERVICE display.qservice:
-------------------------------------------------------------------------------
DUMP OF SERVICE drm.drmManager:
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_flinger:
Clients:
Notification Clients:
  pid: 202
  pid: 206
  pid: 342
Global session refs:
 session pid count
Hardware status: 0
Standby Time mSec: 3000

Output thread 0xb5d6d008 internals
Normal frame count: 960
last write occurred (msecs): 7440654
total writes: 1009
delayed writes: 0
blocked in write: 0
suspend count: 0
mix buffer : 0xb7e728a8
Fast track availMask=0xfe
io handle: 2
TID: 546
standby: 1
Sample rate: 48000
HAL frame count: 960
Channel Count: 2
Channel Mask: 0x00000003
Format: 1
Frame size: 4

Pending setParameters commands: 
 Index Command

Pending config events: 

AudioMixer tracks: 00000000
FastMixer not initialized
Output thread 0xb5d6d008 stream volumes in dB:
    0:-14, 1:-Inf, 2:-Inf, 3:-Inf, 4:-14, 5:-Inf, 6:0, 7:-Inf, 8:-Inf, 9:-Inf, 10:0
Output thread 0xb5d6d008 tracks
   Name Client Type      Fmt Chn mask Session fCount S F SRate  L dB  R dB    Server Main buf  Aux Buf Flags UndFrmCnt
Output thread 0xb5d6d008 active tracks
   Name Client Type      Fmt Chn mask Session fCount S F SRate  L dB  R dB    Server Main buf  Aux Buf Flags UndFrmCnt
Normal mixer raw underrun counters: partial=0 empty=0

- 0 Effect Chains:
-------------------------------------------------------------------------------
DUMP OF SERVICE media.audio_policy:
PolicyManager Interface: 0xb7e36298
Command Thread: 0xb7e35c08
Tones Thread: 0xb7e358e8
AudioCommandThread 0xb7e35c08 Dump
- Commands:
   Command Time        Wait pParam
  Last Command
   02      009071.215  1    0xb7e77758
AudioCommandThread 0xb7e358e8 Dump
- Commands:
   Command Time        Wait pParam
  Last Command
   -1      000000.000  0    0x0

AudioPolicyManager Dump: 0xb7e36330
 Primary Output: 2
 A2DP device address: 
 SCO device address: 
 USB audio ALSA 
 Output devices: 00000003
 Input devices: 000001c4
 Phone state: 0
 Force use for communications 0
 Force use for media 0
 Force use for record 0
 Force use for dock 0
 Force use for system 0

HW Modules dump:
- HW Module 1:
  - name: primary
  - handle: 1
  - outputs:
    output 0:
    - sampling rates: 44100, 48000
    - channel masks: 0x0003
    - formats: 0x00000001
    - devices: 0x1c087f
    - flags: 0x0002
    output 1:
    - sampling rates: 8000, 11025, 16000, 22050, 32000, 44100, 48000
    - channel masks: 0x0001, 0x0003
    - formats: 0x01000000, 0x04000000
    - devices: 0x14087f
    - flags: 0x0031
    output 2:
    - sampling rates: 8000, 16000
    - channel masks: 0x0001
    - formats: 0x00000001, 0x02000000, 0x03000000, 0x09000000, 0x08000000, 0x10000000, 0x11000000, 0x16000000
    - devices: 0x087f
    - flags: 0x4001
    output 3:
    - sampling rates: 8000, 16000, 48000
    - channel masks: 0x0001
    - formats: 0x00000001
    - devices: 0x687f
    - flags: 0x8001
  - inputs:
    input 0:
    - sampling rates: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
    - channel masks: 0x0010, 0x000c, 0x0030
    - formats: 0x00000001, 0x02000000, 0x03000000, 0x09000000, 0x08000000, 0x10000000, 0x11000000, 0x16000000
    - devices: 0x800182dc
    - flags: 0x0000
- HW Module 2:
  - name: a2dp
  - handle: 3
  - outputs:
    output 0:
    - sampling rates: 44100
    - channel masks: 0x0003
    - formats: 0x00000001
    - devices: 0x0380
    - flags: 0x0000
- HW Module 3:
  - name: usb
  - handle: 4
  - outputs:
    output 0:
    - sampling rates: 44100
    - channel masks: 0x0003
    - formats: 0x00000001
    - devices: 0x2000
    - flags: 0x0000
    output 1:
    - sampling rates: 44100
    - channel masks: 0x0003
    - formats: 0x00000001
    - devices: 0x4000
    - flags: 0x0000
- HW Module 4:
  - name: r_submix
  - handle: 5
  - outputs:
    output 0:
    - sampling rates: 48000
    - channel masks: 0x0003
    - formats: 0x00000001
    - devices: 0x8000
    - flags: 0x0000
  - inputs:
    input 0:
    - sampling rates: 48000
    - channel masks: 0x000c
    - formats: 0x00000001
    - devices: 0x80000100
    - flags: 0x0000

Outputs dump:
- Output 2 dump:
 Sampling rate: 48000
 Format: 00000001
 Channels: 00000003
 Latency: 80
 Flags 00000002
 Devices 00000002
 Stream volume refCount muteCount
 00     0.193     00       00
 01     0.000     00       00
 02     0.000     00       00
 03     0.000     00       00
 04     0.197     00       00
 05     0.000     00       00
 06     -1.000     00       00
 07     0.000     00       00
 08     0.000     00       00
 09     0.000     00       00
 10     1.000     00       00

Inputs dump:

Streams dump:
 Stream  Can be muted  Index Min  Index Max  Index Cur [device : index]...
 00      true          00         05         0001 : 02, 0002 : 02, 0004 : 03, 0008 : 03, 0020 : 03, 0080 : 03, 40000000 : 00, 
 01      true          00         15         0001 : 00, 0002 : 00, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 02      true          00         15         0001 : 00, 0002 : 00, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 03      true          00         15         0001 : 00, 0002 : 00, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 04      true          00         15         0001 : 08, 0002 : 08, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 05      true          00         15         0001 : 00, 0002 : 00, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 06      true          00         15         0001 : 08, 0002 : 08, 0004 : 08, 0008 : 08, 0020 : 08, 0080 : 08, 40000000 : 00, 
 07      true          00         15         40000000 : 00, 
 08      true          00         15         40000000 : 00, 
 09      true          00         15         40000000 : 00, 
 10      true          00         01         40000000 : 00, 

Total Effects CPU: 0.000000 MIPS, Total Effects memory: 0 KB
Registered effects:
-------------------------------------------------------------------------------
DUMP OF SERVICE media.camera:
Camera module HAL API version: 0x100
Camera module API version: 0x100
Camera module name: QCamera Module
Camera module author: Qualcomm Innovation Center Inc
Number of camera devices: 2

Camera 0 static information:
  Facing: BACK
  Orientation: 270
  Device version: 0x100
  Device is closed, no client instance
Camera 1 static information:
  Facing: FRONT
  Orientation: 270
  Device version: 0x100
  Device is closed, no client instance

No active camera clients yet.

Camera traces (0):
  No camera traces collected.
-------------------------------------------------------------------------------
DUMP OF SERVICE media.player:
 No media recorder client

 Files opened and/or mapped:
-------------------------------------------------------------------------------
DUMP OF SERVICE permission:
-------------------------------------------------------------------------------
DUMP OF SERVICE scheduling_policy:

Reboot doesn’t help. I’ll wait to see if the new base image will help. Thanks!

FYI, the new base should be out now:
https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame

Thanks, I have updated to the new base and to the latest nightly from it. It actually fixed some issues, such as homescreen icons being redrawn. But the responsiveness is still lacking compared to 2.2/early days of 2.5. I guess I am just more used to it now.