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

Error when attempt to open large video files with fs.openFile() #2268

Open
ishigo1987 opened this issue Jul 13, 2023 · 0 comments
Open

Error when attempt to open large video files with fs.openFile() #2268

ishigo1987 opened this issue Jul 13, 2023 · 0 comments
Labels

Comments

@ishigo1987
Copy link

ishigo1987 commented Jul 13, 2023

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

        import {fs} from "tabris";
        fs.openFile({ type: "video/*", quantity: "single"}).then((file)=>{

            console.log(file)
        })
@ishigo1987 ishigo1987 added the bug label Jul 13, 2023
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