Hanging when loading maildir? #96
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#96
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hello,
When I run
meli
it seems unable to load mymaildir
emails. The main window just showsloading...
, for as long as I let it run (and I've let it run for hours). The behavior is only slightly different betweenHEAD
andalpha-0.6.1
(I'll explain more below).Relevant section of my config:
I've tried to minimize the
maildir
itself, so the output oftree .mail/example.com
is below:Lastly, when using the
bcc
tool,opensnoop
I can see thatmeli
is opening files that seem to make sense: things like.mail/example.com/inbox/cur
, etc. (EDIT: It will not let me upload the log file. I will past the whole thing as a comment). One thing that's interesting is thatmeli
attempts to openlibgmime-3.0.so.0
a few times (looking in different places) before succeeding:The only difference (that I observed) between the
HEAD
and thealpha-0.6.1
versions is that theHEAD
version also outputs a long UUID looking thing followed byJobRequest::Watch
below theloading...
prompt in the main window.I am happy to continue debugging this and helping out, but I'm not sure where to look next.
I would also believe that this is an issue with my environment, but as far as I can tell I have all the dependencies installed.
I think this is a very cool project and I'd like to contribute, so if I've started on the wrong foot, please correct me!
The log file:
Thank you very much for taking the time for this bug report!
You probably have a notmuch account configured as well, this is why libgmime is called: it's called by libnotmuch. As for the hang, nothing comes to mind at the moment. Would you be willing to compile current HEAD with the feature
debug-tracing
enabled? Then you can run meli as follows:The file trace.log will be all
stderr
output from meli. I suspect there's a panic or deadlock somewhere in the maildir backend. There will probably be sensitive info in the log that you want to remove first. You might want to comment out other accounts in the config so that they don't pollute the log with irrelevant info.Hello again,
It looks like almost no debugging information is being printed. This is after I've run the following:
and then
The following is my
trace.log
:Which seems... incomplete. I'm definitely currently on
HEAD
(commit4829e13c
).Also, to be very clear, the application is responsive, I can bring up the help menu with
?
or bring up the mail compose screen, etc. It just never loads the emails in the maildir.I'm poking around to see if I can figure out where it's going wrong.
This is probably all good practice for me anyway as it's forcing me to take a tour of the codebase :)
And just so I'm certain, the docs here do not reflect the organization at
HEAD
, correct? I should build the rustdocs myself for that?This should build and run the project with the default features. Try
(note that the feature is
debug-tracing
notdebug-trace
)Yeah these are out of date, I think. If you build the docs yourself remember to include the flag
--document-private-items
. If you need any more help you can also join #meli on freenode!Ok, I just re-read your first post and noticed something.
This folder includes only the folder "inbox" and is not a maildir folder itself. I think what happens is that you don't endup with any subscribed folders since
inbox
=/=example.com/inbox
but there's no error/warning shown to you, but there should be. I assume there's a line in~/.local/meli/meli.log
telling you thatinbox
was configured but not found.In this case, the problem here is not showing a notice to the user and to stop showing "loading..." when there's nothing to load.
Hey again,
So I can confirm that changing
subscribed_mailboxes = ["inbox"]
tosubscribed_mailboxes = ["example.com/inbox"]
does the trick.This is a bit different to how I had
mutt
configured, which is I think what led to the confusion. e.g.:So first of all, thanks for your help!
Secondly, I will continue doing my exploration of the codebase in order to see if I can submit a patch that addresses the issue as you now describe it: that meli should state that it has nothing to load.
Thanks again for your patience and guidance!
Thank you as well for spending time with alpha software :)
The relevant code that checks the subscribed mailboxes is here:
https://git.meli.delivery/meli/meli/src/branch/master/src/conf/accounts.rs#L527
There can be a single check there if
mailbox_entries
is empty, and in that case log/show an error.