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

java.lang.OutOfMemoryError #69

Open
DIOGOODELLI opened this issue Feb 21, 2019 · 1 comment
Open

java.lang.OutOfMemoryError #69

DIOGOODELLI opened this issue Feb 21, 2019 · 1 comment

Comments

@DIOGOODELLI
Copy link

Hello, there is the error:

When I have to mix the tracks.

Caused by: java.lang.OutOfMemoryError: Failed to allocate a 96510344 byte allocation with 33554432 free bytes and 91MB until OOM

try {
Sound sound1 = start().withFile(new File(Controle.GLOBAL_PATH+"test3novo.wav")).convertIntoSound().stopWithSound();
Sound sound2 = start().withFile(new File(Controle.GLOBAL_PATH+"test3novo.wav")).convertIntoSound().stopWithSound();

        //Mix of two sounds using two threads for the file-to-sound conversion
        start ().inParallel (
                // operations
                prepare ().convertIntoSound ().build (),
                // timeout in seconds
                5,
                // classpath resources
                sound1, sound2)
                .mixAllInOneSound ().exportToFile(new File(Controle.GLOBAL_PATH+"new1.wav"));
    }catch (Exception e)
    {
        Controle.error = e.getMessage();
        //Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();
        e.printStackTrace();
    }

Can you help me?

@libetl
Copy link
Owner

libetl commented Feb 23, 2019

Hi.

Thanks for submitting this one.

I will take a look when I can.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants