m2ci-msp / gradle-praat-wrapper-plugin

Praat provider for Gradle
GNU General Public License v3.0
0 stars 1 forks source link

Race condition can lead to build failures on MacOSX #21

Closed psibre closed 5 years ago

psibre commented 5 years ago

On MacOSX 10.12 Sierra, if multiple Gradle projects using this plugin are built in parallel, a race condition can appear where the Praat binary cannot be extracted and the build fails:

    > Task :praat FAILED
    hdiutil: attach failed - Resource busy

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':praat'.
    > Process 'command 'hdiutil'' finished with non-zero exit value 1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 53s
psibre commented 5 years ago

Also, on OSX 10.14 Mojave, this can happen:

    > Task :praat
    Checksumming Protective Master Boot Record (MBR: 0)…
    Protective Master Boot Record (MBR: : checksum failed with error 9.
    calculated CRC32 $00000000, expected   CRC32 $708B4783
    hdiutil: attach failed - Bad file descriptor

    > Task :praat FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':praat'.
    > Process 'command 'hdiutil'' finished with non-zero exit value 1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 41s
psibre commented 5 years ago

Original error also observed on OSX 10.11 El Capitan (though rarely).