Search Issue Tracker

Active

Votes

29

Found in

2017.1.0b4

Issue ID

909581

Regression

Yes

Building on top of old build while its output_log.txt is open causes build to fail

Build Pipeline

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 4Minor or cosmetic issue

Steps to reproduce:

1. Create new project
2. Build and run
3. Once resolution selection screen launches - close it
4. Navigate to _data folder located in same folder as build executable
5. open output_log.txt
6. Return to editor and do build and run to overwrite previous build
7. Build fails. Contents of previous build are deleted (.exe and all items that were in _data folder)

Not reproducible: 5.4.5p2

Reproduced with:
5.5.0f3 (has somewhat useful error: OperationCanceledException: Failed to prepare target build directory. Is a built game instance running?)
5.5.3p3 (no warning or error)
5.6.1f1 (no warning or error)
2017.1.0b4 (UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 )

Comments (18)

  1. 050fd89013e814b5e12f8647bbe0314e?d=mm

    claudioal

    Sep 25, 2017 15:09

    It deletes the temp folders, uninstalls Unity, deletes the Unity folders that are inside the hidden "AppData" folder and reinstalls Unity ...

  2. Ab12b6e21bf1ce0088d384a02c382a49?d=mm

    dcolwell634

    Aug 25, 2017 13:50

    Hey Guys,

    I was working with HoloLens and tried reinstalling Unity as a troubleshooting step. Upon reinstall, I was getting this error when doing a build. I changed the Scripting Backend to .NET in the Player/Other Settings section and this fixed it. Based on my own research I can only assume the other version (IL2CPP) was missing some dll's. I was getting another error in conjunction with this one, saying something about could not find analyitcs.dll. Either way, give this a shot guys. Maybe it will work for you too.

  3. C4eb9b5d1d2b71607e55ecd56f9fc395?d=mm

    LegalSin

    Aug 17, 2017 17:39

    Delete folder .vs and all Microsoft Visual Project file in your "Main Game" Folder
    Close Unity, restart and rebuild.

  4. Ed0a2a5df0362a833641d4420e68684a?d=mm

    satch88

    Aug 10, 2017 16:32

    UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
    UnityEditor.HostView:OnGUI()

    I have the same error. Any Fix for this ?
    Thanks in advance...

  5. 64da2568ef6dcf5237289ae47bcf53b1?d=mm

    GabrielMachadoGomes

    Aug 08, 2017 22:02

    Got the same issue in Unity 2017.1.0f3.

  6. 8761d2a5ccd2eca3903489596d849d7a?d=mm

    Shiv7n

    Aug 07, 2017 16:12

    Got same Error, Unity 2017.1.0f3. I am unable to build anything

  7. E7f0a6d6ab7f94d2f2050e364b952e67?d=mm

    info-360-vid-ca

    Aug 01, 2017 02:40

    I have the same issue. Build is 2017.1.0f3 (Personal Version).

    UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
    0x00000001409897FB (Unity) StackWalker::GetCurrentCallstack
    0x000000014098CD5F (Unity) StackWalker::ShowCallstack
    0x0000000140D35030 (Unity) GetStacktrace
    0x0000000141079D56 (Unity) DebugStringToFile
    0x000000014107A52C (Unity) DebugStringToFile
    0x0000000141869242 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000000000089D69B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
    0x000000000089D584 (Mono JIT Code) [DebugLogHandler.cs:9] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000000000089CE85 (Mono JIT Code) [Logger.cs:47] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x000000000089CBA3 (Mono JIT Code) [DebugBindings.gen.cs:124] UnityEngine.Debug:LogError (object)
    0x00000000008CA233 (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:88] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x0000000000B14DAC (Mono JIT Code) [BuildPlayerWindow.cs:163] UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x00000000493437EC (Mono JIT Code) [BuildPlayerWindow.cs:157] UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    0x00000000139F0A8E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    0x00007FFF2ABB5B63 (mono) [mini.c:4937] mono_jit_runtime_invoke
    0x00007FFF2AB0872D (mono) [object.c:2623] mono_runtime_invoke
    0x00000001403DE343 (Unity) mono_runtime_invoke_profiled
    0x000000014140499B (Unity) CallStaticMonoMethod
    0x0000000141405DC7 (Unity) CallStaticMonoMethod
    0x0000000140030849 (Unity) ExecuteStandardMenuItem
    0x000000014003100D (Unity) ExecuteMenuItemWithID
    0x0000000141A8792E (Unity) ProcessMainWindowMessages
    0x000000014002988D (Unity) ContainerWindow::ContainerWndProc
    0x00007FFF74D3BC50 (USER32) CallWindowProcW
    0x00007FFF74D3B5CF (USER32) DispatchMessageW
    0x0000000141A87DFA (Unity) MainMessageLoop
    0x0000000141A89827 (Unity) WinMain
    0x0000000141CEC8BC (Unity) __tmainCRTStartup
    0x00007FFF73832774 (KERNEL32) BaseThreadInitThunk
    0x00007FFF76330D51 (ntdll) RtlUserThreadStart

  8. 04d14d7e0fc6634f36aab512fbb67870?d=mm

    SICACEO

    Jul 31, 2017 19:23

    has anyone found a fix for this, we are having the same issue with the latest build of unity

  9. B34409fbd67ac16e0cbe27865514fcac?d=mm

    krou

    Jul 28, 2017 08:16

    the same issue in Unity 2017.1.0f3.

  10. 49eaf5a8822fa3b0dd135e994ebe7f5d?d=mm

    Filipp_Kuzmenko

    Jul 15, 2017 07:53

    Got this with Unity 2017.1.0f1(After updating from Unity 5.6.x) & Unity 2017.1.0f3

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.