Obsolete
Status Update
Comments
a....@gmail.com <a....@gmail.com> #2
I'm also seeing this issue, specifically under low-memory conditions and only on a Nexus 5x running Nougat. I was trying to launch a camera intent from a fragment. I've attached my log as well.
ro...@gmail.com <ro...@gmail.com> #3
I'm seeing this crash too, specifically on build NBD90W of Android on the nexus 5x (october security patches). We're not using a camera intent, but we're using the camera API directly.
ma...@dowjones.com <ma...@dowjones.com> #4
Oh, good point -- I, too, am running build NBD90W with the October 5 security patches.
ao...@gmail.com <ao...@gmail.com> #5
Same here and my app uses Google Maps and a few images. It only crashes upon exit. My device is also Nexus 5X w/ build number NBD90W.
d....@infotech.team <d....@infotech.team> #6
I am on NBD90W as well.
ad...@google.com <ad...@google.com> #7
I was the reporter for the question on Stackoverflow -- I'm definitely glad other people are having this issue. Hopefully it can be resolved!
vi...@google.com <vi...@google.com> #8 Restricted
Restricted
Comment has been deleted.
Description
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(new ContextWrapper(base));
}
This causes ActivityThread to fail as it directly casts Application.getbaseContext() to a ContextImpl in handleReceiver():
ContextImpl context = (ContextImpl)app.getBaseContext();
Casts in handleStopService() and handleDestroyActivity are protected by an if (context instanceof ContextImpl) check and do not crash.
However, it may be possible that all three should instead use ContextImpl.getImpl(app) to unwrap an artibrary number of ContextWrappers: