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

OOM异常 #2884

Open
minorlai opened this issue Apr 17, 2024 · 3 comments
Open

OOM异常 #2884

minorlai opened this issue Apr 17, 2024 · 3 comments

Comments

@minorlai
Copy link

Current use version?

当前使用的版本是多少?

3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

偶现。图片压缩库

Describe the problem or provide an error log?

描述问题或提供错误log?

Fatal Exception: java.lang.OutOfMemoryError
Failed to allocate a 134217744 byte allocation with 92842600 free bytes and 88MB until OOM, target footprint 268435456, growth limit 268435456
java.util.Arrays.copyOf (Arrays.java:3670)

java.io.ByteArrayOutputStream.write (ByteArrayOutputStream.java:156)
top.zibin.luban.Checker.toByteArray (Checker.java:201)
top.zibin.luban.Checker.isJPG (Checker.java:28)
top.zibin.luban.Engine.compress (Engine.java:76)
top.zibin.luban.Luban.compressReal (Luban.java:213)
top.zibin.luban.Luban.compress (Luban.java:194)
top.zibin.luban.Luban.access$1000 (Luban.java:23)
top.zibin.luban.Luban$1.run (Luban.java:146)
android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:305)

java.lang.Thread.run (Thread.java:1012)
@shihuai2018
Copy link

解了没,同样遇到

@Mc-dashan
Copy link

我昨天也遇到了,去手机相册里找那张图片没有找到,但是用框架就有那张图片。不知道怎么解决呢

@shihuai2018
Copy link

shihuai2018 commented Apr 20, 2024 via email

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

3 participants