"Fatal Error: java.lang.IllegalArgumentException: Comparison method violates its general contract!"

165 views
Skip to first unread message

bhbmacd

unread,
Feb 18, 2022, 10:58:04 AM2/18/22
to Maxent
Hello, 
Advice, please. I have not encountered this error message before -- this is failure 4 on attempt 4. Same error on two workstations, first tried new maxent download and Java install. Read Java bugs about TimSort vs legacy sort but not what I would tinker with if I should change a flag instead -- which appears to be the problem. Running batches using PPM approach, set background points to 100,000 -- so it takes awhile to fail. 

Environmental grids (30-m, fairly large extent but fine 2 months ago) and points as usual. My combination of flags is a little different than what I usually run, but nothing that in itself has caused a problem before. Possibilities: leave out -writebackgroundpredictions and/or -allowpartialdata? Use the GUI most of the time because I like it. Suggestions appreciated.

Thank you,
Beau

Here is the latest maxent log:
Thu Feb 17 18:15:58 PST 2022
MaxEnt version 3.4.4
Checking header of C:\GRIDS2\dem_main.grd
Checking header of C:\GRIDS2\hillshade_main.grd
Checking header of C:\GRIDS2\ne_ness_main.grd
Checking header of C:\GRIDS2\ppt_02_03_04.grd
Checking header of C:\GRIDS2\ppt_05_06_07.grd
Checking header of C:\GRIDS2\ppt_08_09_10.grd
Checking header of C:\GRIDS2\ppt_11_12_01.grd
Checking header of C:\GRIDS2\ppt_30yr_ann.grd
Checking header of C:\GRIDS2\slope_main.grd
Checking header of C:\GRIDS2\soil_aws2.grd
Time since start: 1.003
Checking header of C:\GRIDS2\soil_rzd2.grd
Checking header of C:\GRIDS2\soil_txt2.grd
Checking header of C:\GRIDS2\tmax_02_03_04.grd
Checking header of C:\GRIDS2\tmax_05_06_07.grd
Checking header of C:\GRIDS2\tmax_08_09_10.grd
Checking header of C:\GRIDS2\tmax_11_12_01.grd
Checking header of C:\GRIDS2\tmax_30yr_ann.grd
Checking header of C:\GRIDS2\tmin_02_03_04.grd
Checking header of C:\GRIDS2\tmin_05_06_07.grd
Checking header of C:\GRIDS2\tmin_08_09_10.grd
Checking header of C:\GRIDS2\tmin_11_12_01.grd
Time since start: 2.084
Checking header of C:\GRIDS2\tmin_30yr_ann.grd
Checking header of C:\GRIDS2\tri_main.grd
Checking header of C:\GRIDS2\twi2_main.grd
Reading samples from Model2_FinalPoints_Q_engelmannii.csv
Read samples: max memory 1258291200, total allocated 1069547520, free 1011830296, used 57717224, increment 57717224
Time since start: 4.717
Extractor: max memory 1258291200, total allocated 1069547520, free 1003402328, used 66145192, increment 8427968
Extracting random background and sample data
Time since start: 18749.398
43702472 points with values for all grids
Making features
makeFeatures: max memory 1258291200, total allocated 1069547520, free 733470680, used 336076840, increment 269931648
Fatal Error: java.lang.IllegalArgumentException: Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
        at java.base/java.util.TimSort.mergeHi(TimSort.java:903)
        at java.base/java.util.TimSort.mergeAt(TimSort.java:520)
        at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448)
        at java.base/java.util.TimSort.sort(TimSort.java:245)
        at java.base/java.util.Arrays.sort(Arrays.java:1233)
        at density.SampleSet.getNames(SampleSet.java:73)
        at density.Runner.start(Runner.java:357)
        at density.GUI$7.construct(GUI.java:342)
        at density.SwingWorker$2.run(SwingWorker.java:131)
        at java.base/java.lang.Thread.run(Thread.java:833)
Reply all
Reply to author
Forward
0 new messages