out-of-memory

out of memory error , my app's fault?

送分小仙女□ 提交于 2019-12-07 05:27:11
问题 i have a aplication on the android market , in wich exceptions and errors are catched and sent to me by acra. But i receive quite a lot out of memory errors.. In different kind of classes...some my app, some general java.. Does this always mean there is a problem in my app, or can it also be the phone ran out of memory due to a other process? Will users also get a fc dialog ? Additional Information There is nothing memory intensite in my app.. no images...no big chunks of data.. only a simple

Android onPictureTaken callback throws out of memory exception in Bitmap.decodeByteArray

北城余情 提交于 2019-12-07 05:17:45
问题 I own a Samsung Galaxy S3, which is capable of capturing pitures of size ~3000 x 2000. And, I am currently developing an application that requires capturing pictures. I use my phone as debugger and I set the best possible size that the device offers for the picture to be captured. However, if I use this setting, the callback onPictureTaken gives out of memory error at the very first line of it in Bitmap.decodeByteArray method where I try to decode the captured bytes into a bitmap. If I use

why do I get System.OutOfMemoryException even when there is about 700Mb of RAM free?

最后都变了- 提交于 2019-12-07 05:08:12
问题 I was running some test, to see the how my logging would perform is instead of doing File.AppendAllText I would first write to a memory stream and then copy to file. So, just to see how fast memory operation is I did this.. private void button1_Click(object sender, EventArgs e) { using (var memFile = new System.IO.MemoryStream()) { using (var bw = new System.IO.BinaryWriter(memFile)) { for (int i = 0; i < Int32.MaxValue; i++) { bw.Write(i.ToString() + Environment.NewLine); } bw.Flush(); }

Out of memory error while parsing a large JSON using Jackson library on Android

旧时模样 提交于 2019-12-07 04:51:23
问题 I am using Jackson library to parse a large JSON response from server. Size of the json is around 7-8 mb. I am getting the outOfMemoryError on this piece of code: ObjectMapper mapper = new ObjectMapper(); JsonNode rootParser = mapper.readValue(is, JsonNode.class); and this is the exception that I am getting: 01-14 13:13:20.103: E/AndroidRuntime(25468): FATAL EXCEPTION: Thread-13 01-14 13:13:20.103: E/AndroidRuntime(25468): java.lang.OutOfMemoryError 01-14 13:13:20.103: E/AndroidRuntime(25468)

Optimizing SceneKit performance with high-res textures

本小妞迷上赌 提交于 2019-12-07 04:27:37
问题 I'm a fairly experienced iOS developer but a total SceneKit newbie, trying to simulate some planets in a basic app. To that end, I'm using high-res normal and diffuse maps of Mars, Venus, etc, applied to basic spheres. And they work! They look awesome, exactly what I was going for. The problem is, I'm getting killed by the quality/memory tradeoff. I can scale down the dimensions of the textures to reduce the memory footprint, but below a certain resolution the results (especially the normal

Android Memory Leak : InputMethodManager, Bitmap

别来无恙 提交于 2019-12-07 03:35:51
问题 This is kind of weird, I'm able to get rid of my own memory leaks, but I'm not able to do the same in this case. Image below shows the heap contains Bitmap (like 2.5 MB) which is linked from current Activity (mDecor points to current Activity). I've tried to remove InputMethodManager instances all over the application, no effect I've tried setting default state of keyboard (if the bitmap is some kind of sprint drawable for system keyboard), still no effect android:windowSoftInputMode=

OutOfMemoryException when creating large ZIP file using System.IO.Packaging

末鹿安然 提交于 2019-12-07 02:58:08
问题 I am trying to debug an OutOfMemoryException that occurs when creating a fairly large ZIP file using System.IO.Packaging.ZipPackage . The code is iterating through a large list of objects, doing the following for each object. Serializing the object data to a temporary file. Creating a PackagePart for the file. Copy from a source System.IO.Stream to another: Source stream: FileStream Target stream: PackagePart::GetStream() => MS.Internal.IO.Zip.ZipIOModeEnforcingStream Finally it calls Package

Visual Studio Error: The “GenerateResource” task failed unexpectedly

此生再无相见时 提交于 2019-12-07 02:26:48
问题 When building a VS 2008 solution with 19 projects I sometimes get: The "GenerateResource" task failed unexpectedly. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.IO.MemoryStream.set_Capacity(Int32 value) at System.IO.MemoryStream.EnsureCapacity(Int32 value) at System.IO.MemoryStream.WriteByte(Byte value) at System.IO.BinaryWriter.Write(Byte value) at System.Resources.ResourceWriter.Write7BitEncodedInt(BinaryWriter store, Int32 value) at

How to analyze heap data from .hprof file and use it to reduce memory leaks?

∥☆過路亽.° 提交于 2019-12-07 02:18:14
问题 In recent times, I have encountered java.lang.OutOfMemoryError exception while running an application. During one such instance, I was able to get the heap dump using jvisualvm . I am able to open the .hprof heap dump file obtained from the heap dump using NetBeans 8.1 IDE but I am not aware of how to analyze the data dump. I'd like to know how to read the dump file and take corrective actions to reduce the out of memory exception from an application perspective. 回答1: There are many ways to

android java.lang.OutOfMemoryError

两盒软妹~` 提交于 2019-12-07 02:02:34
问题 when i download large data from website, i got this error information: I/global (20094): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required. D/dalvikvm(20094): GC freed 6153 objects / 3650840 bytes in 335ms I/dalvikvm-heap(20094): Forcing collection of SoftReferences for 3599051-byte al location D/dalvikvm(20094): GC freed 320 objects / 11400 bytes in 144ms E/dalvikvm-heap(20094): Out of memory on a 3599051-byte