DavMail crashes on MacOS Mojave
Brought to you by:
mguessan
Running "Current version: 5.2.0-trunk" (as said in about) on MacOS Mojave. Note v.5.2.0 is not available as milestone in ticket creator.
I started running DavMail yesterday and have had it crash on me 4 times. I'm prompted if I want to send a log to Apple, but how would you like me to report the crash here?
Weird, used to be stable on OSX, the only crashes are related to SWT on linux.
This may related to recent changes on OSX Java API. Can you please confirm which JDK version you have ?
I know very little about Java, so it's best if you can have the program give the approriate diagnostics (or suggest specific commands). The panel from MacOS system prefs reports Java 8 Update 211. This is what I installed to get it working.
That said, from iTerm2:
See my other comment, I need to work on this to build a working version on recent Java versions.
Ok, made much progress on this in latest trunk:
https://www.azul.com/downloads/zulu-community/?&os=macos&package=jre-fx
As there is no dmg package for ZuluFX, we have to set it manually:
Experimental, embed Zulufx in DavMail.app:
Run DavMail.app => will use embedded ZuluFX JDK
I still don't know where to "embed" a "JRE directory". My directory looks like this:
Where, specifically, do I put ZuluFX ?
With:
Zulufx will be in
/Applications/DavMail.app/jre
=> you will have a /Applications/DavMail.app/jre/bin/java executable
Okay, did so and it's now running; we'll see if it crashes...
This is what I've done so far:
https://www.oracle.com/technetwork/java/javase/
Where am I supposed to move the directory zulu11.33.15-ca-fx-jre11.0.4-macosx_x64/ in DavMail.app/Contents ? I don't know what a jre directory is.
Do I even need Zulufx?
Only if you want to use O365Interactive mode.
By default DavMail.app will use installed JDK (Oracle JDK 12 in your case)
Just in case you want to test ZuluFX, open a terminal where DavMail.app is located and run:
replace /path/to with actual path
=> this is not persistent
=> if you want to make it the default for DavMail, embed it as described above
Odd. I don't have Zulufx installed, but in settings O365Interactive is still selected and things seems to be working. (Again with Java from homebrew and latest 5.3.0-trunk.app.)
Just had a crash. About says:
Current version: 5.3.0-trunk Latest version available: 5.3.1-3079 A new version of DavMail Gateway is available. Download latest version
Just install 5.3.1-trunk and notice a logging option. I enabled that (though I don't know what units of file size are).
DavMail and system logging are both visible in OSX console.
After a crash you should see a report in main OSX console with more information.
Please also consider trying with ZuluFX.
I experienced a crash and didn't see anything in the log I specified in the app. Which files specifically in OSX console would you want?
Running in background and crashed. System log attached.
According to various sources, the crash is related to OpenGL, and sometimes triggered by hibernate/wakeup or hardware change (connect to external screen...)
=> see https://bugs.openjdk.java.net/browse/JDK-8227005
=> Another user asked me to enable:
=> maybe we should try without this setting
=> we may also have to set java2d related properties:
Last edit: Mickael Guessant 2019-08-14
I think I'm running with Zulu and just experienced a crash.
Ok, so this is definitely an OpenJDK issue, do you have any idea of what could have triggered the crash ? What was the last message in davmail.log ?
Next step: try to disable opengl in Info.plist:
It often crashes in the background, when I'm not doing anything in Thunderbird. DavMail only gets used when I send email via a particular identity, which isn't often (until I'm back on campus). I added the key above and will report back.
Just crashed while TB was trying to use it for the first time today.
Just crashed while doing nothing in the background.
If I can provide you any other diagnostic/logging about the crashing; just tell me how and I will! :)
I'm back in my campus office for the semester and DavMail managed to run all day without a crash. Generally, my home machine and work machine are similar. Not sure what is different and which would prompt crashes at my home office.
My work machine doesn't have the Zulu and GL tweaks, so backing that back out at home and seeing if that helps.