Search Issue Tracker

Not Reproducible

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

-

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 (26)

  1. 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.

  2. 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...

  3. GabrielMachadoGomes

    Aug 08, 2017 22:02

    Got the same issue in Unity 2017.1.0f3.

  4. Shiv7n

    Aug 07, 2017 16:12

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

  5. 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

  6. DC_HUT

    Jul 31, 2017 19:23

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

  7. krou

    Jul 28, 2017 08:16

    the same issue in Unity 2017.1.0f3.

  8. Milgiray

    Jul 15, 2017 07:53

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

  9. MarkeMark1972

    Jul 13, 2017 16:05

    I get the same error. It happened after upgrading to the 2017.1 version of Unity and then opening a project that was started in the previous version (5.6.2 I think).

    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()

  10. LutonStudios

    Jul 12, 2017 08:14

    Got the same issue in Unity 2017.1.0f3.

Add comment

Log in to post comment

All about bugs

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