Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

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

Closed
GoogleCodeExporter opened this issue Sep 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

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

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant