Signal crashes on call screen
Signal sometimes crashes when making a call or when receiving incoming calls. Happened a few times just now, but I haven't seen this before, so I assume it is a regression in 3.10.0 or 3.11.0. Maybe #4971?
This is all I have so far:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.thoughtcrime.securesms, PID: 21218
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
at com.bumptech.glide.load.data.LocalUriFetcher.getId(LocalUriFetcher.java:69)
at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.getId(ImageVideoModelLoader.java:111)
at com.bumptech.glide.load.engine.Engine.load(Engine.java:148)
at com.bumptech.glide.request.GenericRequest.onSizeReady(GenericRequest.java:449)
at com.bumptech.glide.request.RequestFutureTarget.getSize(RequestFutureTarget.java:116)
at com.bumptech.glide.request.GenericRequest.begin(GenericRequest.java:272)
at com.bumptech.glide.manager.RequestTracker.runRequest(RequestTracker.java:37)
at com.bumptech.glide.GenericRequestBuilder.into(GenericRequestBuilder.java:661)
at com.bumptech.glide.GenericRequestBuilder$1.run(GenericRequestBuilder.java:722)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5294)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
maybe someone could try to update glide to 3.7.0 as @mcginty suggested in https://github.com/WhisperSystems/Signal-Android/issues/4732#issuecomment-177927381 and see if that helps?
Best steps I could find to reproduce:
- go to Android app settings
- force stop Signal
- go to Android contacts
- select a Signal contact
- select "Signal Call"
- Signal call screen is shown, crashes
I have not set a custom picture for this contact.
@haffenloher It did not crash when I git revert #4971
Can confirm this happens constantly with the same stacktrace when trying to secure call between iOS<->Android.
sounds like this is assigned to @haffenloher
@cascheberg can you post the unabridged log?
same: https://gist.github.com/b2b3ab492f053bd7030c
https://gist.github.com/36919550acb3d7f2556a The call notification is still there after the crash.
@peterpanondrugs that looks different, what problem are you experiencing?
I can't reproduce, but can you test that @cascheberg ?
Doesn't crash anymore, but instead (initially) shows the default photo instead of custom one. I guess that is somewhat expected?
What do you mean by initially? Does the contact have a photo?
Sorry, I first tested the initial config without the custom photo, that is fixed. But the current release also crashes if the contact does have a custom photo. So then I added a custom photo for that contact. For outgoing calls it now shows the default picture until the call status changes to ringing. This bug (the crash / default photo instead of custom) usually does not happen if Signal already has been loaded. Is this a problem regarding lazy loading of contact details? Not sure about how all that works...
The problem is that the recipient details are populated asynchronously, that's why the URI can be null. I haven't yet found a working way to delay the contact photo fetching until after the recipient details are updated.
@cascheberg Thanks I get it now. Can you try the latest master?
Great! Contact photo is updated in less than a second.
P.S. "asynchronous" is what I meant, not "lazy" ;)