Bug 1641119 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

With my current startup profiling settings, Fenix Nightly crashes on startup. `adb logcat` contains the following:

```
05-26 21:39:21.393 13101 13136 W zygote  : Throwing OutOfMemoryError "Failed to allocate a 268435472 byte allocation with 718464 free bytes and 189MB until OOM, max allowed footprint 2873856, growth limit 201326592"
05-26 21:39:21.394 13101 13136 W System.err: java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 718464 free bytes and 189MB until OOM, max allowed footprint 2873856, growth limit 201326592
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoJavaSampler$SamplingRunnable.<init>(GeckoJavaSampler.java:5)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoJavaSampler.start(GeckoJavaSampler.java:6)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:91)
```

Can we handle this more gracefully? Here's my current `org.mozilla.fenix.nightly-geckoview-config.yaml`:

```
env:
  MOZ_BASE_PROFILER_STARTUP: 1
  MOZ_BASE_PROFILER_STARTUP_INTERVAL: 5
  MOZ_BASE_PROFILER_STARTUP_FEATURES: threads,js,stackwalk,leaf
  MOZ_BASE_PROFILER_STARTUP_FILTERS: GeckoMain
  MOZ_PROFILER_STARTUP: 1
  MOZ_PROFILER_STARTUP_INTERVAL: 5
  MOZ_PROFILER_STARTUP_FEATURES: threads,js,stackwalk,leaf,java,screenshots,ipcmessages
  MOZ_PROFILER_STARTUP_FILTERS: GeckoMain,Compositor,Renderer,SaveScripts,Parser
```

(I used `adb shell am set-debug-app --persistent org.mozilla.fenix.nightly` so that the yaml file would be respected by Fenix Nightly.)

So I seem to be using the default value for the entries count.

This is on a Moto G5.
With my current startup profiling settings, Fenix Nightly crashes on startup. `adb logcat` contains the following:

```
05-26 21:39:21.393 13101 13136 W zygote  : Throwing OutOfMemoryError "Failed to allocate a 268435472 byte allocation with 718464 free bytes and 189MB until OOM, max allowed footprint 2873856, growth limit 201326592"
05-26 21:39:21.394 13101 13136 W System.err: java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 718464 free bytes and 189MB until OOM, max allowed footprint 2873856, growth limit 201326592
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoJavaSampler$SamplingRunnable.<init>(GeckoJavaSampler.java:5)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoJavaSampler.start(GeckoJavaSampler.java:6)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
05-26 21:39:21.394 13101 13136 W System.err: 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:91)
```

Can we handle this more gracefully? Here's my current `org.mozilla.fenix.nightly-geckoview-config.yaml`:

```
env:
  MOZ_PROFILER_STARTUP: 1
  MOZ_PROFILER_STARTUP_INTERVAL: 5
  MOZ_PROFILER_STARTUP_FEATURES: threads,js,stackwalk,leaf,java,screenshots,ipcmessages
  MOZ_PROFILER_STARTUP_FILTERS: GeckoMain,Compositor,Renderer,SaveScripts,Parser
```

(Push to the device using `adb push org.mozilla.fenix.nightly-geckoview-config.yaml /data/local/tmp/` and also run `adb shell am set-debug-app --persistent org.mozilla.fenix.nightly` so that the yaml file is respected by Fenix Nightly.)

So I seem to be using the default value for the entries count.

This is on a Moto G5.

Back to Bug 1641119 Comment 0