GithubHelp home page GithubHelp logo

"error in roaringArray.readFrom: did not find expected serialCookie in header" when reading a bitmap written by roaring64 about roaring HOT 5 CLOSED

wjohnson-aurora avatar wjohnson-aurora commented on June 11, 2024
"error in roaringArray.readFrom: did not find expected serialCookie in header" when reading a bitmap written by roaring64

from roaring.

Comments (5)

grantwwu avatar grantwwu commented on June 11, 2024 1

Note: sorting the input file seems to make replication way faster. Also, here's a smaller test case (also found by @wjohnson-aurora)

roaring_error_items_2_sorted.txt

from roaring.

lemire avatar lemire commented on June 11, 2024

The bug is absolutely real.

The issue is that when deserializing a 64-bit roaring bitmap, for some reason, the code first tries to deserialize a 32-bit version. I don't know why it is done, but in the instances you have created, it gets confused. It thinks it is dealing with a 32-bit bitmap, and then everything breaks after that.

(Of course, it is not, you serialize a 64-bit roaring bitmap.)

from roaring.

lemire avatar lemire commented on June 11, 2024

Feel free to review my potential fix at #410

Note that the data is not corrupted or any such thing. It is just that the code gets confused at the deserialization stage.

from roaring.

lemire avatar lemire commented on June 11, 2024

In fact, a review would be much appreciated.

from roaring.

wjohnson-aurora avatar wjohnson-aurora commented on June 11, 2024

Thank you for fixing this so quickly! I can confirm that commit 94aeb2b resolves this issue.

from roaring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.