You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
public void PlaySvgaFromAssets(final String svgafilename, final Boolean activateantialies){
try {
SVGAParser parser = new SVGAParser(context);
parser.decodeFromAssets(svgafilename, new SVGAParser.ParseCompletion(){
@Override
public void onComplete(SVGAVideoEntity videoItem) {
SVGAImageView svga = getObject();
videoItem.setAntiAlias(activateantialies);
svga.setVideoItem(videoItem);
svga.startAnimation();
}
@Override
public void onError() {
}
}, null);
} catch (Exception e) {
}
}
--------- beginning of crash
java.lang.OutOfMemoryError: Failed to allocate a 852464 byte allocation with 54936 free bytes and 53KB until OOM, target footprint 402653184, growth limit 402653184
at java.util.Arrays.copyOf(Arrays.java:3161)
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:191)
at SVGAParser.inflate(SVGAParser.kt:505)
at SVGAParser.decodeFromInputStream$lambda-14(SVGAParser.kt:308)
at SVGAParser.lambda$qQmMepCHi6TnT4_chtkqzWrN89w(Unknown Source:0)
at -$$Lambda$SVGAParser$qQmMepCHi6TnT4_chtkqzWrN89w.run(Unknown Source:14)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
thats how i load the svga
--------- beginning of crash
java.lang.OutOfMemoryError: Failed to allocate a 852464 byte allocation with 54936 free bytes and 53KB until OOM, target footprint 402653184, growth limit 402653184
at java.util.Arrays.copyOf(Arrays.java:3161)
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:191)
at SVGAParser.inflate(SVGAParser.kt:505)
at SVGAParser.decodeFromInputStream$lambda-14(SVGAParser.kt:308)
at SVGAParser.lambda$qQmMepCHi6TnT4_chtkqzWrN89w(Unknown Source:0)
at -$$Lambda$SVGAParser$qQmMepCHi6TnT4_chtkqzWrN89w.run(Unknown Source:14)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
The text was updated successfully, but these errors were encountered: