Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException at com.bumptech.glide.manager.RequestManagerFragment #329

Closed
falhassen opened this issue Feb 4, 2015 · 7 comments
Labels
Milestone

Comments

@falhassen
Copy link
Collaborator

I was trying to switch out of my app and I encountered this NPE:

java.lang.NullPointerException
            at com.bumptech.glide.manager.RequestManagerFragment.onTrimMemory(RequestManagerFragment.java:74)
            at android.app.Fragment.performTrimMemory(Fragment.java:1769)
            at android.app.FragmentManagerImpl.dispatchTrimMemory(FragmentManager.java:1914)
            at android.app.Activity.onTrimMemory(Activity.java:1693)
            at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:4043)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
@sjudd sjudd added the bug label Feb 4, 2015
@sjudd
Copy link
Collaborator

sjudd commented Feb 4, 2015

Let's leave this open until we import the fix.

@sjudd sjudd reopened this Feb 4, 2015
@sjudd sjudd added this to the 4.0 milestone Feb 4, 2015
@alsajoo
Copy link

alsajoo commented Feb 6, 2015

Is there a workaround for this at the moment? Maybe go back to a previous version till 4.0 comes out?

sjudd added a commit to sjudd/glide that referenced this issue Feb 7, 2015
@sjudd sjudd closed this as completed in 52ec8e3 Feb 7, 2015
@sjudd sjudd modified the milestones: 3.5.2, 4.0 Feb 7, 2015
@sjudd
Copy link
Collaborator

sjudd commented Feb 7, 2015

Sorry for the delay, there isn't a workaround that I know of. I'll try and do a dot release in the next week or two once I'm more confident we've fixed this.

@alsajoo
Copy link

alsajoo commented Feb 8, 2015

Tried 3.6-SNAPSHOT and bug is still present. See stack trace below.

java.lang.NullPointerException
       at ade.onTrimMemory(RequestManagerFragment.java:74)
       at android.app.Fragment.performTrimMemory(Fragment.java:1769)
       at android.app.FragmentManagerImpl.dispatchTrimMemory(FragmentManager.java:1920)
       at android.app.Activity.onTrimMemory(Activity.java:1795)
       at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:4298)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:146)
       at android.app.ActivityThread.main(ActivityThread.java:5487)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
       at dalvik.system.NativeStart.main(NativeStart.java)

@sjudd
Copy link
Collaborator

sjudd commented Feb 8, 2015

That line number is out of date, it looks like you're using an old snapshot that doesn't contain the fix: https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/manager/RequestManagerFragment.java#L74. You may need to try forcing whatever build system you're using to refresh the dependencies for your project.

@erichkleung
Copy link

Hi, do you know when you will be doing the 3.5.2 release? Thanks!

@sjudd
Copy link
Collaborator

sjudd commented Feb 18, 2015

@erichkleung You can see target dates in milestones. Goal is this Friday the 20th unless more bugs come up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants