eclipsesource / eclipsesource/tabris-js
Error when attempt to open large video files with fs.openFile()
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
When I try to open a large video file with fs.openFile(), I get this error:
Uncaught promise rejection (id: 1) Error: Failed to allocate a 728170944 byte allocation with 13522527 free bytes and 243MB until OOM, target footprint 27045055, growth limit 268435456
Error: Failed to allocate a 728170944 byte allocation with 13522527 free bytes and 243MB until OOM, target footprint 27045055, growth limit 268435456
at onError (./node_modules/tabris/tabris.min.js:1:144128)
> Uncaught promise rejection (id: 2) Error: Failed to allocate a 388005696 byte allocation with 13552917 free bytes and 243MB until OOM, target footprint 27105837, growth limit 268435456
Error: Failed to allocate a 388005696 byte allocation with 13552917 free bytes and 243MB until OOM, target footprint 27105837, growth limit 268435456
at onError (./node_modules/tabris/tabris.min.js:1:144128)
### Expected behavior
Open a large video file without error with fs.openFile(). I must point out that I managed to open the file with the usual cordova plugins, but for my case, i need to use fs.openFile()
### Environment
- Tabris.js version: 3.9
- Device: Redmi note 10 pro
- OS: Android 12
### Code snippet
```js
import {fs} from "tabris";
fs.openFile({ type: "video/*", quantity: "single"}).then((file)=>{
console.log(file)
})
```
Contributor guide
Assessment
This issue has not been assessed yet.