-
Notifications
You must be signed in to change notification settings - Fork 46
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
memory map large files on windows #24
Comments
Update... I tried just mapping the file as 1gb chunks and I run into the same error after gig number 2... `// const file = path.join( remote.app.getAppPath(), 'pointclouds', 'las', 'test.las' ) console.time('test') results in: Uncaught Error: mmap failed, 0 |
Another update... If I allocate 4 1gb buffers on the same file starting at offset 0, there is also no issue. It seems like maybe the issue is the number being passed into either offset or size? |
@ozra So I actually fixed this by changing the type of the input arguments for size and offset to long longs.... idk if this breaks things on other architectures, but posting my answer here for anyone that runs into a similar problem. `
` |
We made https://github.com/ipinfo/mmap-utils with a fix for this. |
@ozra First off, really cool library. Any chance of adding support for mapping large files on windows? From the notes it seemed like that was limited to linux as of now? And I attempted a 3gb and mmap failed. Use case is visualizing large data sets like pointclouds.
The text was updated successfully, but these errors were encountered: