Android crash after few seconds, strange UI #141
Labels
No Label
1app
2 apps
accessibility
android
before-beta
bug
duplicate
enhancement
first-contact
fixed
help wanted
infrastructure
invalid
low-priority
must-fix
needs testing
nice-to-have
question
tor
user-feedback
wontfix
No Milestone
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/ui#141
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there. While trying to avoid making commitments, I'm looking at running a small ThinkAloud study on the Android app to compile some feedback on usability, for my own amusement mostly.
I've not worked with Android development before, but have got the package built, and pushed to an old test device using
adb
.However, when I open the app, it shows the following screen (which seems a bit too MVP), and then it closes a couple of seconds later.
Are there any debug or logging workflows that would help identify what might be causing this?
Possibly related #128, #131
Since you have adb working, you can access your device's debug output directly using logcat: https://developer.android.com/studio/command-line/logcat (depending on your setup, simply running "adb logcat" often works). If cwtch is crashing, you should get a crash log there, which would tell us what the problem is.
The reason the screenshot looks like that is that the app is waiting for your profile info to be loaded, and is probably crashing once the data arrives.
(We'll replace this with a proper loading screen at some point, but it's not a priority as it needs multiple profile support to be finished first.)
Thanks @erinn.
See the following pastebin with some of the debug output.
I think the most pertinent messages are a few hundred repeats of:
for almost every UI element.
In lines 307/308, the process dies
Though I can't quite pinpoint a message that causes the crash.
Oof okay, we've seen a similar problem before and it's probably related to the tor binary we bundle. What's the make/model and OS version of the device you're testing this on?
Probably a bit of a legacy one tbh, GT-i9305, Android 4.4.4
Thanks! We're going to add some better tor handling and debug messaging for Android soon, which should fix or help fix the problem.
If you're feeling impatient, I have a suspicion that replacing android/libs/armeabi-v7a/libtor.so with this file: https://git.openprivacy.ca/openprivacy/buildfiles/src/master/tor/tor-0.3.5.7-armeabi-v7a.so (you'll need to rename it to libtor.so) and rebuilding the APK might work.
No such luck unfortunately, similar debug logs, but thanks for the insight.
This is dilettante work only for me, so there's no rush in being able to play with the Android build.
Thanks again
So the "MVP" initial state is because the app hasn't finished loading and it's an order of mag slower on android. we've just pushed a splash screen that should at least cover that up until a successful load.
The crash remains more interesting and unsolved.
If you have it, I've found android studio good for debugging because it automatically connects to the debug process and reads and shows in UI the full logs
closing because we've done so much on android improvements this year. This is likely better, but if not feel free to reopen it, but the android service should likely have helped this problem