Bug 368445 - kmail2 (v5.3.0) crashes : [warn] epoll_wait: Bad file descriptor
Summary: kmail2 (v5.3.0) crashes : [warn] epoll_wait: Bad file descriptor
Status: RESOLVED LATER
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 10:12 UTC by Ian
Modified: 2016-09-30 16:36 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2016-09-08 10:12:45 UTC
Been running kmail from the cli (as it doesn't seem to crash as much)and when i click on a folder to read an unread email, it crashes - not every time but a heck of a lot of times, and the this message "[warn] epoll_wait: Bad file descriptor" is repeatedly displayed on 
konsole when it crashes. There are so many of these messages i can't scroll 
back to the point where i launched kmail to see if there is a more important 
message that caused the crash. 

Reproducible: Sometimes

Steps to Reproduce:
1. run kmail2
2. click on  folder with unread emails
3. 

Actual Results:  
kmail2 crashes out, sometimes it loads drkonqi and sometimes it just crashes 

Expected Results:  
not to crash

Qt: 5.6.1
KDE Frameworks: 5.25.0
kf5-config: 1.0
KDE Plasma: 5.7.4
Kwin5: 5.7.4-152.2  
Kernel: 4.7.2-2-default
opensuse:tumbleweed:20160905
Nouveau: 1.0.12-1.4
Comment 1 Lemmiwinks 2016-09-18 07:40:51 UTC
Having the same problem with kmail2 5.3.0 (QtWebEngine) on Fedora 24.

Qt: 5.6.1
KDE Frameworks: 5.26.0
kf5-config: 1.0
Comment 2 Ian 2016-09-20 09:44:30 UTC
More crashes
~> kmail
Pass a valid window to KWallet::Wallet::openWallet().
 void AdblockManager::reloadConfig() false    AdBlock::AdblockManager(0x1684610)
this does not work on a KActionCollection containing actions!
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: 
org.kde.akonadi.ETM: Subtree:  2 QSet(9, 8, 7, 6, 5, 4, 3, 2, 15, 14, 13, 12, 11, 10)
org.kde.akonadi.ETM: collection: "inbox"
org.kde.akonadi.ETM: Fetch job took  310 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 14
org.kde.akonadi.ETM: first fetched collection: "Local Folders"
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: Fetch job took  363 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 2                                                                                                                           
org.kde.akonadi.ETM: first fetched collection: "Search"                                                                                                                                 
org.kde.akonadi.ETM: Fetch job took  179 msec                                                                                                                                           
org.kde.akonadi.ETM: was item fetch job: items: 12                                                                                                                                      
org.kde.akonadi.ETM: Fetch job took  117 msec                                                                                                                                           
org.kde.akonadi.ETM: was collection fetch job: collections: 0                                                                                                                           
org.kde.akonadi.ETM: collection: "Tumbleweed Factory"                                                                                                                                   
org.kde.akonadi.ETM: Fetch job took  272 msec                                                                                                                                           
org.kde.akonadi.ETM: was item fetch job: items: 2914                                                                                                                                    
 void AdblockManager::reloadConfig() false    AdBlock::AdblockManager(0x2dc4d80)                                                                                                        
this does not work on a KActionCollection containing actions!
Invalid address
sonnet.core: deleting 0x1b28870 for "en_GB"
sonnet.core: Unhandled script 126
sonnet.core: Unhandled script 127
sonnet.core: Unhandled script 128
sonnet.core: Unhandled script 129
sonnet.core: Unhandled script 130
sonnet.core: deleting 0x3515930 for "en_GB"
sonnet.core: deleting 0x352fee8 for "en_GB"
sonnet.core: deleting 0x7ffd094b12c0 for "en_GB"
sonnet.core: deleting 0x7ffd094b10a0 for "en_GB"
sonnet.core: deleting 0x7ffd094b1120 for "en_GB"
sonnet.core: deleting 0x7ffd094b10e0 for "en_GB"
sonnet.core: deleting 0x7ffd094b1160 for "en_GB"
sonnet.core: deleting 0x2e14570 for "en_GB"
sonnet.core: deleting 0x2e18fe8 for "en_GB"
sonnet.core: deleting 0x352c800 for "en_GB"
sonnet.core: deleting 0x3530bc8 for "en_GB"
org.kde.akonadi.ETM: collection: "opensuse.org"
org.kde.akonadi.ETM: Fetch job took  386 msec
org.kde.akonadi.ETM: was item fetch job: items: 4044
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
[0920/103726:ERROR:gles2_cmd_decoder.cc(12615)] [GroupMarkerNotSet(crbug.com/242999)!:380014B4C27F0000]GL ERROR :GL_OUT_OF_MEMORY : glTexStorage2DEXT: 
[0920/103726:FATAL:scoped_file.cc(29)] Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor
Unable to start Dr. Konqi
Unable to start Dr. Konqi
Comment 3 Ian 2016-09-20 09:45:29 UTC
More crashes 
opensuse:tumbleweed:20160917; Qt: 5.6.1; KDE Frameworks: 5.26.0; KDE Plasma: 5.7.95
kwin5-5.7.95-154.1.x86_64; kmail5-16.08.1-82.2.x86_64; Kernel:  4.7.3-1-default; Nouveau:  1.0.12_1.4

~> kmail
Pass a valid window to KWallet::Wallet::openWallet().
 void AdblockManager::reloadConfig() false    AdBlock::AdblockManager(0x1836340)
this does not work on a KActionCollection containing actions!
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: 
org.kde.akonadi.ETM: Subtree:  2 QSet(5, 4, 3, 2, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6)
org.kde.akonadi.ETM: collection: "inbox"
org.kde.akonadi.ETM: Fetch job took  295 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 14
org.kde.akonadi.ETM: first fetched collection: "Local Folders"
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM: Fetch job took  342 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 2
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: Fetch job took  153 msec
org.kde.akonadi.ETM: was item fetch job: items: 12
org.kde.akonadi.ETM: Fetch job took  167 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 0
org.kde.akonadi.ETM: collection: "opensuse.kde"
org.kde.akonadi.ETM: Fetch job took  82 msec
org.kde.akonadi.ETM: was item fetch job: items: 445
org.kde.akonadi.ETM: collection: "opensuse.org"
org.kde.akonadi.ETM: Fetch job took  312 msec
org.kde.akonadi.ETM: was item fetch job: items: 4042
org.kde.akonadi.ETM: collection: "KDE PIM"
org.kde.akonadi.ETM: Fetch job took  263 msec
org.kde.akonadi.ETM: was item fetch job: items: 3107
org.kde.akonadi.ETM: collection: "Hardware"
org.kde.akonadi.ETM: Fetch job took  58 msec
org.kde.akonadi.ETM: was item fetch job: items: 53
org.kde.akonadi.ETM: collection: "KDE"
org.kde.akonadi.ETM: Fetch job took  67 msec
org.kde.akonadi.ETM: was item fetch job: items: 156
org.kde.akonadi.ETM: collection: "Tumbleweed Factory"
org.kde.akonadi.ETM: Fetch job took  244 msec
org.kde.akonadi.ETM: was item fetch job: items: 2913
Invalid address
sonnet.core: deleting 0x40f51c0 for "en_GB"
sonnet.core: Unhandled script 126
sonnet.core: Unhandled script 127
sonnet.core: Unhandled script 128
sonnet.core: Unhandled script 129
sonnet.core: Unhandled script 130
sonnet.core: deleting 0x4b13c00 for "en_GB"
sonnet.core: deleting 0x4b1dd68 for "en_GB"
sonnet.core: deleting 0x4e81f50 for "en_GB"
sonnet.core: deleting 0x4e82348 for "en_GB"
sonnet.core: deleting 0x4b1c450 for "en_GB"
sonnet.core: deleting 0x4b1e588 for "en_GB"
sonnet.core: deleting 0x4b193e0 for "en_GB"
sonnet.core: deleting 0x4e81da8 for "en_GB"
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1004/kdeinit5__0
Unable to start Dr. Konqi
Comment 4 Michael 2016-09-24 14:55:09 UTC
Any news here? Facing the same problem (same with akregator)

Version
kmail2 5.3.0 (QtWebEngine)
KDE Frameworks 5.26.0
Qt 5.6.1 (kompiliert gegen 5.6.1)
Fedora 24  4.7.4-200.fc24.x86_64 #1 SMP Thu Sep 15 18:42:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Comment 5 nmset 2016-09-25 19:37:05 UTC
Same here :
Version 5.3.0 (QtWebEngine)
KDE Frameworks 5.26.0
Qt 5.7.0 (built against 5.7.0)
The xcb windowing system
ArchLinux

kmail got unusable.
Comment 6 Ian 2016-09-26 09:55:44 UTC
No news as far as i know, can't even tell if anyone has looked at it
Comment 7 Lemmiwinks 2016-09-27 21:12:19 UTC
Which graphics driver are you using? Are we all using nouveau?

I renamed kmail2rc in .~/.config/ to kmail2rc.old and got the following error when starting kmail:

bash-4.3$ kmail
"Tag 'a' is not defined in message {<__kuit_internal_top__>KMail has many powerful features that are described in th...}."
"Tag 'br' is not defined in message {<__kuit_internal_top__>Thank you,<br/>The KMail Team</__kuit_internal_top__>}."
this does not work on a KActionCollection containing actions!
QXcbConnection: XCB error: 3 (BadWindow), sequence: 632, resource id: 33823512, major code: 40 (TranslateCoords), minor code: 0
nouveau: kernel rejected pushbuf: No such file or directory
nouveau: ch21: krec 0 pushes 0 bufs 1 relocs 0
nouveau: ch21: buf 00000000 00000002 00000004 00000004 00000000
*** Error in `kmail': double free or corruption (fasttop): 0x0000559f6e7105b0 ***
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
Unable to start Dr. Konqi
Comment 8 nmset 2016-09-27 22:53:04 UTC
I 'm having these problems on one machine with nouveau.
No problems on two machines with fglrx, and another install with amdgpu-pro.
Comment 9 Michael 2016-09-28 16:00:19 UTC
Yes, nouveau driver (OpenGL ES 3.0 Mesa 12.0.3)
Comment 10 Lemmiwinks 2016-09-28 16:57:17 UTC
Looks like this is related to this bug in the nouveau driver, because of the use of multithreading in qtwebengine: https://bugs.freedesktop.org/show_bug.cgi?id=91632

Kmail now uses qtwebengine.

Hopefully there will be a fix for nouveau soon, as more and more programs use qtwebengine (qupzilla etc.).
Comment 11 BingMyBong 2016-09-29 07:24:16 UTC
(In reply to Lemmiwinks from comment #10)
> Looks like this is related to this bug in the nouveau driver, because of the
> use of multithreading in qtwebengine:
> https://bugs.freedesktop.org/show_bug.cgi?id=91632
> 
> Kmail now uses qtwebengine.
> 
> Hopefully there will be a fix for nouveau soon, as more and more programs
> use qtwebengine (qupzilla etc.).

That was originally logged in 2015, hopefully it been filtered out to the correct people