Closed Bug 1405848 Opened 2 years ago Closed 1 year ago

Crash in java.lang.NullPointerException: Attempt to invoke virtual method ''void android.graphics.Bitmap.setHasAlpha(boolean)'' on a null object reference at android.graphics.Bitmap.createBitmap(Bitmap.java)

Categories

(Firefox for Android :: Toolbar, defect, P5, critical)

All
Android
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox58 --- affected

People

(Reporter: jchen, Unassigned)

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is 
report bp-c23b9394-00c0-46b2-bc46-147eb0171004.
=============================================================

> java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Bitmap.setHasAlpha(boolean)' on a null object reference
> 	at android.graphics.Bitmap.createBitmap(Bitmap.java:1034)
> 	at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
> 	at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
> 	at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
> 	at org.mozilla.gecko.BrowserApp.getBitmapOfToolbarChrome(BrowserApp.java:1699)
> 	...

I think `createBitmap` is running out of memory here and fails to create the bitmap.
Flags: needinfo?(rbarker)
Probably the best solution is to check the bitmap pointer and just disable dynamic toolbar if it ever comes back null. Although I assume we will crash some where else if we are that low on memory?
Flags: needinfo?(rbarker)
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
Closing because no crash reported since 12 weeks.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
Closing because no crash reported since 12 weeks.
You need to log in before you can comment on or make changes to this bug.