Skip to content
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 pressing Enter twice #7

Closed
apm256 opened this issue Dec 9, 2014 · 11 comments
Closed

crash when pressing Enter twice #7

apm256 opened this issue Dec 9, 2014 · 11 comments
Labels

Comments

@apm256
Copy link

apm256 commented Dec 9, 2014

It's not a big deal, but astroid crashes when "Enter" is typed very quickly twice in the thread index list view.

@gauteh
Copy link
Member

gauteh commented Dec 9, 2014

what is the full error or stack trace?

@gauteh gauteh added the bug label Dec 9, 2014
@apm256
Copy link
Author

apm256 commented Dec 9, 2014

Here it is (it's easily reproducible with threads including a lot of messages):

  [info ] (20:56:07): ti_list: loading: 0000000000003856
  [debug] (20:56:07): ti: open thread: 0000000000003856 (1)
  [info ] (20:56:07): tv: load thread: 0000000000003856
  [info ] (20:56:07): db: opening db: "/home/apm/.mail"
  [info ] (20:56:07): db: open db read-only.
  [info ] (20:56:07): db: open in read-only mode.
  [info ] (20:56:07): db: open time: 0.531 ms.
  [info ] (20:56:07): msg: loading mid: A872230B672244BE95F45DE3BB6569E0@PCdeFONTAINE
  [info ] (20:56:07): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286593_0.20837.wilkie,U=15516,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: multipart/related
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 0
  [debug] (20:56:09): chunk: content-type: multipart/alternative
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 1
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: content-type: text/html
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multipart: preferred.
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multi part end
  [debug] (20:56:09): chunk: content-type: image/jpeg
  [debug] (20:56:09): chunk: part, id: 7939002CB9504A66BF969F6066AAE84B@PCdeFONTAINE
  [debug] (20:56:09): chunk: is part (viewable: 0, attachment: 1) 
  [debug] (20:56:09): chunk: multi part end
  [info ] (20:56:09): msg: loading mid: CALAeVkWLOgaHcgO0UmG6nBoBEJcArL_zhzVA5Ednav+v_e_FUA@mail.gmail.com
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286595_0.20837.wilkie,U=15525,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: multipart/related
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 0
  [debug] (20:56:09): chunk: content-type: multipart/alternative
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 1
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: content-type: text/html
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multipart: preferred.
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multi part end
  [debug] (20:56:09): chunk: content-type: image/jpeg
  [debug] (20:56:09): chunk: part, id: 7939002CB9504A66BF969F6066AAE84B@PCdeFONTAINE
  [debug] (20:56:09): chunk: is part (viewable: 0, attachment: 1) 
  [debug] (20:56:09): chunk: multi part end
  [info ] (20:56:09): msg: loading mid: 545B3DEC.5030609@gmail.com
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286596_0.20837.wilkie,U=15528,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [info ] (20:56:09): msg: loading mid: 0AEC1249026940A0B32BAC4CC62E0AE4@JJR
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286596_2.20837.wilkie,U=15530,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: multipart/related
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 0
  [debug] (20:56:09): chunk: content-type: multipart/alternative
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 1
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: content-type: text/html
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multipart: preferred.
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multi part end
  [debug] (20:56:09): chunk: content-type: image/jpeg
  [debug] (20:56:09): chunk: part, id: 350564709@06112014-1B2D
  [debug] (20:56:09): chunk: is part (viewable: 0, attachment: 1) 
  [debug] (20:56:09): chunk: multi part end
  [info ] (20:56:09): msg: loading mid: 201411061145.51720.asg@mvdbase.com
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286597_0.20837.wilkie,U=15531,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: Text/Plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [info ] (20:56:09): msg: loading mid: CALAeVkU=uapwe6ctjo_dg0CNAAD-XxZFGqxsW-ptF1NHLOkTkA@mail.gmail.com
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286600_1.20837.wilkie,U=15537,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: multipart/alternative
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 1
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: content-type: text/html
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multipart: preferred.
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multi part end
  [info ] (20:56:09): msg: loading mid: CALAeVkVAcH7wZb=93Dnm8hX_ctdZRuxY5-U1c-MB7L2sRQ2BAw@mail.gmail.com
  [info ] (20:56:09): msg: filename: /home/apm/.mail/myfree/INBOX/cur/1417286601_0.20837.wilkie,U=15538,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
  [debug] (20:56:09): chunk: content-type: multipart/alternative
  [debug] (20:56:09): chunk: multi part
  [debug] (20:56:09): chunk: alternative: 1
  [debug] (20:56:09): chunk: content-type: text/plain
  [debug] (20:56:09): chunk: preferred.
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: content-type: text/html
  [debug] (20:56:09): chunk: is part (viewable: 1, attachment: 0) 
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multipart: preferred.
  [debug] (20:56:09): chunk: multipart: added sibling
  [debug] (20:56:09): chunk: multi part end
  [info ] (20:56:09): db: opening db: "/home/apm/.mail"
  [info ] (20:56:09): db: open db read-write.
  [info ] (20:56:09): db: open in r/w mode.
  [info ] (20:56:09): db: open time: 3.3 ms.
  [info ] (20:56:09): tag_action: 0000000000003856, add: remove: unread, 
  [debug] (20:56:09): nm (0000000000003856): remove tag: unread
  [info ] (20:56:09): actions: emitted updated signal for thread: 0000000000003856
  [info ] (20:56:09): til: got updated thread signal: 0000000000003856
  [debug] (20:56:09): db: checking if thread: 0000000000003856 matches query: tag:inbox and not tag:killed and not tag:sff and not tag:rss
  [debug] (20:56:09): db: thread in query check: 0.411 ms.
  [debug] (20:56:09): til: updated: did not find thread, time used: 0.658 ms.
  [info ] (20:56:09): til: got updated thread signal: 0000000000003856
  [debug] (20:56:09): db: checking if thread: 0000000000003856 matches query: tag:rss and not tag:killed
  [debug] (20:56:09): db: thread in query check: 0.187 ms.
  [debug] (20:56:09): til: updated: did not find thread, time used: 1.784 ms.
  [info ] (20:56:09): til: got updated thread signal: 0000000000003856
  [debug] (20:56:09): db: checking if thread: 0000000000003856 matches query: tag:inbox and not tag:killed and tag:list
  [debug] (20:56:09): db: thread in query check: 0.98 ms.
  [debug] (20:56:09): til: updated: found thread in: 1.214 ms.
  [debug] (20:56:09): til: updated
  [info ] (20:56:09): db: closing notmuch database.
  [info ] (20:56:09): db: closing db.
  [info ] (20:56:10): render: loading html..
  [debug] (20:56:10): tv: on_load_changed: 0
  [info ] (20:56:10): db: closing notmuch database.
  [info ] (20:56:10): db: closing db.
  [debug] (20:56:10): tv: activate item.
  Erreur de segmentation (core dumped)

@gauteh
Copy link
Member

gauteh commented Dec 9, 2014

Can you test PR #9?

@apm256
Copy link
Author

apm256 commented Dec 10, 2014

Thanks. I can not test it today, but I will do tomorrow!

@apm256
Copy link
Author

apm256 commented Dec 11, 2014

The same crash still occurs: I select a big thread never opened yet, I hit 'Enter' twice, and that leads to a core dump.

@gauteh
Copy link
Member

gauteh commented Dec 11, 2014

Ok, would you mind running with strace and posting the output?

@apm256
Copy link
Author

apm256 commented Dec 11, 2014

The last lines of the trace are here:
http://pastebin.com/aS5DZ1kF
Let me know if you need the full trace.

@gauteh
Copy link
Member

gauteh commented Dec 11, 2014

hm, can't really see any new information there.

please try the latest commit in the PR (76caac8). I don't manage to
reproduce the issue here, but i'll try some more.

@gauteh
Copy link
Member

gauteh commented Dec 11, 2014

That is: 4c38320

@apm256
Copy link
Author

apm256 commented Dec 11, 2014

Your latest commit seems to solve the issue. No more crashes here.

@gauteh
Copy link
Member

gauteh commented Dec 11, 2014

great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants