Skip to content
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

Bug: Java error when trying to load a file with 1 million row #230

Open
ovancantfort opened this issue Jan 23, 2025 · 0 comments
Open

Bug: Java error when trying to load a file with 1 million row #230

ovancantfort opened this issue Jan 23, 2025 · 0 comments
Labels

Comments

@ovancantfort
Copy link

sessionInfo() output

R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8

time zone: Europe/Paris
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] XLConnect_1.1.0

Additional environment information

No response

Description

In preparation of a work involving a large number of large files, I tried loading a large file (1 sheet containing 4 columns of ~ 1 million rows in an Excel table).

wb <- loadWorkbook("Datasmall.xlsx")

Loading fails with the error:
Error: RecordFormatException (Java): Tried to allocate an array of length 235,896,887, but the maximum length for this record type is 100,000,000.

Link to the dummy file: https://1drv.ms/x/s!And7fGFnBzSXt95AV7DjOpIOtoFRKw?e=ZpW0Lr

Expected behavior

Expected the loadWorkbook not to fail.

How to Reproduce

  1. download the dummy file: https://1drv.ms/x/s!And7fGFnBzSXt95AV7DjOpIOtoFRKw?e=ZpW0Lr
  2. try to load it :
    wb <- loadWorkbook("Datasmall.xlsx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant