out-of-memory

CarouselView Out Of Memory Exception

[亡魂溺海] 提交于 2019-12-12 03:06:07
问题 I am currently using a xamarin form version of Carousel View with ItemTemplate which have a list of templates e.g. public class TemplateSelector : DataTemplateSelector { private DataTemplate[] dataTemplates; public TemplateSelector() { dataTemplates = new DataTemplate[] { new DataTemplate (typeof (View1)), new DataTemplate (typeof (View2)), new DataTemplate (typeof (View3)), new DataTemplate (typeof (View4)), new DataTemplate (typeof (View5)), new DataTemplate (typeof (View6)), new

Memory error only in Spyder IDE

一个人想着一个人 提交于 2019-12-12 02:59:27
问题 doing the following causes a MemoryError in my Spyder Python IDE: >>> from numpy import * >>> a_flt = ones((7000,7000), dtype=float64)+4 >>> b_flt = ones((7000,7000), dtype=float64)+1 Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError >>> THis is weird, since the memory usage in the statusbar of Spyder shows that only approx. 25% of my memory is used. Furthermore, when generating even a higher number of these large 7000*7000 arrays in the standard Python IDE

How can i solve Magento Out of memory Fatal error?

与世无争的帅哥 提交于 2019-12-12 02:53:53
问题 Magento 1.9.x with xampp-win32-7.0.4 showing following type error randomly Fatal error: Out of memory (allocated 14680064) (tried to allocate 790528 bytes) in lib\Less\Parser.php on line 3719 Fatal error: Out of memory (allocated 134217728) (tried to allocate 16384 bytes) in lib\Varien\Image\Adapter\Gd2.php on line 74 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in lib\Zend\Db\Statement\Pdo.php on line 228 I try as following link but nothing

createBitmap() leads me into a java.lang.OutOfMemoryError

狂风中的少年 提交于 2019-12-12 02:33:22
问题 i try to rotate 3 imageViews (or better the Bitmaps behind them) every 10-100ms. i do the rotation like this: ImageView ivLoad; Bitmap bMapLoad; .... Matrix mat=new Matrix(); mat.reset(); mat.postScale(1.55f, 1.55f); mat.postRotate((float)currentLoadDegree+(float)LoadDegree); bMapLoad = Bitmap.createBitmap(bMapLoadgr, 0, 0, bMapLoadgr.getWidth(), bMapLoadgr.getHeight(), mat, true); ivLoad.setImageBitmap(bMapLoad); ivLoad.setScaleType(ScaleType.CENTER); .... the first time i start the app

OutOfMemory Exception when Creating Stream of 3 Digit Products

不打扰是莪最后的温柔 提交于 2019-12-12 02:18:29
问题 I wrote a function that produces a Stream[Long] consisting of the products of x-digit numbers. For example, 2 digit numbers is 1 to 99 (inclusive). def getXDigitProducts(x: Int): Stream[Long] = { val MAX = Math.pow(10, x) @tailrec def go(outer: Int, inner: Int, acc: Stream[Long]): Stream[Long] = (outer, inner) match { case (MAX, _) => acc case (_, MAX) => go(outer + 1, 1, acc) case (_, _) => go(outer, inner + 1, Stream[Long](outer * inner) ++ acc) } go(1, 1, Stream[Long]()) } Waltkthrough: >

Heap space error while executing logstash with a large dictionary (translate filter)

吃可爱长大的小学妹 提交于 2019-12-12 01:56:39
问题 I get an error java.lang.OutOfMemoryError: Java heap space while executing logstash with a large dictionary of 353 mega bytes in translate filter. I use it to do a lookup on my input data. I tried to allow the JVM to use more memory (with java -Xmx2048m). suppose i do it wrong because it has no effect. I tested my config file with "smaller" dictionary and it worked fine. Any help please ? how to give logstash enough RAM to not die ? My config file looks like that : input { file { type =>

System.OutOfMemoryException unhandled exception?

a 夏天 提交于 2019-12-12 01:53:12
问题 I'm working on a C# project for windows phone 8 that plays selected youtube videos.My app has 1 page, which has 3 Grids (1 for each of 3 States). Video Selection Menu (where I have an ItemsControl which has around 80-100 grids inside, where each of those grids has 2 textblocks, 1 image and a button inside them) Video Details Menu (Shows more info about the video the user selected on the "Video Selection Menu" and has a play button which gets you to the third State). Video (has a webbrowser

Completely remove scene in AndEngine

老子叫甜甜 提交于 2019-12-12 01:26:06
问题 To switch between levels in my game I recreate my GameScene, but but when I switch levels about 3 or 4 times I get an errno 12 out of memory error. I need to be able to somehow delete the whole scene and stop it from running in the background. Is there a way to do this so I don't run out of memory? EDIT: This is my method in which I load the new scene. public void loadGameScene(final Engine mEngine, final SharedPreferences sp, final String map) { setScene(loadingScene); ResourcesManager

OutOfMemory Error in ArrayList. Android

痞子三分冷 提交于 2019-12-12 01:05:47
问题 I am working on http get request on android. I receive a huge amount of json data from server, a string is unable to handle or store that data and getting OutOfMemory Exception. Then I tried to save it in arrayList which can store a maximum of Integer.Maximum value. but it is getting OutOfMemory exception while storing at ~8970 location. Here is my link which has json data. http://ec2-50-19-105-251.compute-1.amazonaws.com/ad/Upload/getitemlist10122013035042.txt here is my code: ArrayList

pandas get_group causes memory error

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:13:38
问题 I have a grouped dataframe created like so: my_gb = pandas.read_csv(filepath_or_buffer=my_file_path, delimiter='\t').groupby(['col1', 'col2', 'col3', 'col4']) I then call get_group : my_row = my_gb.get_group((val1, val2, val3, val4)) And get a MemoryError . IIUC, this only returns a view of one row (in my dataset) - how can this cause a memory error? 回答1: Couldn't get this to work so I did the grouping myself: data = pandas.read_csv(filepath_or_buffer=my_file_path, delimiter='\t') grouped = {