# Execution of build is in an endless loop

**URL:** <https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803>\
**Category:** Processing for Android\
**Created:** [October 21, 2020, 4:36pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803 "2020-10-21T16:36:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Quark](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Post date:** [October 21, 2020, 4:36pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803/1 "2020-10-21T16:36:24Z")

</div>

I’m building a sketch for a Samsung Tab A. Everything seems to be connected and going OK, but the build has completed about 50 tasks and is stuck on the last one shown here. What to do? (Processing under Win10)  
…

> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug  
> Task :app:transformDexArchiveWithDexMergerForDebug  
> Task :app:mergeDebugJniLibFolders  
> Task :app:transformNativeLibsWithMergeJniLibsForDebug

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [October 21, 2020, 4:40pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803/2 "2020-10-21T16:40:34Z")

</div>

Download the app APDE on Play Store and test your sketch in app mode, to see if there is any error.

---

<div class="post-metadata">

**Author:** ![Dr.Quark](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Post date:** [October 21, 2020, 8:35pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803/3 "2020-10-21T20:35:59Z")

</div>

Noel, I’ll do that.

In the mean time I closed processing, but it didn’t kill the lock file. I couldn’t kill Java SE binary, so I shut down and restarted. This time Processing built the sketch and it now resides in the Tab A, but there is an animation error. The error messages are:

FATAL EXCEPTION: Animation Thread  
Process: processing.test.hvac\_display, PID: 28113  
java.lang.ArrayIndexOutOfBoundsException: src.length=2 srcPos=0 dst.length=37 dstPos=0 length=37  
at java.lang.System.arraycopy(Native Method)  
at processing.core.PGraphics.vertex(PGraphics.java:1427)  
at processing.core.PShape.drawGeometry(PShape.java:1721)  
at processing.core.PShape.drawImpl(PShape.java:1615)  
at processing.core.PShape.draw(PShape.java:1598)  
at processing.core.PGraphics.shape(PGraphics.java:3095)  
at processing.core.PApplet.shape(PApplet.java:9668)  
at processing.test.hvac\_display.HVAC\_display.draw(HVAC\_display.java:435)  
at processing.core.PApplet.handleDraw(PApplet.java:1852)  
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)  
FATAL EXCEPTION: Animation Thread  
Process: processing.test.hvac\_display, PID: 28356  
java.lang.ArrayIndexOutOfBoundsException: src.length=2 srcPos=0 dst.length=37 dstPos=0 length=37  
at java.lang.System.arraycopy(Native Method)  
at processing.core.PGraphics.vertex(PGraphics.java:1427)  
at processing.core.PShape.drawGeometry(PShape.java:1721)  
at processing.core.PShape.drawImpl(PShape.java:1615)  
at processing.core.PShape.draw(PShape.java:1598)  
at processing.core.PGraphics.shape(PGraphics.java:3095)  
at processing.core.PApplet.shape(PApplet.java:9668)  
at processing.test.hvac\_display.HVAC\_display.draw(HVAC\_display.java:435)  
at processing.core.PApplet.handleDraw(PApplet.java:1852)  
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)

I have no clue what to do with these, but I’ll start with the ADPE app.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [October 21, 2020, 9:08pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803/4 "2020-10-21T21:08:39Z")

</div>

> [@Dr.Quark](#):
>
> ArrayIndexOutOfBoundsException

ArrayIndexOutOfBoundsException is clearly an array limit error in the code.
