out-of-memory

Why is my c# paint method running out of memory?

依然范特西╮ 提交于 2019-12-07 11:43:42
问题 I'm new to c#, and trying to learn by writing some simple apps to get familiar with the syntax and .NET library. The most recent miniproject I took on is a polar clock like the one found here. One of the problems I noticed early on was that the app would constantly "flicker", which really took away from the presentation, so I read online about how to implement a double buffer, which eliminated this problem, but may or may not have something to do with the problem. Here is my onPaint method;

Out of memory exception reading and writing text file

安稳与你 提交于 2019-12-07 11:10:34
问题 I get an out of memory exception a few seconds after I execute the following code. It doesn't write anything before the exception is thrown. The text file is about half a gigabyte in size. The text file I'm writing too will end up being about 3/4 of a gigabyte. Are there any tricks to navigate around this exception? I assume it's because the text file is too large. public static void ToCSV(string fileWRITE, string fileREAD) { StreamWriter commas = new StreamWriter(fileWRITE); var readfile =

Volley OutOfMemoryError

爱⌒轻易说出口 提交于 2019-12-07 10:59:05
问题 We're getting an OutOfMemory error inside the Volley library while parsing the network response. This occurs with a large responses on crappy phones. Can this be avoided? Is there any way to tell Volley to parse the response in batches maybe? Here's the exception: 07-18 14:33:41.449 6130-6154/com.tinder E/AndroidRuntime: FATAL EXCEPTION: Thread-22 java.lang.OutOfMemoryError at java.lang.String.<init>(String.java:325) at java.lang.String.<init>(String.java:276) at com.android.volley.toolbox

Resharper throws OutOfMemoryException on big solution

佐手、 提交于 2019-12-07 10:46:48
问题 IDE Configuration: Visual Studio 2008 + Resharper 4.5.1 + Agent Smith 1.1.8. There is no any sophisticated configuration for last to add-ins. Solution description: 33 class libraries + web site with 200+ pages. Symptoms: After an hour of work under tuned on Resharper the IDE starts to throw the OutOfMemoryExection exceptions. Normal work is impossible only reopen Visual Studio can help. Does anybody has such problem? Is it possible to configure Resharper to consume less memory? What Resharper

Spark clean up shuffle spilled to disk

纵饮孤独 提交于 2019-12-07 09:18:35
问题 I have a looping operation which generates some RDDs, does repartition, then a aggregatebykey operation. After the loop runs onces, it computes a final RDD, which is cached and checkpointed, and also used as the initial RDD for the next loop. These RDDs are quite large and generate lots of intermediate shuffle blocks before arriving a the final RDD for every iteration. I am compressing my shuffles and allowing shuffles to spill to disk. I notice on my worker machines that my working directory

ImageAdapter and ListView (java.lang.OutOfMemoryError: bitmap size exceeds VM budget)

烂漫一生 提交于 2019-12-07 07:45:34
I'm using ListView to display images which I provide through an ImageAdapter class. it works great on my device (and on many other devices which I tested it on), but somehow when I'm using the emulator and I'm long-pressing the up/down button - I'm getting an outOfMemory error after 10-15 seconds. I tried clearing cache, canceling cache, etc. - nothing helped. I know this crash is pretty rare (i couldn't reproduced it on any "real" device), but I can see on DDMS that "GC freed" are getting bigger during that long press and I can't find a way to clear them. Any help will be appreciated, Tnx.

Out of Memory when using compresstojpeg on multiple YuvImage one at a time

霸气de小男生 提交于 2019-12-07 07:33:36
问题 I am building an app that buffers N camera frames and when the user taps a button it saves the photo using all the saved frames applying an effect. I am saving the photo and processing the frames on an AsyncTask . When I execute it, I remove everything from the screen and leave only a TextView to display the progress of saving the photo. Currently the AsyncTask doInBackground looks like this: protected Void doInBackground(Integer... params) { int w = mBuffer.get(0).getWidth(); int h = mBuffer

Apache Pig: OutOfMemory exception with simple GROUP BY in local mode

你说的曾经没有我的故事 提交于 2019-12-07 07:25:38
问题 I'm getting an OutOfMemory exception from Pig when trying to execute a very simple GROUP BY on a tiny (3KB), randomly-generated, example data set. The pig script: $ cat example.pig raw = LOAD 'example-data' USING PigStorage() AS (thing1_id:int, thing2_id:int, name:chararray, timestamp:long); grouped = GROUP raw BY thing1_id; DUMP grouped; The data: $ cat example-data 281906 13636091 hide 1334350350 174952 20148444 save 1334427826 1082780 16033108 hide 1334500374 2932953 14682185 save

Android Drawable vs Asset in Image loading performance

旧巷老猫 提交于 2019-12-07 07:11:35
问题 I'm android developer from Korea My project has features about loading large amount of huge bitmap (about 2,000 x 1,500px) I had a some experiments to compare time complexity and space complexity between Asset and Drawable By result, Asset is better than drawable in space complexity. When I load huge images using drawable, my app broken down with OutOfMemoryException : the bitmap size exceeds VM budget but when I load huge images using Asset, It works fine! Anybody know reason why this

Does System.Net.Http.HttpClient suffer from HttpWebRequest.AllowWriteStreamBuffering?

天大地大妈咪最大 提交于 2019-12-07 06:52:22
问题 I've been trying to use System.Net.Http.HttpClient to POST a larger file (+1GB) but it throws a SystemOutOfMemory exception: at System.Net.ScatterGatherBuffers.AllocateMemoryChunk(Int32 newSize) at System.Net.ScatterGatherBuffers..ctor(Int64 totalSize) at System.Net.ConnectStream.EnableWriteBuffering() at System.Net.HttpWebRequest.SetRequestSubmitDone(ConnectStream submitStream) at System.Net.Connection.CompleteStartRequest(Boolean onSubmitThread, HttpWebRequest request, TriState