-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fread cleanup prints error message in webR #5969
Comments
I really don't know how to debug webR issues. My instinct is to file with them first, however... cc @georgestagg |
I believe this is a manifestation of an Emscripten issue, emscripten-core/emscripten#20459, from the use of Lines 152 to 153 in 07fd933
Until Emscripten's support for In the meantime, from my reading of the data.table source code, the routine attempts to carry on even after showing this error. So, as you have observed, at least in the short term things should continue to work under webR even though the error is emitted. |
Thanks for the quick reply!
Thinking aloud here a bit. I am fine with such a patch here (we'd have to assign any related issues to you I think). If the issue might affect other installations of data.table (any OS/environment which has the same trouble with If it's truly isolated to Wasm environments, it may make more sense to maintain a patch in the fork, but OTOH we do maintain some |
Yes, I would consider it roughly the same. Emscripten can be thought of as another OS, just extremely similar to Linux. I think the best practice for true Unix portability would be to assume that
OK. I'll create a short PR with the required |
Just a quick note to add that this now seems to work without error in the latest webR at https://webr.r-wasm.org/v0.3.1/ So, AFAICT this issue can be closed. |
data.table is working quite fine in webR, but when using fread an error occurs (System errno 8 unmapping file: Bad file descriptor). Interestingly, the file loads but it throws an error neverthless. Same error occurs also for .gz files. Perhaps, it's just the fact that this runs in browser using wasm is not recognized, resulting in an error.
Resulting output:
`> install.packages("data.table")
Downloading webR package: data.table
This development version of data.table was built more than 4 weeks ago. Please update: data.table::update_dev_pkg()
This installation of data.table has not detected OpenMP support. It should still work but in single-threaded mode.
This is Emscripten. This warning should not normally occur on Windows or Linux where OpenMP is turned on by data.table's configure script by passing -fopenmp to the compiler. If you see this warning on Windows or Linux, please file a GitHub issue.
0.000s ( 0%) Rereading 0 columns due to out-of-sample type exceptions
0.004s Total
System errno 8 unmapping file: Bad file descriptor
Matrix products: default
locale:
[1] en_US.UTF-8 C en_US.UTF-8 en_US.UTF-8 en_US.UTF-8 C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.14.7
loaded via a namespace (and not attached):

[1] tools_4.3.2 webr_0.2.2.9000
`
The text was updated successfully, but these errors were encountered: