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 #3629

Closed
SZn007 opened this issue Apr 29, 2019 · 12 comments
Closed

java.lang.NullPointerException #3629

SZn007 opened this issue Apr 29, 2019 · 12 comments
Labels

Comments

@SZn007
Copy link

SZn007 commented Apr 29, 2019

4.9.0:

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Stack trace / LogCat:

#2 main
java.lang.NullPointerException
Null reference used for synchronization (monitor-enter)

1 com.bumptech.glide.load.engine.EngineResource.release(SourceFile:107)
2 com.bumptech.glide.load.engine.Engine.release(SourceFile:286)
3 com.bumptech.glide.request.SingleRequest.releaseResource(SourceFile:340)
4 com.bumptech.glide.request.SingleRequest.clear(SourceFile:330)
5 com.bumptech.glide.manager.RequestTracker.clearRemoveAndMaybeRecycle(SourceFile:79)
6 com.bumptech.glide.manager.RequestTracker.clearRemoveAndRecycle(SourceFile:66)
7 com.bumptech.glide.RequestManager.untrack(SourceFile:630)
8 com.bumptech.glide.RequestManager.untrackOrDelegate(SourceFile:598)
9 com.bumptech.glide.RequestManager.clear(SourceFile:594)
10 com.bumptech.glide.request.target.PreloadTarget.clear(SourceFile:57)
11 com.bumptech.glide.request.target.PreloadTarget$1.handleMessage(SourceFile:25)
12 android.os.Handler.dispatchMessage(Handler.java:102)
13 android.os.Looper.loop(Looper.java:164)
14 android.app.ActivityThread.main(ActivityThread.java:6906)
15 java.lang.reflect.Method.invoke(Native Method)
16 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
17 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:820)
@joimxjtuse
Copy link

it looks like that this commit 53438b9?w=1 . fix this NPM crash. is it? @Judds

@SZn007
Copy link
Author

SZn007 commented Apr 29, 2019

then I can only reback to 4.7.1 to fix the problem now?

@sjudd
Copy link
Collaborator

sjudd commented May 1, 2019

That looks plausible.

You could also use the latest snapshot: http://bumptech.github.io/glide/dev/snapshots.html

@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

@stale stale bot added the stale label May 8, 2019
@stale stale bot closed this as completed May 15, 2019
@lina1
Copy link

lina1 commented Jun 26, 2019

We are facing the same issue while we are using glide Version 4.9. Please confirm which version has fixed this issue. Because 4.9 seems to be the latest one. @sjudd

@juliocatano
Copy link

juliocatano commented Jul 30, 2019

I have the same issue in my project:

Null reference used for synchronization (monitor-enter)
       at com.bumptech.glide.load.engine.EngineResource.release + 107(EngineResource.java:107)

@AshishAccedo
Copy link

Got same issue while using below libs:

api 'com.github.bumptech.glide:glide:4.9.0'
api 'com.github.bumptech.glide:annotations:4.9.0'
api 'com.github.bumptech.glide:okhttp3-integration:4.9.0'

Fatal Exception: java.lang.NullPointerException: Null reference used for synchronization (monitor-enter)
at com.bumptech.glide.load.engine.EngineResource.release + 107(EngineResource.java:107)
at com.bumptech.glide.load.engine.Engine.release + 286(Engine.java:286)
at com.bumptech.glide.request.SingleRequest.releaseResource + 340(SingleRequest.java:340)
at com.bumptech.glide.request.SingleRequest.clear + 330(SingleRequest.java:330)
at com.bumptech.glide.manager.RequestTracker.clearRemoveAndMaybeRecycle + 79(RequestTracker.java:79)
at com.bumptech.glide.manager.RequestTracker.clearRemoveAndRecycle + 66(RequestTracker.java:66)
at com.bumptech.glide.RequestManager.untrack + 630(RequestManager.java:630)
at com.bumptech.glide.RequestManager.untrackOrDelegate + 598(RequestManager.java:598)
at com.bumptech.glide.RequestManager.clear + 594(RequestManager.java:594)
at com.bumptech.glide.RequestBuilder.into + 654(RequestBuilder.java:654)
at com.bumptech.glide.RequestBuilder.into + 716(RequestBuilder.java:716)

@nickming
Copy link

I have the same issue in my project when I update to 4.9

@hamilton-urbano
Copy link

hamilton-urbano commented Aug 28, 2019

I'm facing the same issue, is there some news?

com.bumptech.glide.load.engine.EngineResource.release + 107 (EngineResource.java:107)
--
  | com.bumptech.glide.load.engine.Engine.release + 286 (Engine.java:286)
  | com.bumptech.glide.request.SingleRequest.releaseResource + 340 (SingleRequest.java:340)
  | com.bumptech.glide.request.SingleRequest.clear + 330 (SingleRequest.java:330)
  | com.bumptech.glide.manager.RequestTracker.clearRemoveAndMaybeRecycle + 79 (RequestTracker.java:79)
  | com.bumptech.glide.manager.RequestTracker.clearRemoveAndRecycle + 66 (RequestTracker.java:66)

Glide Version:

4.9.0

@andrewmunn
Copy link

andrewmunn commented Aug 28, 2019

This is the highest firing crash in our app, it would seem prudent to do a patch release to fix it.

@AshishAccedo
Copy link

Why this issue status is closed, did anyone tried below version? where it seems looking fixed:

http://bumptech.github.io/glide/dev/snapshots.html

@jocoders
Copy link

jocoders commented Aug 12, 2020

Any news? I have the same issue on my app from crashlytics:
Fatal Exception: java.lang.NullPointerException Null reference used for synchronization (monitor-enter) com.bumptech.glide.load.engine.EngineResource.release
Please let me know.

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

10 participants