-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Crash when inputting the second character in any address field of the composer #3498
Comments
Looks like the app is crashing when trying to access the system's contacts provider. Can you provide an unfiltered log containing the stack trace (the lines containing |
Yes, sure (in the next couple of days). |
Ah, it works, when I let AlienDalvik access the system address book outside the Android container. But no other Android app (I am using / aware of) crashes in this situation, instead they just allow for manually inputting an (email) address. |
Oh, I can reproduce this crash with K-9 Mail 5.208 on my second ("production") SailfishOS phone (as soon as I turn the contacts access for Android apps off, but I usually have it switched on on this phone). |
This should be fixed once we switch to runtime permissions. See #2110. |
Thanks for the pointer. |
Still I took a log (as you suggested, hopefully it contains all relevant information), so you can technically confirm your assumption: mainlog_alogcat.txt and eventlog_alogcat.txt |
I consider this to be a bug in AlienDalvik. It's not even a SecurityException. |
Well, what difference does it make, if a Security Exception or a regular Exception is thrown? And what else than simply throwing an Exception could AlienDalvik, CyanogenMod, LineageOS and a couple of other "custom ROMs" do, which allow for retracting permissions for a long (i.e., before Google introduced the "runtime permissions API" with API level 26)? Yes, this issue is not a serious bug, but definitely a usability issue: One observes K-9 Mail to crash without hinting why! Look, K-9 is exceptional (there is no other mobile email client coming close to its rich functionality), thus I and many others depend on it for long. The reason why I still pursue this issue (although I know how to workaround it now), is that IMHO K-9 can easily deliver a good user experience even for the couple of 10000 AlienDalvik users and many 100000 users of aforementioned custom ROMs, if this aspect (i.e., permissions may be retracted under API levels < 26, causing exceptions) is also addressed when dealing with issue #2110. |
Throwing such exceptions breaks the API contract. I believe by now most custom ROMs should implement revoking permissions in a compliant way (i.e. if the app doesn't support runtime permissions accessing contacts works and returns an empty contact list; achieves the same, doesn't break apps). We don't catch unexpected exceptions because then there'd be no way to learn about them. K-9 Mail doesn't contain "phone home" functionality that would allow us to not crash but still learn about the exceptions. |
Sure, without the "Android runtime permissions" (as of API level >= 26), breaking the API contract is a logical consequence of simply retracting a permission, which has been granted upon installation of an app.
I would expect that to be the case for their releases based on AOSP >= 8.0 (API level >= 26), too.
Well, there is a way (actually a beaten path), i.e. via issue reports on Github, see issues #2110 and #3498. ;) Side note: Specifically AlienDalvik only allows for retracting the Contacts permission anyway (but globally, for all Android apps, which exacerbates the usability issue, as switching the Contacts permission off is not at all linked to a specific app, e.g. K-9). |
Although there are a couple of older reports WRT crashing composer window, they all seem to be fixed and none seems to be similar.
Expected behavior
Enter addresses successfully in composer window.
Actual behavior
K-9 Mail always crashes, when typing the second character in any address field of the composer window (i.e., To:, CC: and BCC:).
Steps to reproduce
Environment
Logs
Notes
IIRC K-9 Mail 5.008 was working fine with the same environment and configuration.
The text was updated successfully, but these errors were encountered: