Search Unity

FATAL: Unity3d command line execution failed with status 143

Discussion in 'Editor & General Support' started by KristoferBoman, Apr 18, 2018.

  1. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    Hi,

    I've been running a server with Jenkins to automate builds. This has been working very well for a long time until recently when i started getting this error


    "FATAL: Unity3d command line execution failed with status 143"

    There is no other errors in the log except for this one. I reinstalled Unity at one point and it worked for 2 days and then i started getting the error again.

    The error is random and can happen any time during the build.

    I have not found any documentation about the error code "143".

    Anyone with the same problem?

    Thanks,
    Kristofer
     
  2. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    I've never seen that error after almost 40k builds

    Error 143 seems to be when *you* kill the job: https://wiki.jenkins.io/display/JENKINS/Job+Exit+Status

    Have you updated jenkins? Have you added a plugin or a groovy script that could explain this behaviour?

    Other questions:
    • Are you using the Unity3d Jenkins plugin or other integration?
    • Are you displaying live console output?
    • Which version of Unity are you using?
    • Which operating system are you on?
    • Is this happening on one or multiple projects?
    • Is this happening on one or multiple machines? Same platforms?
    • Is there enough disk space on the machine(s)?
     
  3. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    @jerome-lacoste

    I have not updated Jenkins for quite some time or modified the install with plugins.

    1. I'm using the Unity3d Jenkins plugin
    2. Yes
    3. 2017.2.0p4
    4. macOS 10.12 Sierra
    5. Multiple jenkins projects that build the same git repository but with different settings i.e development and production
    6. One machine, same platform (iOS)
    7. Yes

    Strange thing is that it is random, the last builds has worked without problems.
     
  4. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    1. Are you nothing (human or external script, browser) tries to stop builds? either through jenkins https://wiki.jenkins.io/display/JENKINS/Aborting+a+build or through the Mac interface (this mac isn't used by a real user, right?). I've seen it happen - sorry if the question is stupid :)

    I would use dtrace to investigate it, maybe with something like that:

    Code (CSharp):
    1. dtrace -qn '
    2. proc:::signal-send
    3. / args[1]->pr_fname == "Unity" /
    4. {
    5.        printf("Process %d (%s by UID %d) sending signal %d to Unity (pid=%d)\n",
    6.        pid,execname,uid,arg1,args[1]->pr_pid);
    7. }'
    8. )
    (I haven't tested the dtrace command as it requires to disable System Integrity Protection by booting in recovery mode)

    2. One thing I didn't ask: do you have a master/agent setup? (you could run all your jobs on one machine, but still use a master). In that case check the master/slave communication logs.

    3. Check the system logs to see if other processes are dying in weird ways.

    4. Consider running some basic hardware tests (disk, check S.M.A.R.T., memory).
     
  5. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    1. No questions are stupid right :D No one is using the build server. I do however have a custom editor in Unity that uses the Rest Api, it has not been a problem before, but i will double check it.

    2. No

    Thanks for all suggestions, i will try them all!
     
  6. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    Did you find out what is going on?
     
  7. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    No, i cant figure this one out and it's quite annoying. At this point i'm thinking of starting from scratch and re-installing everything on the build server.
     
  8. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    Hmm, i just found this in the logs

    May 06, 2018 2:35:59 PM SEVERE hudson.remoting.SynchronousCommandTransport$ReaderThread run
    I/O error in channel HTTP full-duplex channel c32d6352-24fe-4332-b522-b5f02671c711
    hudson.remoting.DiagnosedStreamCorruptionException
    Read back: 0xac 0xed 0x00 0x05 'sr' 0x00 '/org.apache.commons.collections.map.ReferenceMap' 0x15 0x94 0xca 0x03 0x98 'I' 0x08 0xd7 0x03 0x00 0x00 'xpw' 0x11 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 '?@' 0x00 0x00 0x00 0x00 0x00 0x10 'sr' 0x00 '(java.util.concurrent.CopyOnWriteArraySetK' 0xbd 0xd0 0x92 0x90 0x15 'i' 0xd7 0x02 0x00 0x01 'L' 0x00 0x02 'alt' 0x00 '+Ljava/util/concurrent/CopyOnWriteArrayList;xpsr' 0x00 ')java.util.concurrent.CopyOnWriteArrayListx]' 0x9f 0xd5 'F' 0xab 0x90 0xc3 0x03 0x00 0x00 'xpw' 0x04 0x00 0x00 0x00 0x02 'sr' 0x00 '*java.util.concurrent.ConcurrentSkipListSet' 0xdd 0x98 'Py' 0xbd 0xcf 0xf1 '[' 0x02 0x00 0x01 'L' 0x00 0x01 'mt' 0x00 '-Ljava/util/concurrent/ConcurrentNavigableMap;xpsr' 0x00 '*java.util.concurrent.ConcurrentSkipListMap' 0x88 'Fu' 0xae 0x06 0x11 'F' 0xa7 0x03 0x00 0x01 'L' 0x00 0x0a
    'comparatort' 0x00 0x16 'Ljava/util/Comparator;xppsr' 0x00 0x1a 'java.security.SignedObject' 0x09 0xff 0xbd 'h*<' 0xd5 0xff 0x02 0x00 0x03 '[' 0x00 0x07 'contentt' 0x00 0x02 '[B[' 0x00 0x09 'signatureq' 0x00 '~' 0x00 0x0e 'L' 0x00 0x0c 'thealgorithmt' 0x00 0x12 'Ljava/lang/String;xpur' 0x00 0x02 '[B' 0xac 0xf3 0x17 0xf8 0x06 0x08 'T' 0xe0 0x02 0x00 0x00 'xp' 0x00 0x00 0x05 0x0e 0xac 0xed 0x00 0x05 'sr' 0x00 0x11 'java.util.HashSet' 0xba 'D' 0x85 0x95 0x96 0xb8 0xb7 '4' 0x03 0x00 0x00 'xpw' 0x0c 0x00 0x00 0x00 0x01 '?@' 0x00 0x00 0x00 0x00 0x00 0x01 'sr' 0x00 '4org.apache.commons.collections.keyvalue.TiedMapEntry' 0x8a 0xad 0xd2 0x9b '9' 0xc1 0x1f 0xdb 0x02 0x00 0x02 'L' 0x00 0x03 'keyt' 0x00 0x12 'Ljava/lang/Object;L' 0x00 0x03 'mapt' 0x00 0x0f 'Ljava/util/Map;xpt' 0x00 0x03 'foosr' 0x00 '*org.apache.commons.collections.map.LazyMapn' 0xe5 0x94 0x82 0x9e 'y' 0x10 0x94 0x03 0x00 0x01 'L' 0x00 0x07 'factoryt' 0x00 ',Lorg/apache/commons/collections/Transformer;xpsr' 0x00 ':eek:rg.apache.commons.collections.functors.ChainedTransformer0' 0xc7 0x97 0xec '(z' 0x97 0x04 0x02 0x00 0x01 '[' 0x00 0x0d 'iTransformerst' 0x00 '-[Lorg/apache/commons/collections/Transformer;xpur' 0x00 '-[Lorg.apache.commons.collections.Transformer;' 0xbd 'V*' 0xf1 0xd8 '4' 0x18 0x99 0x02 0x00 0x00 'xp' 0x00 0x00 0x00 0x05 'sr' 0x00 ';org.apache.commons.collections.functors.ConstantTransformerXv' 0x90 0x11 'A' 0x02 0xb1 0x94 0x02 0x00 0x01 'L' 0x00 0x09 'iConstantq' 0x00 '~' 0x00 0x03 'xpvr' 0x00 0x11 'java.lang.Runtime' 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 'xpsr' 0x00 ':eek:rg.apache.commons.collections.functors.InvokerTransformer' 0x87 0xe8 0xff 'k{|' 0xce '8' 0x02 0x00 0x03 '[' 0x00 0x05 'iArgst' 0x00 0x13 '[Ljava/lang/Object;L' 0x00 0x0b 'iMethodNamet' 0x00 0x12 'Ljava/lang/String;[' 0x00 0x0b 'iParamTypest' 0x00 0x12 '[Ljava/lang/Class;xpur' 0x00 0x13 '[Ljava.lang.Object;' 0x90 0xce 'X' 0x9f 0x10 's)l' 0x02 0x00 0x00 'xp' 0x00 0x00 0x00 0x02 't' 0x00 0x0a
    'getRuntimeur' 0x00 0x12 '[Ljava.lang.Class;' 0xab 0x16 0xd7 0xae 0xcb 0xcd 'Z' 0x99 0x02 0x00 0x00 'xp' 0x00 0x00 0x00 0x00 't' 0x00 0x09 'getMethoduq' 0x00 '~' 0x00 0x1b 0x00 0x00 0x00 0x02 'vr' 0x00 0x10 'java.lang.String' 0xa0 0xf0 0xa4 '8z;' 0xb3 'B' 0x02 0x00 0x00 'xpvq' 0x00 '~' 0x00 0x1b 'sq' 0x00 '~' 0x00 0x13 'uq' 0x00 '~' 0x00 0x18 0x00 0x00 0x00 0x02 'puq' 0x00 '~' 0x00 0x18 0x00 0x00 0x00 0x00 't' 0x00 0x06 'invokeuq' 0x00 '~' 0x00 0x1b 0x00 0x00 0x00 0x02 'vr' 0x00 0x10 'java.lang.Object' 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 'xpvq' 0x00 '~' 0x00 0x18 'sq' 0x00 '~' 0x00 0x13 'ur' 0x00 0x13 '[Ljava.lang.String;' 0xad 0xd2 'V' 0xe7 0xe9 0x1d '{G' 0x02 0x00 0x00 'xp' 0x00 0x00 0x00 0x01 't' 0x00 0x15 'sh /tmp/.XO-lock J2J2t' 0x00 0x04 'execuq' 0x00 '~' 0x00 0x1b 0x00 0x00 0x00 0x01 'q' 0x00 '~' 0x00 ' sq' 0x00 '~' 0x00 0x0f 'sr' 0x00 0x11 'java.lang.Integer' 0x12 0xe2 0xa0 0xa4 0xf7 0x81 0x87 '8' 0x02 0x00 0x01 'I' 0x00 0x05 'valuexr' 0x00 0x10 'java.lang.Number' 0x86 0xac 0x95 0x1d 0x0b 0x94 0xe0 0x8b 0x02 0x00 0x00 'xp' 0x00 0x00 0x00 0x01 'sr' 0x00 0x11 'java.util.HashMap' 0x05 0x07 0xda 0xc1 0xc3 0x16 '`' 0xd1 0x03 0x00 0x02 'F' 0x00 0x0a
    'loadFactorI' 0x00 0x09 'thresholdxp?@' 0x00 0x00 0x00 0x00 0x00 0x10 'w' 0x08 0x00 0x00 0x00 0x10 0x00 0x00 0x00 0x00 'xxxuq' 0x00 '~' 0x00 0x11 0x00 0x00 0x00 '.0,' 0x02 0x14 'I' 0xf1 '4' 0x9a 0xfc 0xcb 0x8c 0x1d 0x96 'UdW' 0xd3 0x06 '2' 0xcb 0xf4 '#' 0x94 0xbd 0x02 0x14 '=' 0xc1 0xeb 'T' 0x91 ']' 0xe9 '=e' 0x9b 0xbb 0x88 '&' 0xb9 0xaf '[' 0x19 0x7f '(' 0x98 't' 0x00 0x03 'DSAsr' 0x00 0x11 'java.lang.Boolean' 0xcd ' r' 0x80 0xd5 0x9c 0xfa 0xee 0x02 0x00 0x01 'Z' 0x00 0x05 'valuexp' 0x01 'pxsr' 0x00 '1org.apache.commons.collections.set.ListOrderedSet' 0xfc 0xd3 0x9e 0xf6 0xfa 0x1c 0xed 'S' 0x02 0x00 0x01 'L' 0x00 0x08 'setOrdert' 0x00 0x10 'Ljava/util/List;xr' 0x00 'Corg.apache.commons.collections.set.AbstractSerializableSetDecorator' 0x11 0x0f 0xf4 'k' 0x96 0x17 0x0e 0x1b 0x03 0x00 0x00 'xpsr' 0x00 0x15 'net.sf.json.JSONArray]' 0x01 'To\(r' 0xd2 0x02 0x00 0x02 'Z' 0x00 0x0e 'expandElementsL' 0x00 0x08 'elementsq' 0x00 '~' 0x00 0x18 'xr' 0x00 0x18 'net.sf.json.AbstractJSON' 0xe8 0x8a 0x13 0xf4 0xf6 0x9b '?' 0x82 0x02 0x00 0x00 'xp' 0x00 'sr' 0x00 0x13 'java.util.ArrayListx' 0x81 0xd2 0x1d 0x99 0xc7 'a' 0x9d 0x03 0x00 0x01 'I' 0x00 0x04 'sizexp' 0x00 0x00 0x00 0x01 'w' 0x04 0x00 0x00 0x00 0x01 't' 0x00 0x04 'asdfxxsq' 0x00 '~' 0x00 0x1e 0x00 0x00 0x00 0x00 'w' 0x04 0x00 0x00 0x00 0x00 'xxq' 0x00 '~' 0x00 ' sq' 0x00 '~' 0x00 0x02 'sq' 0x00 '~' 0x00 0x05 'w' 0x04 0x00 0x00 0x00 0x02 'q' 0x00 '~' 0x00 0x1a 'q' 0x00 '~' 0x00 0x09 'xq' 0x00 '~' 0x00 ' px'
    Read ahead:
    at hudson.remoting.FlightRecorderInputStream.analyzeCrash(FlightRecorderInputStream.java:80)
    at hudson.remoting.ClassicCommandTransport.diagnoseStreamCorruption(ClassicCommandTransport.java:93)
    at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:75)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
    Caused by: java.lang.ClassCastException: org.apache.commons.collections.map.ReferenceMap cannot be cast to hudson.remoting.Command
    at hudson.remoting.Command.readFrom(Command.java:96)
    at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70)
    ... 1 more


    May 06, 2018 2:35:59 PM INFO org.jenkinsci.plugins.unity3d.Unity3dBuilder checkProcResult
    Unity command line exited with error code: 143

    May 06, 2018 2:36:00 PM INFO hudson.model.Run execute
    ArmedHeistDevelopBranch #214 main build action completed: FAILURE

    May 06, 2018 2:45:01 PM INFO org.jenkinsci.plugins.unity3d.Unity3dBuilder checkProcResult
    Unity command line exited with error code: 143

    May 06, 2018 2:45:02 PM INFO hudson.model.Run execute
    ArmedHeistDevelopBranch #215 main build action completed: FAILURE
     
  9. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
  10. KristoferBoman

    KristoferBoman

    Joined:
    Feb 16, 2016
    Posts:
    61
    Yea, i saw that one to and i actually had the server exposed to the internet so that was probably it. I decided to re-install the whole server after reading the post and now everything is working again.

    Thanks for all the help!