The app encountered an error while creating the account (IMAP) and crashed when clicking on the "write email" feature

in #utopian-io8 years ago

Project Information

Repository : https://github.com/k9mail/k-9
Title : K-9 Mail
Publisher : K-9 Dog Walkers

Expected behavior

Supposedly, the user can not enter the "Inbox" page without setting up the server and connecting it. Also, the write email feature should have no errors.

Actual behavior

First problem

When I set up a new account by choosing an account type (IMAP), and after being on the server settings page, I accidentally exit the app, suddenly when I open the app again I'm already on the page "Inbox". Though I do not connect the server.

Second problem

And when I try to click the "write email" feature, suddenly the application crashes and exit by itself.

How to reproduce

First problem
  1. Install and open the app
  2. Next go to the "Set up a new account"
  3. Next fill in "Email address and Password"
  4. Next click "Manual setup"
  5. Next, select the account type "IMAP"
  6. Once in the "Incoming server settings" page, please exit the application.
  7. Next please log back into the application, then you will find the error as I experienced (you will suddenly be at "Inbox")
Second problem
  1. If you are already in the "Inbox" page, please click on the "Write email" feature. Then the application will crash and exit by itself. And when you try to log back in, the app returns to the page when it first installs.

  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 5.403

Recording Of The Bug

Proof of Work Done

Submitted the issue on GitHub: Click here
My GitHub Profile: https://github.com/ahyar92

Logcat

05-19 23:20:52.905 13739 13739 E AndroidRuntime: FATAL EXCEPTION: main
05-19 23:20:52.905 13739 13739 E AndroidRuntime: Process: com.fsck.k9, PID: 13739
05-19 23:20:52.905 13739 13739 E AndroidRuntime: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.fsck.k9/com.fsck.k9.activity.MessageCompose}; have you declared this activity in your AndroidManifest.xml?
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1801)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1514)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Activity.startActivityForResult(Activity.java:3978)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Activity.startActivityForResult(Activity.java:3939)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Activity.startActivity(Activity.java:4262)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Activity.startActivity(Activity.java:4230)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.fsck.k9.activity.compose.MessageActions.actionCompose(MessageActions.java:25)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.fsck.k9.activity.MessageList.onCompose(MessageList.java:1277)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.fsck.k9.fragment.MessageListFragment.onCompose(MessageListFragment.java:775)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.fsck.k9.activity.MessageList.onOptionsItemSelected(MessageList.java:812)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.Activity.onMenuItemSelected(Activity.java:2963)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.policy.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1151)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:616)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.view.View.performClick(View.java:5207)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:21177)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:742)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5527)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-19 23:20:52.905 13739 13739 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
Sort:  

Hi @ahyar92, thanks for noting and reporting this error. Unfortunately, similar contributions stating almost identical events as you have done here have been reported. This first issue opened on (2018-02-23) addresses the case of setting up the account, the contributor here affirmed it was possible to access the "Write a mail" button even after providing the wrong details. While in your case you got logged to an inbox page even when you had not completed set up. And in both cases, clicking "Write mail" causes the app to crash.

Now here is another issue, opened on (2018-03-02). While it is possible for this user to read mails, it becomes an issue to compose a new mail or reply an existing one. In the comments section of this issue, the problem is discussed in length with probable causes addressed.

So we can establish that the "Write a mail" button is buggy, also the set up process is plagued with error. And it is okay to say the developing team is well aware of these issues.

You can leave a helpful comment on any of the opened issues. It would not be nice to open a new one, the repo already has 710 unresolved issues to contend with.

I apologize for any inconvenience experienced as a result. I look forward to evaluating your future contributions.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

No problem sir, thank you @fego