Closed Bug 785831 Opened 12 years ago Closed 8 years ago

java.lang.NullPointerException: at org.mozilla.gecko.gfx.LayerView.getViewportMetrics(LayerView.java)

Categories

(Firefox for Android Graveyard :: Toolbar, defect)

ARM
Android
defect
Not set
critical

Tracking

(firefox17 affected, firefox18 affected)

RESOLVED WORKSFORME
Tracking Status
firefox17 --- affected
firefox18 --- affected

People

(Reporter: scoobidiver, Unassigned)

Details

(Keywords: crash, Whiteboard: [native-crash])

Crash Data

There's one crash in 17.0a1/20120826: bp-7a6e800c-7ec8-4ab1-a0d5-f206c2120827.

java.lang.NullPointerException
	at org.mozilla.gecko.gfx.LayerView.getViewportMetrics(LayerView.java:148)
	at org.mozilla.gecko.ScreenshotHandler.screenshotWholePage(GeckoAppShell.java:2373)
	at org.mozilla.gecko.ScreenshotHandler.screenshotWholePage(GeckoAppShell.java:2365)
	at org.mozilla.gecko.GeckoAppShell.screenshotWholePage(GeckoAppShell.java:2267)
	at org.mozilla.gecko.GeckoApp$18.run(GeckoApp.java:1213)
	at android.os.Handler.handleCallback(Handler.java:615)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:137)
	at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+org.mozilla.gecko.gfx.LayerView.getViewportMetrics%28LayerView.java%29
kats, does this crash look like fallout from bug 781220?
Maybe? A crash with that stack would only happen if we tried to screenshot before calling createLayerClient on the LayerView, and that happens during GeckoApp initialization, before we should ever be screenshotting. I suppose this might happen in some weird race conditions if the "don't keep activities" option is on (or Android otherwise decides to blow away GeckoApp from under us) but it's pretty darn narrow window of opportunity for this to happen.
The "more crash reports" link in comment 0 still has recent crashes, although the stack is different. Leaving this bug open for the new crashes, since crash-stats associates them with this bug.
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.gfx.LayerView.getViewportMetrics(LayerView.java)] → [@ java.lang.NullPointerException: at org.mozilla.gecko.gfx.LayerView.getViewportMetrics(LayerView.java)] [@ java.lang.NullPointerException: at org.mozilla.gecko.gfx.LayerView.getViewportMetrics]
Don't see this any more.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.