gco / calibre2opds-gcode

Automatically exported from code.google.com/p/calibre2opds
GNU General Public License v3.0
0 stars 0 forks source link

Generating all books catalog => Comparison method violates its general contract #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Do not generate the "All books" catalog unchecked
2. Order the "all books" catalog by series checked
3. Press generate catalogs
4. Error raised when generating all books catalog:
23-04-2013 21:54:48,298 [] INFO com.gmail.dpierron.calibre.opds.Catalog - 
generating all books catalog
23-04-2013 21:54:48,300 [] ERROR com.gmail.dpierron.calibre.opds.Catalog -  
23-04-2013 21:54:48,300 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
*************************************************
23-04-2013 21:54:48,300 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
UNEXPECTED FATAL ERROR DURING CATALOG GENERATION.  SEE LOG FILE FOR MORE DETAIL.
23-04-2013 21:54:48,300 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
CAUSE: java.lang.IllegalArgumentException: Comparison method violates its 
general contract!: null
23-04-2013 21:54:48,300 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
MESSAGE: Comparison method violates its general contract!
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
STACK TRACE:
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.TimSort.mergeHi(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.TimSort.mergeAt(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.TimSort.mergeForceCollapse(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.TimSort.sort(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.TimSort.sort(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.Arrays.sort(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.util.Collections.sort(Unknown Source)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
com.gmail.dpierron.calibre.opds.BooksSubCatalog.sortBooksBySeries(BooksSubCatalo
g.java:118)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
com.gmail.dpierron.calibre.opds.AllBooksSubCatalog.sortBooks(AllBooksSubCatalog.
java:60)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
com.gmail.dpierron.calibre.opds.AllBooksSubCatalog.<init>(AllBooksSubCatalog.jav
a:26)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
com.gmail.dpierron.calibre.opds.Catalog.createMainCatalog(Catalog.java:788)
23-04-2013 21:54:48,301 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
com.gmail.dpierron.calibre.gui.Mainframe$3.run(Mainframe.java:358)
23-04-2013 21:54:48,302 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
java.lang.Thread.run(Unknown Source)
23-04-2013 21:54:48,302 [] ERROR com.gmail.dpierron.calibre.opds.Catalog - 
*************************************************
23-04-2013 21:54:48,302 [] ERROR com.gmail.dpierron.calibre.opds.Catalog -  

What is the expected output? What do you see instead?
When unchecking the order the "all books" catalog by series then the all books 
catalog is generated correct

What version of the product are you using? On what operating system?
Have been using 3.1.170 on Windows 7. After my last library updates with plenty 
new books in Calibre, I got the above error. Then tried 3.2.206, which gave the 
same error. Discovered that unchecking order by series in the all books catalog 
removed the error.

Please provide any additional information below.

Original issue reported on code.google.com by boerikpe...@gmail.com on 23 Apr 2013 at 8:05

GoogleCodeExporter commented 9 years ago
This issue should now be fixed in the latest downloadable releases.

Note that reporting issue here can easily get missed as it is not the site that 
is normally used for tracking calibre2opds issues.   Instead they normally go 
via http://calibre2opds.myjetbrains.com/youtrack/issues

Original comment by iti...@gmail.com on 15 Nov 2013 at 5:30