Android "vspace" memory?

I would like to know a little more about what vspace memory is. Running from vspace memory when loading lib for our android games happens a lot as we tend to take as much bar as we can when we start the app. I couldn't find any information on this.

Here is the error message I receive:

11-11 16:00:57.057: ERROR/libEGL(946): load_driver(/system/lib/egl/libEGL_adreno200.so): Cannot load library: alloc_mem_region[847]: OOPS:    64 cannot map library 'libEGL_adreno200.so'. **no vspace available**.

      

What is vspace memory?

Some links / information on memory model for Android and Linux would be appreciated as well!

Thank!

+2


source to share


2 answers


vspace stands for "virtual [address space]".



On 32-bit systems, it is limited to 4 GB, and often 1/4 of it is reserved for the OS. Software binaries and dynamically loaded libraries must fit into the address space along with other mmapped files, the range of addresses used to store memory packets (heaps) and streams.

0


source


The VSpace concept is just a virtual space in the OS.

Are you running into this issue when trying to load the Shared Lib when launching a view view?

The system provides VSpace control. But in some customized Rom, sometimes VSpace may be misconfigured. I am encountering a problem in my program Load a shared library (system or mine) when I try to load a view that needs a lot of memory for a bitmap at the same time. I tried asking Rom systems engineer if they changed VSpace setting, but their answer just didn't do anything. But I finally solved the problem.

If your problem is similar to mine. Follow the tips below:



1) Use less png or jpg for less memory usage

2) Load all shared library before loading view.

Hope for this help. Thanks to

0


source







All Articles