android - libzbarjni.so has text relocations. This is wasting memory and prevents security hardening -
in barcode scanner application, using zbar lib scanning barcode. thowing runtime exception outofmemoryerror.
anybody please resolve issue.
logcat:
2-16 13:06:01.635: w/linker(15501): libzbarjni.so has text relocations. wasting memory , prevents security hardening. please fix. 12-16 13:06:06.483: e/art(15501): throwing outofmemoryerror "failed allocate 53654136 byte allocation 16777216 free bytes , 47mb until oom" 12-16 13:06:06.483: e/androidruntime(15501): error reporting crash 12-16 13:06:06.483: e/androidruntime(15501): java.lang.outofmemoryerror: failed allocate 53654136 byte allocation 16777216 free bytes , 47mb until oom 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.abstractstringbuilder.enlargebuffer(abstractstringbuilder.java:95) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.abstractstringbuilder.append0(abstractstringbuilder.java:125) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.stringbuffer.append(stringbuffer.java:278) 12-16 13:06:06.483: e/androidruntime(15501): @ java.io.stringwriter.write(stringwriter.java:123) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.util.fastprintwriter.flushlocked(fastprintwriter.java:358) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.util.fastprintwriter.appendlocked(fastprintwriter.java:303) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.util.fastprintwriter.write(fastprintwriter.java:625) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.util.fastprintwriter.append(fastprintwriter.java:658) 12-16 13:06:06.483: e/androidruntime(15501): @ java.io.printwriter.append(printwriter.java:691) 12-16 13:06:06.483: e/androidruntime(15501): @ java.io.printwriter.append(printwriter.java:31) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.throwable.printstacktrace(throwable.java:324) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.throwable.printstacktrace(throwable.java:300) 12-16 13:06:06.483: e/androidruntime(15501): @ android.util.log.getstacktracestring(log.java:335) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.os.runtimeinit.clog_e(runtimeinit.java:59) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.os.runtimeinit.access$200(runtimeinit.java:43) 12-16 13:06:06.483: e/androidruntime(15501): @ com.android.internal.os.runtimeinit$uncaughthandler.uncaughtexception(runtimeinit.java:85) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.threadgroup.uncaughtexception(threadgroup.java:693) 12-16 13:06:06.483: e/androidruntime(15501): @ java.lang.threadgroup.uncaughtexception(threadgroup.java:690)
i getting error on devices because of memory issues. , resolved importing zbar whole lib code in workspace , using zbar lib app lib workspace instead of adding/keeping lib(.jar) in own application.
Comments
Post a Comment