Menu

#715 DavMail crashes on MacOS Mojave

v5.3.1
open
nobody
None
7
2019-10-19
2019-07-31
No

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?

Discussion

1 2 > >> (Page 1 of 2)
  • Mickael Guessant

    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 ?

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-05

    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:

    ╰─➤  ls -ld /usr/bin/java
    lrwxr-xr-x 1 root wheel 74 Sep 27  2018 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java*
    
    ╰─➤  java -version
    openjdk version "12" 2019-03-19
    OpenJDK Runtime Environment (build 12+33)
    OpenJDK 64-Bit Server VM (build 12+33, mixed mode, sharing)
    
     
  • Mickael Guessant

    See my other comment, I need to work on this to build a working version on recent Java versions.

     
  • Mickael Guessant

    Ok, made much progress on this in latest trunk:

    As there is no dmg package for ZuluFX, we have to set it manually:

    • download zulufx
    • unzip it
    • set JAVA_HOME to zulufx path
    • open DavMail.app

    Experimental, embed Zulufx in DavMail.app:

    • download zulufx
    • unzip it to a new jre directory inside DavMail.app folder
    • edit DavMail.app/Contents/Info.plist and uncomment LSEnvironment key:
    <key>LSEnvironment</key>
    <dict><key>JAVA_HOME</key><string>jre</string></dict>
    

    Run DavMail.app => will use embedded ZuluFX JDK

     
    • Joseph Reagle

      Joseph Reagle - 2019-08-14

      I still don't know where to "embed" a "JRE directory". My directory looks like this:

      ╰─➤  ls  /Applications/DavMail.app/Contents
      Info.plist  Java/  MacOS/  Resources/
      

      Where, specifically, do I put ZuluFX ?

       
      • Mickael Guessant

        With:

        <key>LSEnvironment</key>
            <dict><key>JAVA_HOME</key><string>jre</string></dict>
        

        Zulufx will be in
        /Applications/DavMail.app/jre

        => you will have a /Applications/DavMail.app/jre/bin/java executable

         
        • Joseph Reagle

          Joseph Reagle - 2019-08-14

          Okay, did so and it's now running; we'll see if it crashes...

          reagle@hom /Applications/DavMail.app
          ╰─➤  mv ~/tmp/zulu11.33.15-ca-fx-jre11.0.4-macosx_x64 jre
          
           
  • Joseph Reagle

    Joseph Reagle - 2019-08-12

    Do I even need Zulufx?

     
  • Mickael Guessant

    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:

    export JAVA_HOME=*/path/to*/zulu11.33.15-ca-fx-jre11.0.4-macosx_x64
    open DavMail.app
    

    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

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-12

    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.)

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-13

    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

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-13

    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).

     
  • Mickael Guessant

    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.

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-13

    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?

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-14

    Running in background and crashed. System log attached.

     
  • Mickael Guessant

    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:

    <key>NSSupportsAutomaticGraphicsSwitching</key>
        <true/>
    

    => maybe we should try without this setting

    => we may also have to set java2d related properties:

    -Dsun.java2d.opengl=true/false
    
     

    Last edit: Mickael Guessant 2019-08-14
  • Joseph Reagle

    Joseph Reagle - 2019-08-14

    I think I'm running with Zulu and just experienced a crash.

     
  • Mickael Guessant

    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:

    <key>JVMOptions</key>
    <array>
        <string>-Dsun.net.inetaddr.ttl=60 -Xmx512m -Dsun.java2d.opengl=false</string>
    </array>
    
     
    • Joseph Reagle

      Joseph Reagle - 2019-08-15

      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.

       
  • Joseph Reagle

    Joseph Reagle - 2019-08-15

    Just crashed while TB was trying to use it for the first time today.

     
  • Joseph Reagle

    Joseph Reagle - 2019-08-16

    Just crashed while doing nothing in the background.

     
  • Joseph Reagle

    Joseph Reagle - 2019-09-03

    If I can provide you any other diagnostic/logging about the crashing; just tell me how and I will! :)

     
  • Joseph Reagle

    Joseph Reagle - 2019-09-10

    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.

     
  • Joseph Reagle

    Joseph Reagle - 2019-09-12

    My work machine doesn't have the Zulu and GL tweaks, so backing that back out at home and seeing if that helps.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB