Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
87 views

Why DirectByteBuffer keeps data on JVM heap instead of native memory in Android?

I wanted use ByteBuffer.allocateDirect to keep data on native memory but it looks like it keeps data on heap. I used this code to check that DirectByteBuffer keeps data on heap. import android.util....
Денис Рязанцев's user avatar
6 votes
1 answer
6k views

Minify WithR8 throws java.lang.OutOfMemoryError: Java heap space

I'm facing a problem when trying to compile my app from command line using following command: ./Project/gradlew -b ./Project/sampleapp/build.gradle assembleProd -x lint --stacktrace But command throws ...
Victor Laerte's user avatar
9 votes
2 answers
24k views

Waiting for a blocking GC Alloc in Android studio logs

I have a pretty large double array of say 1,71,00,000 elements. I need to traverse through the array, slice the array in smaller arrays of 10k points each and the remaining points(if any) into the ...
Sayan Sen's user avatar
  • 1,824
2 votes
4 answers
2k views

Cant start Android studio on mac after updating VM options

On Android studio, when running an apk on my device, I started getting java heap size issues. So I updated the VM options of Android studio using help>Edit custom vm options as recommended. I did a ...
ND27's user avatar
  • 437
0 votes
0 answers
36 views

Determining maximum usable memory android app

I have an arraylist of byte array ( Arraylist<byte[]>). I am trying to read maximum amount of bytes from a file into memory.What's the best way to do it. How can i know the maximum available ...
Arpit Khurana's user avatar
0 votes
1 answer
111 views

Heap object (i.e. class instance) representation difference between Dalvik and JVM

How are objects in heap represented in Dalvik VM and JVM, respectively, in terms of the object size and field order. Are they the same (like mirror)? Is it possible to migrate the heap objects in DVM ...
Infinite's user avatar
  • 3,438
2 votes
2 answers
5k views

cordova Error occurred during initialization of VM

I'm new to phonegap & cordova, I have created phonegap project, however when I try to build the project using the command "cordova build" I get the below error message: FAILURE: Build failed with ...
Abhijit Patil's user avatar
103 votes
8 answers
154k views

Android Gradle Could not reserve enough space for object heap

I've installed Android Studio 1.1.0. I haven't done anything yet like start new Android application or import anything. Somehow it is trying to build something and it throws sync error. Error:Unable ...
GummDev's user avatar
  • 1,170
0 votes
2 answers
252 views

Keep getting not enough space for object heap in java

I am trying to run the vFileServe of project anarchy, but i always have this error even though i set a parameter on my java Here is my error Loading deploy parameters from Source\Vision\Samples\...
gamdevNoobie's user avatar
26 votes
1 answer
108k views

JAVA_OPTS for increasing heap size

I want to increase my Heap size. How can I use JAVA_OPTS for doing so.I am getting the following error may be this is because of low heap size UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: ...
dead programmer's user avatar