Bug #1851
ChatSecure Crashes on Launch
Status: | Closed | Start date: | 09/11/2013 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | devrandom | % Done: | 0% | |
Category: | - | |||
Target version: | v12 - March Mantra | |||
Component: |
Description
Since installing the latest ChatSecure beta last night it Force Closes on every login.
Steps to reproduce:
1) Open app
2) Enter cacheword passphrase
3) Touch account to login
Logcat Trace:
I/ActivityManager( 1253): START u0 {cmp=info.guardianproject.otr.app.im/.app.NewChatActivity (has extras)} from pid 10507
D/CacheWordService(10507): detachSubscriber(): 1
D/CacheWordService(10507): timeout enabled: false, minutes=-1
D/CacheWordService(10507): mSubscriberCount: 1
D/CacheWordService(10507): disabled timeout alarm
D/Gibberbot.ImService(10525): OtrKeyManager+NOT+INIT%27d%3B+is+key+null%3F
D/Gibberbot.ImService(10525): OtrKeyManager+NOT+INIT%27d%3B+is+key+null%3F
D/Gibberbot.ImService(10525): OtrKeyManager+NOT+INIT%27d%3B+is+key+null%3F
E/GB.ImApp(10507): error setting up OTR session
E/GB.ImApp(10507): java.lang.NullPointerException
E/GB.ImApp(10507): at android.os.Parcel.readException(Parcel.java:1437)
E/GB.ImApp(10507): at android.os.Parcel.readException(Parcel.java:1385)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.IChatSession$Stub$Proxy.getOtrKeyManager(IChatSession.java:460)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.ChatView.initOtr(ChatView.java:902)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.ChatView.updateWarningView(ChatView.java:1384)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.ChatView.updateWarningView(ChatView.java:1363)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.ChatView.updateChat(ChatView.java:716)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.ChatView.bindChat(ChatView.java:858)
E/GB.ImApp(10507): at info.guardianproject.otr.app.im.app.NewChatActivity$ChatViewFragment.onCreateView(NewChatActivity.java:1454)
E/GB.ImApp(10507): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
E/GB.ImApp(10507): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:911)
E/GB.ImApp(10507): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
E/GB.ImApp(10507): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
E/GB.ImApp(10507): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
E/GB.ImApp(10507): at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:461)
E/GB.ImApp(10507): at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:163)
E/GB.ImApp(10507): at android.support.v4.view.ViewPager.populate(ViewPager.java:1064)
E/GB.ImApp(10507): at android.support.v4.view.ViewPager.populate(ViewPager.java:911)
E/GB.ImApp(10507): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1432)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/GB.ImApp(10507): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
E/GB.ImApp(10507): at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
E/GB.ImApp(10507): at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.onMeasure(CustomViewAbove.java:456)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
E/GB.ImApp(10507): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/GB.ImApp(10507): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/GB.ImApp(10507): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
E/GB.ImApp(10507): at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
E/GB.ImApp(10507): at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/GB.ImApp(10507): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
E/GB.ImApp(10507): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2451)
E/GB.ImApp(10507): at android.view.View.measure(View.java:15855)
E/GB.ImApp(10507): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)
E/GB.ImApp(10507): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1104)
E/GB.ImApp(10507): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)
E/GB.ImApp(10507): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
E/GB.ImApp(10507): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
E/GB.ImApp(10507): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
E/GB.ImApp(10507): at android.view.Choreographer.doCallbacks(Choreographer.java:562)
E/GB.ImApp(10507): at android.view.Choreographer.doFrame(Choreographer.java:532)
E/GB.ImApp(10507): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
E/GB.ImApp(10507): at android.os.Handler.handleCallback(Handler.java:730)
E/GB.ImApp(10507): at android.os.Handler.dispatchMessage(Handler.java:92)
E/GB.ImApp(10507): at android.os.Looper.loop(Looper.java:137)
E/GB.ImApp(10507): at android.app.ActivityThread.main(ActivityThread.java:5289)
E/GB.ImApp(10507): at java.lang.reflect.Method.invokeNative(Native Method)
E/GB.ImApp(10507): at java.lang.reflect.Method.in
D/AndroidRuntime(10507): Shutting down VM
W/dalvikvm(10507): threadid=1: thread exiting with uncaught exception (group=0x41c3c700)
D/HockeyApp(10507): Writing unhandled exception to: /data/data/info.guardianproject.otr.app.im/files/f1094ffe-402b-4e0b-b007-b985c8e5ab14.stacktrace
E/AndroidRuntime(10507): FATAL EXCEPTION: main
E/AndroidRuntime(10507): java.lang.NullPointerException
E/AndroidRuntime(10507): at android.os.Parcel.readException(Parcel.java:1437)
E/AndroidRuntime(10507): at android.os.Parcel.readException(Parcel.java:1385)
E/AndroidRuntime(10507): at info.guardianproject.otr.IOtrChatSession$Stub$Proxy.getChatStatus(IOtrChatSession.java:176)
E/AndroidRuntime(10507): at info.guardianproject.otr.app.im.app.ChatView.updateWarningView(ChatView.java:1389)
E/AndroidRuntime(10507): at info.guardianproject.otr.app.im.app.ChatView.updateWarningView(ChatView.java:1363)
E/AndroidRuntime(10507): at info.guardianproject.otr.app.im.app.ChatView.updateChat(ChatView.java:716)
E/AndroidRuntime(10507): at info.guardianproject.otr.app.im.app.ChatView.bindChat(ChatView.java:858)
E/AndroidRuntime(10507): at info.guardianproject.otr.app.im.app.NewChatActivity$ChatViewFragment.onCreateView(NewChatActivity.java:1454)
E/AndroidRuntime(10507): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460)
E/AndroidRuntime(10507): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:911)
E/AndroidRuntime(10507): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
E/AndroidRuntime(10507): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
E/AndroidRuntime(10507): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
E/AndroidRuntime(10507): at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:461)
E/AndroidRuntime(10507): at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:163)
E/AndroidRuntime(10507): at android.support.v4.view.ViewPager.populate(ViewPager.java:1064)
E/AndroidRuntime(10507): at android.support.v4.view.ViewPager.populate(ViewPager.java:911)
E/AndroidRuntime(10507): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1432)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/AndroidRuntime(10507): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
E/AndroidRuntime(10507): at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
E/AndroidRuntime(10507): at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.onMeasure(CustomViewAbove.java:456)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
E/AndroidRuntime(10507): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/AndroidRuntime(10507): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/AndroidRuntime(10507): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
E/AndroidRuntime(10507): at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
E/AndroidRuntime(10507): at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
E/AndroidRuntime(10507): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
E/AndroidRuntime(10507): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2451)
E/AndroidRuntime(10507): at android.view.View.measure(View.java:15855)
E/AndroidRuntime(10507): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)
E/AndroidRuntime(10507): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1104)
E/AndroidRuntime(10507): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)
E/AndroidRuntime(10507): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
E/AndroidRuntime(10507): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
E/AndroidRuntime(10507): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
E/AndroidRuntime(10507): at android.view.Choreographer.doCallbacks(Choreographer.java:562)
E/AndroidRuntime(10507): at android.view.Choreographer.doFrame(Choreographer.java:532)
E/AndroidRuntime(10507): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
E/AndroidRuntime(10507): at android.os.Handler.handleCallback(Handler.java:730)
E/AndroidRuntime(10507): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(10507): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(10507): at android.app.ActivityThread.main(ActivityThread.java:5289)
E/AndroidRuntime(10507): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(10507): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime(10507): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller
Associated revisions
cacheword: simplify logic and handle unencrypted properly
fixes #1851
History
#1 Updated by devrandom over 4 years ago
Could you back up the app data and try uninstalling/reinstalling? I think I saw something similar, which may be a backward compatibility issue with existing app data.
#2 Updated by pd0x over 4 years ago
devrandom wrote:
Could you back up the app data and try uninstalling/reinstalling? I think I saw something similar, which may be a backward compatibility issue with existing app data.
What's the best way to back up the relevant app data?
#3 Updated by devrandom over 4 years ago
TitaniumBackup (assuming you are rooted). I think adb also has a backup option.
#4 Updated by n8fr8 over 4 years ago
- Target version set to v12 - March Mantra
#5 Updated by n8fr8 over 4 years ago
- Status changed from New to Feedback
- Assignee set to pd0x
please test the next build, as we have some fixes addressing this
#6 Updated by n8fr8 over 4 years ago
- Status changed from Feedback to In Progress
- Assignee changed from pd0x to devrandom
tested Gibberbot v11 to v12 upgrade, and had a bunch of weird behavior:
- did not initially prompt me for any password/lockscreen, or give me the choice to switch to encrypted or not
- at some point, i did enter my new passphrase twice, confirmed, and saw my v11 accounts setup properly, but now I get this error EVERY time I unlock:
E/AndroidRuntime(23950): FATAL EXCEPTION: main
E/AndroidRuntime(23950): java.lang.RuntimeException: Trying to set encryption key to a new value
E/AndroidRuntime(23950): at info.guardianproject.otr.app.im.app.ImApp.setEncryptionKey(ImApp.java:449)
E/AndroidRuntime(23950): at info.guardianproject.otr.app.im.app.WelcomeActivity.onCacheWordOpened(WelcomeActivity.java:534)
E/AndroidRuntime(23950): at info.guardianproject.cacheword.CacheWordHandler.checkCacheWordState(CacheWordHandler.java:193)
E/AndroidRuntime(23950): at info.guardianproject.cacheword.CacheWordHandler.access$1(CacheWordHandler.java:169)
E/AndroidRuntime(23950): at info.guardianproject.cacheword.CacheWordHandler$2.onServiceConnected(CacheWordHandler.java:239)
E/AndroidRuntime(23950): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1106)
E/AndroidRuntime(23950): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1123)
E/AndroidRuntime(23950): at android.os.Handler.handleCallback(Handler.java:730)
E/AndroidRuntime(23950): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(23950): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(23950): at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime(23950): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(23950): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime(23950): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/AndroidRuntime(23950): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime(23950): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 532): Force finishing activity info.guardianproject.otr.app.im/.app.WelcomeActivity
#7 Updated by devrandom over 4 years ago
I'm a bit confused about the sequence of events. An upgrade should not ask you for encryption at all, since your existing DB is unencrypted and it's going to be used as is. What was the sequence of events where it asked you for a passphrase?
I'm going to try to replicate this.
#8 Updated by devrandom over 4 years ago
I was able to replicate, looking into it.
#9 Updated by n8fr8 over 4 years ago
- Status changed from In Progress to Resolved
latest cacheword fixes, commits, should address this issue.
that said, there can be states of v12 beta users with some corrupted data, requiring a "clear data", or uninstall-reinstall.
However, for v11 to v12 upgrades, and clean v12 installs, all is well.
#10 Updated by n8fr8 about 4 years ago
- Status changed from Resolved to Closed