IOS build switch from success to failure after few minutes

80 views
Skip to first unread message

xha...@googlemail.com

unread,
Jun 27, 2017, 6:31:14 AM6/27/17
to CodenameOne Discussions
Hey everyone!

IF my ios builds are successfull, they turn to failure after a short time. The time, the build is marked as successfull i´m also able to download the .ipa, through the download link and qr code, download the source and the APP works, BUT for unknown reasons, the build switch to failure. In the screenshots, you will see the strange behaviour.
The error log only gives out "Exception on appending to log: java.io.IOException: Bad file descriptorFailed xcodebuild step" 


Here the build is currently running..


Build is successfull

Successfull build have download links and qr code which works! Also the APP is working fine!

Same build, turns to failure ~2 minutes after successfull





As you can see, all my IOS builds fail while the android builds works like a charm. I started the thread with "IF my builds are successfull"... this means, most of the time, my builds fail due to timeout. I´m having this issue for i think 3 months now but havn´t had the time latly to care about this project. 
The first time, i had those errors, i was in the CN1 course and talked with Shai about that problem. He mentioned a Enumeration file (which is quite large) which is the last file that got processed (according to log). Shai told me to email the CN1 support about it what i did, but havn´t heared anything since then.

Is there anything in a build server log that i should mask or remove (user ids, passwords etc) so i can upload the log and the enum file?

Dave Dyer

unread,
Jun 27, 2017, 1:32:37 PM6/27/17
to CodenameOne Discussions, xha...@googlemail.com
Karmic balance for the builds that change from failure to success ?

xha...@googlemail.com

unread,
Jun 27, 2017, 2:10:03 PM6/27/17
to CodenameOne Discussions, xha...@googlemail.com
sadly, this never happened to me:) if a build fails first it stays as failed.

Steve Hannah

unread,
Jun 27, 2017, 2:35:24 PM6/27/17
to codenameone...@googlegroups.com
If you can at least post the stack trace that accompanies that error, it would allow me to look at the problem.

Best regards

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c4823cd7-c647-42e9-8a53-8e2a547a666b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Dave Dyer

unread,
Jun 27, 2017, 8:03:30 PM6/27/17
to CodenameOne Discussions
In other threads, I have a persistent problem of the opposite, threads switching from failed to success.

It would help diagnosing these things if the success logs were available too.

My current thought is that these magic success/failure switches are some kind of crosstalk between builds;
and the log files (if we could see both) would show that they were from completely different runs.


Shai Almog

unread,
Jun 28, 2017, 12:13:28 AM6/28/17
to CodenameOne Discussions
I suggest filing an issue with more information ideally log content of the failures

xha...@googlemail.com

unread,
Jun 28, 2017, 3:40:18 AM6/28/17
to CodenameOne Discussions
I would love to help but where should i get that log from? Or which information that i could provide will helpfull in this case? The only log content i get is
Exception on appending to log: java.io.IOException: Bad file descriptorFailed xcodebuild step

As Dave said, it would may help if a success log is available too but without that i cant provide any log cause there is nothing.

Shai Almog

unread,
Jun 28, 2017, 11:56:00 PM6/28/17
to CodenameOne Discussions, xha...@googlemail.com
I explained to Dave before why that log is problematic. The error should include the log file which you can save locally.

xha...@googlemail.com

unread,
Jun 29, 2017, 3:42:33 AM6/29/17
to CodenameOne Discussions, xha...@googlemail.com
... once again.. the WHOLE content of the error log is following line:

Exception on appending to log: java.io.IOException: Bad file descriptorFailed xcodebuild step


There is no more!!! I cant provide you more cause the build server dont provide anything else. But just in case you want it as file, i uploaded it as file too...
e9dcc717-5c8c-4d8d-9fb0-8133d81a2f2f-1498482038074-error.txt

Shai Almog

unread,
Jun 30, 2017, 12:08:16 AM6/30/17
to CodenameOne Discussions, xha...@googlemail.com
I'm not sure why it's happening but I might have an idea for a workaround that would at least end with a positive result. Please file an issue and we'll try to address it.

xha...@googlemail.com

unread,
Jun 30, 2017, 3:28:36 AM6/30/17
to CodenameOne Discussions, xha...@googlemail.com
Done! Heres the issue

The other problem i have is that about 50% of my builds time out ( also mentioned in the start post ). I dont know how to prevent this or do anything about it so help would be appreciated cause its wasting a huge amount of my time and the build server cpu ( 30min per build..)
Shai we talked about it during the camp. You mentioned the my Fontawesome enumeration, which also is the part where the build time outs. I already emailed this enumeration to the support as mentioned too in starting post. 
I have a log but i dont know if i have to remove any informations from it before posting it

Shai Almog

unread,
Jul 1, 2017, 12:39:28 AM7/1/17
to CodenameOne Discussions, xha...@googlemail.com
We have a workaround for this issue, I've just deployed it and hopefully didn't break anything.

I've increased the timeouts further due to complaints from Dave just before the 3.7 release. Is it still timing out?
If so write to me directly and we can try to review your project and where the translation process can be improved.

Dave Dyer

unread,
Jul 2, 2017, 6:18:15 PM7/2/17
to CodenameOne Discussions, xha...@googlemail.com
My builds have been completing for the last week or so. 

xha...@googlemail.com

unread,
Jul 3, 2017, 8:49:12 AM7/3/17
to CodenameOne Discussions, xha...@googlemail.com
For today, i havn´t got any timeout errors at all, but 8 out of 10 builds end up as failed with the only message in the error log:

Exception on appending to log: java.io.IOException: Stream closedFailed xcodebuild step

So my builds wont finish and turn to failed after few minutes anymore ( for today ) but they fail WITHOUT beeing successfull first with the same error message as before.

Shai Almog

unread,
Jul 4, 2017, 1:23:40 AM7/4/17
to CodenameOne Discussions, xha...@googlemail.com
That's a weird failure as the portion of code that writes that message is REALLY deep in so you should get a huge error log.
This specific failure is in a very different location from the one described by Dave and one that has a much higher timeout value.

Did you ever get a build to pass with include sources checked?
If so can you email me the link to the native OS sources you get back? I'd like to inspect that.
Reply all
Reply to author
Forward
0 new messages