Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestHistFindNdim tests crashes on macOS #35

Open
warrenseine opened this issue Jun 24, 2020 · 3 comments
Open

TestHistFindNdim tests crashes on macOS #35

warrenseine opened this issue Jun 24, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@warrenseine
Copy link
Contributor

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
Copy link
Contributor Author

I'll @Ignore them while we investigate.

warrenseine added a commit to warrenseine/JVips that referenced this issue Jun 24, 2020
@dbouron
Copy link
Contributor

dbouron commented Jun 25, 2020

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.

@warrenseine
Copy link
Contributor Author

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 added a commit to warrenseine/JVips that referenced this issue Jul 1, 2020
warrenseine added a commit that referenced this issue Jul 9, 2020
@warrenseine warrenseine added the bug Something isn't working label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants