iOS Question Hosted Builder reports Error: ** BUILD INTERRUPTED ** on a large B4i project

b4x-de

Active Member
Licensed User
Longtime User
Hi,

I have a large B4i project that is built with the hosted builder. The build is interrupted near the end, but I cannot find a real compiler or linker error in the log. The final error is only:

B4X:
Error: ** BUILD INTERRUPTED **

The generated Xcode build is very large. The log contains 508 CompileC steps before the build stops. The generated project contains hundreds of Objective-C .m files.

My current assumption is that this is not a B4X syntax issue and not a normal Xcode compiler/linker error, but possibly a timeout or resource limit on the hosted builder because the project is very large.

One additional observation: it seems to work sometimes. However, after a successful build, the next build often fails again with BUILD INTERRUPTED. I then have to switch the hosted builder from Primary to Secondary, or the other way around, before another successful build is possible. After that, the same pattern can repeat.

Questions:
  1. Is Error: ** BUILD INTERRUPTED ** expected when the hosted builder times out or cancels a long build?
  2. Are there known limits for hosted builder build time or project size?
  3. Is there a way to get a more specific reason for the interruption?
  4. Could the need to switch between Primary and Secondary hosted builder indicate a cache / cleanup / stale state issue on the builder side?
I can provide the full build log if needed. The log has about 11,600 lines and the file size is about 3.9 MB.

Thanks in advance for any help or hints,
Thomas
 

b4x-de

Active Member
Licensed User
Longtime User
It does look like a timeout. How long does it take it to return the error?
What is the project size (in the compilation window)?
In Release mode:
The project size is 23.33 MB
If remote compilation in Release mode is successful the step takes 280.76s

In Debug mode:
The project size is 8.71 MB
If remote compilation in Debug mode is successful the step takes 277.49s

The error isn't occurring right now. I was able to compile successfully in both release and debug modes.
 
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
I'm now experiencing the same issue with a second app. The project size in release mode is 32.46 MB. After remote compilation starts, Windows reports after 270 seconds that the local B4i application is no longer responding, and after about 360-390 seconds (~ 6 minutes), the following error appears: ** BUILD INTERRUPTED **.
 
Last edited:
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
I also tried it on the Local Builder tonight. The error occurs there as well. However, it’s worth noting that in the Local Builder’s output, the error is displayed the moment Windows detects that the local B4i application has stopped responding. That’s about 240–250 seconds (~ 4 minutes). I raised the HungUpTimeout to 9 minutes in Windows Registry but with no success.
 
Last edited:
Upvote 0
Top