out-of-memory

Crashlytics isn't reporting any foreground OOMs

自古美人都是妖i 提交于 2019-12-10 10:04:37
问题 I've created OOM crashes by growing an infinitely large NSArray of NSStrings, and I've even tried calling exit(0) just to make it look like an OOM. While these things to have worked to terminate the app unexpectedly, I don't see any OOMs reported on Crashlytics and it doesn't call the delegate callback, crashlyticsDidDetectReportForLastExecution: , on the next run of the app. I'm running the app on a real device that is not connected to a simulator, and any other kind of crash/error it

cudaMalloc always gives out of memory

二次信任 提交于 2019-12-10 09:47:06
问题 I'm facing a simple problem, where all my calls to cudaMalloc fail, giving me an out of memory error, even if its just a single byte I'm allocating. The cuda device is available and there is also a lot of memory available (bot checked with the corresponding calls). Any idea what the problem could be? 回答1: Please try to call cudaSetDevice(), then cudaDeviceSynchronize() and then cudaThreadSynchronize() at the beginning of the code itself. cudaSetDevice(0) if there is only one device. by

Recycling bitmaps

旧时模样 提交于 2019-12-10 09:23:20
问题 I am working on project which involves operations on bitmaps. Because I don't want to have OutofMemoryError I'm trying to recycle each of unused bitmap. Unfortunatelly I've recycled too much and have 'trying to use a recycled bitmap' error. I am using: Bitmap.createBitmap(bmp, x,y,w,h, matrix, false); Bitmap.createScaledBitmap(bmp, w, h,true); Should I recycle bmp after this methods or it is recycled by them? Like: Bitmap newBitmap = Bitmap.createBitmap(bmp, x,y,w,h, matrix, false); bmp

MemoryError in R while read.xlsx

不羁的心 提交于 2019-12-10 01:27:04
问题 I am using the following R code (that utilizes the Java parameter to increase memory as well): library(xlsx) options(java.parameters = "-Xmx1g") library(XLConnect) NiVe <- read.xlsx("version1.xlsx",1) The version1.xlsx file is 13 MB in size. I get the following error: Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.OutOfMemoryError: Java heap space Can someone help? 回答1: Try to increase java Heap size(sufficient), by using: options(java.parameters = "

BitmapFactory.decodeStream() returns a Bitmap ~100 times more than original

五迷三道 提交于 2019-12-09 23:57:59
问题 I have a PNG image of 168.2KB and 1991x1756 and tried to import it into a Bitmap using BitmapFactory.decodeStream() . The problem is that I run into OutOfMemoryError where the Bitmap size ends up being 13,657KB. What I don't understand is why is the file so big after the import and how to mitigate this. Seems that this OutOfMemoryError issue is very common with decoded Bitmap images but can't find a way to fix it. Any ideas? Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null,

Why connection is terminating

做~自己de王妃 提交于 2019-12-09 18:13:39
问题 I'm trying a random forest classification model by using H2O library inside R on a training set having 70 million rows and 25 numeric features.The total file size is 5.6 GB. The validation file's size is 1 GB. I have 16 GB RAM and 8 core CPU on my system. The system successfully able to read both of the files in H2O object. Then I'm giving below command to build the model: model <- h2o.randomForest(x = c(1:18,20:25), y = 19, training_frame = traindata, validation_frame = testdata, ntrees =

Very strange OutOfMemoryError

对着背影说爱祢 提交于 2019-12-09 14:42:39
问题 As always, a lengthy problem description. We are currently stress testing our product - and we now we face a strange problem. After one to two hours, heap space begins to grow, the application dies sometime later. Profiling the application shows a very large amount of Finalizer objects, filling the heap. Well, we thought "might be the weird finalizer thread to slow" issue and reviewed for reducing the amount of objects that need to be finalized (JNA native handles in this case). Good idea

Maven import in Intellij IDEA runs out of memory on a large project

谁说我不能喝 提交于 2019-12-09 14:01:57
问题 Import of Maven project ends with Exception java.lang.OutOfMemoryError: GC overhead limit exceeded I've tried to define an environment variable: MAVEN_OPTS = -Xmx1g . I've tried to add -Xmx1g to Maven VM options via Settings -> Build Tools -> Maven -> Runner. Without success. What else can I do? 回答1: The solution is to set -Xmx1g (or more) in Maven VM options for importer (yes, it is a separate option!) . Go to "Settings -> Build Tools -> Maven -> Importing", and find the option there. Read

Jenkins - java.lang.OutOfMemoryError: PermGen space -

你。 提交于 2019-12-09 13:30:23
问题 Environment: Linux/Windows7, Java 1.6.0.03/37 or 1.7 I downloaded jenkins.war and after the initial setup using the following script/command, I downloaded some plugins(10-15) and tried to restart Jenkins, it worked. Then, I got some more plugins (30-40 in total) and either I chose Install or download+then+install, Jenkins didn't come up. i.e. using startJenkins.sh (Linux only). Note: On Windows7 Jenkins started as a Windows service. #!/bin/bash export JAVA_HOME=/production/jenkinsAKS/java

Out of Memory Exception in C#

不羁岁月 提交于 2019-12-09 13:28:04
问题 i am new to C#. Thus, i am not so sure what the problem is with my program. The program works with small image but it shows "Out of memory exeception" when it works with a large image which is about A4 size. However, the program would be useless if it cannot work with large image. How can I solve the problem? With thanks. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging;