out-of-memory

Coverflow with Out of Memory

拜拜、爱过 提交于 2019-12-02 18:28:01
问题 i am working on Windows 8 Phone Application. I have issue where i am loading image with text on top of the images one by one.Its called coverflow feature. I am getting Out of memory exception for (int j = 0; j < items.Count; j++) { for (int i = 0; i < items.Collection.Count; i++) { Myobj obj = items[j].Collection[i]; if (obj.correct == 1) { coverflow.Add(new CoverFlow(items[j].Text, answer.TextTwo)); } } } CarouselList.ItemsSource = coverflow; DataTemplate : <DataTemplate x:Key="DataTemplate1

Out of memory exception in c# when drawing trains in picturebox

南笙酒味 提交于 2019-12-02 18:13:31
问题 I am trying to create an application that shows the online trains in picturebox So to implement this i create a worker thread to get the online train position .so i define the thread as you can see here : private Thread workerThread = null; private delegate void UpdateListBoxDelegate(); private UpdateListBoxDelegate UpdateListBox = null; In Form_load i call these: UpdateListBox = new UpdateListBoxDelegate(this.UpdateStatus); // Initialise and start worker thread workerThread = new Thread(new

Tomcat on production server, PermGen and redeploys

时光怂恿深爱的人放手 提交于 2019-12-02 18:12:24
It looks like MemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space is a common problem. You can Increase the size of your perm space, but after 100 or 200 redeploys it will be full. Tracking ClassLoader memory leaks is nearly impossible. What are your methods for Tomcat (or another simple servlet container - Jetty?) on production server? Is server restart after each deploy a solution? Do you use one Tomcat for many applications ? Maybe I should use many Jetty servers on different ports (or an embedded Jetty) and do undeploy/restart/deploy each time ? I gave up on using the

How to solve java.lang.OutOfMemoryError: GC overhead limit exceeded error in android studio

℡╲_俬逩灬. 提交于 2019-12-02 18:06:33
I am using android studio 1.0 RC for 64 bit linux. When I run my application I am getting "java.lang.OutOfMemoryError: GC overhead limit exceeded" When I searched on how to solve this error I got solutions like add: -XX:-UseGCOverheadLimit to studio.vmoptions or studio64.vmoptions -Xmx2000m to studio.vmoptions or studio64.vmoptions etc. These did not work for me. Please help. Thanks in advance user3008777 I solved this issue by adding dexOptions { incremental true javaMaxHeapSize "4g" } to the android closure in build.gradle file. Found this answer in OutOfMemoryError: GC overhead limit

OutofMemoryError ImageView

試著忘記壹切 提交于 2019-12-02 16:38:18
问题 I have a problem with imageview, i have 77 picture jpg and have 126 quote text, just simple app i want is i want show all quote with background picture and i use viewflipper so when i swipe left/right get into next quote. I give you my code that i use now. Hope that anyone can help me.. Really wasting my time to fix it. My picture : 320x480. vf = (ViewFlipper) findViewById(R.id.pages); for (i = 0; i<totalphrase;i++) { Log.i("ID",""+i); var = arrayphrase.get(i); //iv.setBackgroundColor(Color

OutOfMemoryError when hot-deploying SpringMVC app to Tomcat7 - possible relation to log4j2

六眼飞鱼酱① 提交于 2019-12-02 16:11:17
问题 I am having trouble Hot Deploying a Spring-MVC 4.0 (not SpringBoot) Web Application. I am trying to go xml-less and just use JavaConfig. OutOfMemoryErrors result when I remove web.xml , or when I deploy an empty web.xml with nothing but an empty element . This does not happen every time the app is hot-deployed, and after a successful hot-deployment, the app does work correctly, but after three or four hot-deployments with this configuration the following error occurs: Jul 03, 2015 10:49:43 AM

Can the C++ `new` operator ever throw an exception in real life?

寵の児 提交于 2019-12-02 15:28:01
Can the new operator throw an exception in real life? And if so, do I have any options for handling such an exception apart from killing my application? Update: Do any real-world, new -heavy applications check for failure and recover when there is no memory? See also: How often do you check for an exception in a C++ new instruction? Is it useful to test the return of “new” in C++? Will new return NULL in any case? The new operator, and new[] operator should throw std::bad_alloc , but this is not always the case as the behavior can be sometimes overridden. One can use std::set_new_handler and

Outofmemeoryerror (viewpager + imageviews)

落花浮王杯 提交于 2019-12-02 15:19:15
i am showing 150+ images in viewpager, when page size crossed 70 app is crashing , all images are loading from network , and i have fallowed [link]: Strange out of memory issue while loading an image to a Bitmap object and i am recycling it whenever page swiping reaches 4, for 70 page app taking 200 MB of memory. i need help from you, how to handle it i have to show all pages with swiping... i have also used Runtime.getRuntime().gc(); is any way to releasing memory if app memory is reaches the 50+ MB thanks in advance The complete solution can be found below, the important lines are those in

Out of Memory : android.support.v7.app.AppCompatActivity.onCreate

血红的双手。 提交于 2019-12-02 13:56:23
we recently switched to using AppCompatActivity instead of FragmentActivity and now some devices are randomly crashing with the following error. No idea why this is happening. Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 16008012 byte allocation with 4277152 free bytes and 4MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java) at android.graphics.BitmapFactory.nativeDecodeAsset(BitmapFactory.java) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675) at

Huge heap dump (11GB) - Jhat failed & Eclipse MAT needed help

馋奶兔 提交于 2019-12-02 13:12:02
问题 We got a memory error in our EA and we used -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/some/dir to dump the heap at the time of OOM. We had a heap memory of 12GB and perm gen of 256MB. The heap dump is generated in the Linux box where we have our application running and its size is 11.5GB. We don't have privileges to download it to our local. When we tried to analyze that 11GB heap dump using JHAT it thrown an OOM. We tried the following commands from our Linux CLI. jhat java