Skip to content

java.lang.OutOfMemoryError #69

@DIOGOODELLI

Description

@DIOGOODELLI

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions