# Build timeout

**URL:** <https://forum.defold.com/t/build-timeout/21642>\
**Category:** Bugs\
**Created:** [June 8, 2018, 1:21am UTC](https://forum.defold.com/t/build-timeout/21642 "2018-06-08T01:21:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 1:21am UTC](https://forum.defold.com/t/build-timeout/21642/1 "2018-06-08T01:21:52Z")

</div>

![image](https://forum-defold-uploads.b-cdn.net/original/2X/c/c1c815a5541f5377326efe6c2f198c9cd5324b47.png)  
I use defold-win32 to build game, my game has some native extension, when I build the game, Defold editor hang for about 10 minutes, and then tell me the timeout result. This happens almost every time when building the game. It won’t happen in macosx

Anyone could help?

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 2:13am UTC](https://forum.defold.com/t/build-timeout/21642/2 "2018-06-08T02:13:11Z")

</div>

I’m in china, I visit [https://build.defold.com](https://build.defold.com), it has response:

 ![image](https://forum-defold-uploads.b-cdn.net/original/2X/4/46d2bf8edda267d770303a44a30a9829776f80d2.png)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 8, 2018, 4:49am UTC](https://forum.defold.com/t/build-timeout/21642/3 "2018-06-08T04:49:24Z")

</div>

@Mathias_Westerdahl, anything in our logs?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 8, 2018, 6:49am UTC](https://forum.defold.com/t/build-timeout/21642/4 "2018-06-08T06:49:03Z")

</div>

We’ve previously seen this problem when the internet connection is fairly slow, could this be the case?  
By checking the server logs, it seems it times out when the build is done, and it tries to send the result back to the user (\<5mb). I’m going to see if there’s a setting to increase the timeout from 30 seconds.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 6:59am UTC](https://forum.defold.com/t/build-timeout/21642/5 "2018-06-08T06:59:39Z")

</div>

Almost every time I build the game,It timeout.The point is, I need to wait 10 minutes(not 30 seconds).

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 8, 2018, 7:08am UTC](https://forum.defold.com/t/build-timeout/21642/6 "2018-06-08T07:08:20Z")

</div>

Yes, it’s a three step process: Upload, Build, and Download.  
The Upload/Download parts are dependent to the internet speed.

The Build part for Win32/Win64 is currently _very_ slow and we’re actively working on improving it (From several minutes down to only 5-10 seconds depending on content). We should have some improvements in a few releases from now.

In your case, the logs says it takes exactly 6 minutes, so if your build takes exactly 10 minutes (does it?), that means it took 4 minutes to upload your source. It’s relevant since I need to figure out a good timeout value for the Download step.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 7:12am UTC](https://forum.defold.com/t/build-timeout/21642/7 "2018-06-08T07:12:15Z")

</div>

The day before yesterday the build took exactly 10 minutes,But this morning,It took less than 10 minutes,about 6-8 minutes.  
Why the build part for win32/win64 very slow?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 8, 2018, 7:25am UTC](https://forum.defold.com/t/build-timeout/21642/8 "2018-06-08T07:25:46Z")

</div>

The tools we use in combination makes it very slow, so we’re replacing some of them.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 7:29am UTC](https://forum.defold.com/t/build-timeout/21642/9 "2018-06-08T07:29:10Z")

</div>

Right now, how long it takes in build part for win32/win64 ?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 8, 2018, 7:43am UTC](https://forum.defold.com/t/build-timeout/21642/10 "2018-06-08T07:43:35Z")

</div>

Right now it takes between 1-5 minutes.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 7:44am UTC](https://forum.defold.com/t/build-timeout/21642/11 "2018-06-08T07:44:33Z")

</div>

How about that for macosx?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 8, 2018, 7:49am UTC](https://forum.defold.com/t/build-timeout/21642/12 "2018-06-08T07:49:56Z")

</div>

Between 1-16 seconds (same for iOS).  
And these are the times we strive for for Win32/Win64 as well.  
We’re actively working on this.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 8, 2018, 7:52am UTC](https://forum.defold.com/t/build-timeout/21642/13 "2018-06-08T07:52:37Z")

</div>

OK, I just wait.Right now, I just not closing Defold editor.

---

<div class="post-metadata">

**Author:** ![joshua.winters](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@joshua.winters](https://forum.defold.com/u/joshua.winters)\
**Post date:** [June 9, 2018, 1:38am UTC](https://forum.defold.com/t/build-timeout/21642/14 "2018-06-09T01:38:37Z")

</div>

The static libraries used by the native extensions might be quite big (libprotobuf.a is bigger than 50 MB, for example), uploading these libraries take too much times, which make the build process is miserable for Chinese developers ( you know we have GFW, the build process take more than 10 minutes). I am wondering if the build server can cache the static libraries based on hash digest to avoid the repeating upload process? Of course, it would be great if you can open the build tool chains to the developers as I asked before. 😀

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 9, 2018, 1:46am UTC](https://forum.defold.com/t/build-timeout/21642/15 "2018-06-09T01:46:29Z")

</div>

![image](https://forum-defold-uploads.b-cdn.net/original/2X/f/f03f1e7e8047afa1db5dfcd1d430755b348778d2.png)  
Notice that the libprotobuf.lib used with win32 build is only 20MB, much less than the libprotobuf.a used with osx build.Why the build part of osx won’t timeout and build for win32 timeout?

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 9, 2018, 9:51am UTC](https://forum.defold.com/t/build-timeout/21642/16 "2018-06-09T09:51:56Z")

</div>

This timeout issue will cause my work stuck.So it is very urgent.I hope this issue solved as soon as possible.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 9, 2018, 10:05am UTC](https://forum.defold.com/t/build-timeout/21642/17 "2018-06-09T10:05:03Z")

</div>

Caching the libraries is definitely in the plans!  
First, we’ll fix the build step, next the caching.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 9, 2018, 10:06am UTC](https://forum.defold.com/t/build-timeout/21642/18 "2018-06-09T10:06:55Z")

</div>

OK,I hope defold be better and better

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 9, 2018, 10:09am UTC](https://forum.defold.com/t/build-timeout/21642/19 "2018-06-09T10:09:31Z")

</div>

Not sure really. The timeouts are when zipping the custom engine and writing the HTTP response. @nasthu and I are looking into this.

---

<div class="post-metadata">

**Author:** ![gerrykwok7](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gerrykwok7/32/12764_2.png) [@gerrykwok7](https://forum.defold.com/u/gerrykwok7)\
**Post date:** [June 12, 2018, 1:47am UTC](https://forum.defold.com/t/build-timeout/21642/20 "2018-06-12T01:47:49Z")

</div>

I think if it is difficult to speed up the build steps,it’s possible to extend the timeout times in win32 build, Such as 20 minutes.

[Next page](https://forum.defold.com/t/build-timeout/21642.md?page=2)
