signalapp / Signal-Android

A private messenger for Android.
https://signal.org
GNU Affero General Public License v3.0
25.65k stars 6.16k forks source link

MMS logout #1968

Closed blocman closed 6 years ago

blocman commented 10 years ago

Textsecure in Android 4.4.4, liteflow

SMS works as expected, I won't be logged out unless the time limit that I establish has been met. However any time I receive a NEW MMS notification and I'm in another app, or not viewing THAT MMS conversation, I'll have to enter my password to view it.

Thanks

mcginty commented 10 years ago

@blocman can you please post a debug log of when this happens so we can get a bit more info about what's happening under the hood? I can't reproduce this.

blocman commented 10 years ago

Trying to reproduce the issue now so it'll be fresh in the log. Weird thing.. the only person available for messaging at the moment also uses textsecure, and sent me a picture MMS which worked fine. Of course. I'm going to retry with group messaging with others not using textsecure like what was driving me insane last night.

blocman commented 10 years ago

Got it to glitch out. http://hastebin.com/ayuweyovin

Please let me know what you think..

mcginty commented 10 years ago

Relevant section below. Thanks so much, @blocman! Will look into it.

--------- beginning of /dev/log/system
E/AndroidRuntime( 8007): FATAL EXCEPTION: main
E/AndroidRuntime( 8007): Process: org.thoughtcrime.securesms, PID: 8007
E/AndroidRuntime( 8007): java.lang.RuntimeException: Unable to get provider org.thoughtcrime.securesms.providers.PartProvider: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@437e71c8 (pid=8007) when registering receiver android.content.IIntentReceiver$Stub$Proxy@437dd7b8
E/AndroidRuntime( 8007):    at android.app.ActivityThread.installProvider(ActivityThread.java:4777)
E/AndroidRuntime( 8007):    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4369)
E/AndroidRuntime( 8007):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4309)
E/AndroidRuntime( 8007):    at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 8007):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime( 8007):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 8007):    at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 8007):    at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 8007):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8007):    at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 8007):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 8007):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 8007):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 8007): Caused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@437e71c8 (pid=8007) when registering receiver android.content.IIntentReceiver$Stub$Proxy@437dd7b8
E/AndroidRuntime( 8007):    at android.os.Parcel.readException(Parcel.java:1465)
E/AndroidRuntime( 8007):    at android.os.Parcel.readException(Parcel.java:1419)
E/AndroidRuntime( 8007):    at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2330)
E/AndroidRuntime( 8007):    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1450)
E/AndroidRuntime( 8007):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1418)
E/AndroidRuntime( 8007):    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:474)
E/AndroidRuntime( 8007):    at org.thoughtcrime.securesms.providers.PartProvider.initializeMasterSecret(PartProvider.java:145)
E/AndroidRuntime( 8007):    at org.thoughtcrime.securesms.providers.PartProvider.onCreate(PartProvider.java:62)
E/AndroidRuntime( 8007):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime( 8007):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime( 8007):    at android.app.ActivityThread.installProvider(ActivityThread.java:4774)
E/AndroidRuntime( 8007):    ... 12 more
I/Process ( 8007): Sending signal. PID: 8007 SIG: 9
D/AndroidRuntime( 8021): Shutting down VM
W/dalvikvm( 8021): threadid=1: thread exiting with uncaught exception (group=0x41554ba8)
E/AndroidRuntime( 8021): FATAL EXCEPTION: main
E/AndroidRuntime( 8021): Process: org.thoughtcrime.securesms, PID: 8021
E/AndroidRuntime( 8021): java.lang.RuntimeException: Unable to get provider org.thoughtcrime.securesms.providers.PartProvider: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@432ddf48 (pid=8021) when registering receiver android.content.IIntentReceiver$Stub$Proxy@4323dc38
E/AndroidRuntime( 8021):    at android.app.ActivityThread.installProvider(ActivityThread.java:4777)
E/AndroidRuntime( 8021):    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4369)
E/AndroidRuntime( 8021):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4309)
E/AndroidRuntime( 8021):    at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 8021):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime( 8021):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 8021):    at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 8021):    at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 8021):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8021):    at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 8021):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 8021):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 8021):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 8021): Caused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@432ddf48 (pid=8021) when registering receiver android.content.IIntentReceiver$Stub$Proxy@4323dc38
E/AndroidRuntime( 8021):    at android.os.Parcel.readException(Parcel.java:1465)
E/AndroidRuntime( 8021):    at android.os.Parcel.readException(Parcel.java:1419)
E/AndroidRuntime( 8021):    at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2330)
E/AndroidRuntime( 8021):    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1450)
E/AndroidRuntime( 8021):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1418)
E/AndroidRuntime( 8021):    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:474)
E/AndroidRuntime( 8021):    at org.thoughtcrime.securesms.providers.PartProvider.initializeMasterSecret(PartProvider.java:145)
E/AndroidRuntime( 8021):    at org.thoughtcrime.securesms.providers.PartProvider.onCreate(PartProvider.java:62)
E/AndroidRuntime( 8021):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime( 8021):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime( 8021):    at android.app.ActivityThread.installProvider(ActivityThread.java:4774)
E/AndroidRuntime( 8021):    ... 12 more
I/Process ( 8021): Sending signal. PID: 8021 SIG: 9
blocman commented 10 years ago

If it helps at all.. Nexus 5 running Stock 4.4.4 rooted, running Liteflow (full version) in case that isn't playing nice. Doesn't seem to happen when messaging with someone that is also using textsecure..

Really glad I could help.

rhodey commented 9 years ago

Looking into this I found that java.lang.SecurityException: Unable to find app for caller is most often related to an issue with passing Intent's that have large extras. I imagine that MMS related intents probably have large extras in comparison to SMS intents, so at least that much makes some sense.

this issue seems somewhat related to #1456 which is still open but kinda stale and #461 which is closed with a confirmed fix.

automated-signal commented 6 years ago

GitHub Issue Cleanup: See #7598 for more information.