JVips icon indicating copy to clipboard operation
JVips copied to clipboard

TestHistFindNdim tests crashes on macOS

Open warrenseine opened this issue 4 years ago • 3 comments

TestHistFindNdim1, TestHistFindNdim2, TestHistFindNdim10 (and no other test) crash the Surefire VM on macOS.

Here's the full log:

 ❯ mvn --batch-mode install                                                                                                                          [19:58:20]
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------< JVips:JVips >-----------------------------
[INFO] Building JVips 1.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ JVips ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory /Users/w.seine/Code/jvips/build/w64/JVips/src/main/c
[INFO] Copying 1 resource
[INFO] Copying 10 resources
[INFO] skip non existing resourceDirectory /Users/w.seine/Code/jvips/build/w64/inst/bin
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ JVips ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ JVips ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory /Users/w.seine/Code/jvips/build/w64/JVips/src/test/c
[INFO] Copying 1 resource
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:testCompile (default-testCompile) @ JVips ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/w.seine/Code/jvips/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (utest) @ JVips ---
[INFO] Surefire report directory: /Users/w.seine/Code/jvips/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.criteo.vips.VipsEnumTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Running com.criteo.vips.VipsContextTest
Jun 24, 2020 7:58:24 PM com.criteo.vips.Vips <clinit>
INFO: Using JVips dependencies installed on system
Jun 24, 2020 7:58:24 PM com.criteo.vips.Vips <clinit>
INFO: Trying to load JVips
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.097 sec
Running com.criteo.vips.VipsImageTest
(java:87553): GLib-GObject-CRITICAL **: 19:58:29.100: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(java:87553): VIPS-WARNING **: 19:58:29.228: ignoring palette (no quantisation support)
(java:87553): GLib-GObject-WARNING **: 19:58:29.348: value "0" of type 'gint' is invalid or out of range for property 'width' of type 'gint'
(java:87553): GLib-GObject-WARNING **: 19:58:29.348: value "0" of type 'gint' is invalid or out of range for property 'height' of type 'gint'
/bin/sh: line 1: 87553 Abort trap: 6           /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -jar /Users/w.seine/Code/jvips/target/surefire/surefirebooter4555575856702131074.jar /Users/w.seine/Code/jvips/target/surefire/surefire4472807010570093204tmp /Users/w.seine/Code/jvips/target/surefire/surefire_04571945823103541138tmp

Results :

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.452 s
[INFO] Finished at: 2020-06-24T19:58:33+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (utest) on project JVips: Execution utest of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

GObject warnings also appear on successful tests so we should ignore them. I already tried all recommended solution on this StackOverflow question.

warrenseine avatar Jun 24 '20 18:06 warrenseine

I'll @Ignore them while we investigate.

warrenseine avatar Jun 24 '20 18:06 warrenseine

I can't investigate on my side because I have any macOS devices. Does surefire provide readable reports? It's fine for me to temporary ignore these tests.

dbouron avatar Jun 25 '20 09:06 dbouron

Don't worry, I'll investigate on my side when I have time. I've logged this issue to be sure we won't leave these tests ignored forever.

warrenseine avatar Jun 25 '20 09:06 warrenseine