# Java lang out of memory error help needed

**URL:** https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909
**Category:** Off Topic
**Tags:** design
**Created:** [June 9, 2018, 5:24pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909 "2018-06-09T17:24:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![muhammad\_zahid](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@muhammad\_zahid](https://community.thunkable.com/u/muhammad_zahid)
#### Post date: [June 9, 2018, 5:24pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/1 "2018-06-09T17:24:32Z")

</div>

i have these errors for one of published app in google play console crashes & ANRS. 1st one is under crashes here is the error.!

---

<div class="post-metadata">

### Author: ![yusufcihan](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yusufcihan](https://community.thunkable.com/u/yusufcihan)
#### Post date: [June 9, 2018, 6:56pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/2 "2018-06-09T18:56:02Z")

</div>

- Are you using too many screens?
- Are you using high resolution pictures?

---

<div class="post-metadata">

### Author: ![AMIT\_Raj](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@AMIT\_Raj](https://community.thunkable.com/u/AMIT_Raj)
#### Post date: [June 9, 2018, 7:10pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/3 "2018-06-09T19:10:48Z")

</div>

Friend this must be case of using too many pictures with high resolution which also have large size so i prefer you to use compressed version of these pictures to avoid such crash. You can use pic resize or any other service as you like. Good Luck!

---

<div class="post-metadata">

### Author: ![Nathan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nathan/32/19552_2.png) [@Nathan](https://community.thunkable.com/u/Nathan)
#### Post date: [June 9, 2018, 7:48pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/4 "2018-06-09T19:48:01Z")

</div>

It’s possible you have too many **High-Res Images, Too Many Images, or Too Many Screens** , I don’t know if this could be one but, make a backup before you do this… It could also be because, of too many components.

---

<div class="post-metadata">

### Author: ![muhammad\_zahid](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@muhammad\_zahid](https://community.thunkable.com/u/muhammad_zahid)
#### Post date: [June 9, 2018, 8:01pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/5 "2018-06-09T20:01:08Z")

</div>

Yusufcihan’ nathan and amit thank u 4r ur reply. Yes I use 29 virtical arrangements for each display on only one screen. PICS resolution is 200 for each. Is the problem only with pics so I can reduce it and republish app. Do input dispachin error under ANTs is due to same issue…

---

<div class="post-metadata">

### Author: ![Taifun](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/taifun/32/1547_2.png) [@Taifun](https://community.thunkable.com/u/Taifun)
#### Post date: [June 9, 2018, 9:10pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/6 "2018-06-09T21:10:15Z")

</div>

see tip 2  
[http://community.thunkable.com/t/general-tips-and-tricks-for-thunkable/5158?u=taifun](http://community.thunkable.com/t/general-tips-and-tricks-for-thunkable/5158)  
Taifun

---

<div class="post-metadata">

### Author: ![muhammad\_zahid](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@muhammad\_zahid](https://community.thunkable.com/u/muhammad_zahid)
#### Post date: [June 10, 2018, 4:23am UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/7 "2018-06-10T04:23:54Z")

</div>

Thank you @AMIT_Raj @Nathan@yusufcihan and @Taifun yes I used correctly the switching between all layouts. I use button to display image and on click play sound on each arrangement. Next and previous buttons for moving to other layouts.I got the answer for error no.1 which is about java Lang out of memory but can u guide me about 2nd error mentioned above which is about input dispatching timeout.(waiting bcuz no window has focus but there is a focused application that may eventually add a window when it finishes starting up).

---

<div class="post-metadata">

### Author: ![Taifun](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/taifun/32/1547_2.png) [@Taifun](https://community.thunkable.com/u/Taifun)
#### Post date: [June 10, 2018, 5:11pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/8 "2018-06-10T17:11:56Z")

</div>

> [@muhammad\_zahid](#):
>
> can u guide me about 2nd error mentioned above which is about input dispatching timeout.

see your other thread  
[http://community.thunkable.com/t/how-to-fix-input-dispatching-timed-out-anr-error-opinion-required/30974?u=taifun](http://community.thunkable.com/t/how-to-fix-input-dispatching-timed-out-anr-error-opinion-required/30974)  
Taifun

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/java-lang-out-of-memory-error-help-needed/30909/9 "2024-11-08T12:02:34Z")

</div>


