Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problems with windows executable from Linux build

Discussion in 'Linux' started by awwolfe, Sep 14, 2016.

  1. awwolfe

    awwolfe

    Joined:
    Sep 22, 2013
    Posts:
    27
    I have a build made from linux Unity:5.5.0xb2 Personal Edition that builds and runs fine. However, when I build for windows (from the linux machine) the executable does not run. ( I port both the exe and the data directory over to the windows machine and run it from there). Also tried with pdb files to see if made a difference(didn't).

    Application starts up. Displays "Made with Unity" splash screen, then goes all white and stays all white. Never loads scene or does anything else....just white screen forever.


    Thoughts on troubleshooting?

    Thanks....



    output_log.txt from windows when trying to run.....

    Initialize engine version: 5.5.0xb2Linux (4787457b043f)
    GfxDevice: creating device client; threaded=1
    Direct3D:
    Version: Direct3D 11.0 [level 11.0]
    Renderer: NVIDIA GeForce GTX 960 (ID=0x1401)
    Vendor: NVIDIA
    VRAM: 1969 MB
    Begin MonoManager ReloadAssembly
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\Assembly-CSharp.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.UI.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.Networking.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.Networking.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.PlaymodeTestsRunner.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.PlaymodeTestsRunner.dll into Unity Child Domain
    - Completed reload, in 0.094 seconds
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\System.Core.dll (this message is harmless)
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\System.dll (this message is harmless)
    desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
    <RI> Initializing input.
    <RI> Input initialized.
    <RI> Initialized touch support.
    UnloadTime: 12.836256 ms
    Setting up 2 worker threads for Enlighten.
    Thread -> id: 4a8 -> priority: 1
    Thread -> id: 46c -> priority: 1
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Nothing in particular looks wrong in the log output, and we're using the same codebase as the mainline 5.5b2 build - try building a development player, and see if you get more detail in the log?
     
  3. awwolfe

    awwolfe

    Joined:
    Sep 22, 2013
    Posts:
    27
    I've compiled and run a development build...see below output.

    Note: Back on Linux 5.5b2, I created a new project with a simple cube that translates on Input.GetAxis. Compiled for windows,...ran on windows (7) and it ran without issues. So short of adding one component in at a time and seeing where it breaks, not sure how else to approach the problem.

    The output log from the linux development build for windows, ran on windows machine (original project).

    Mono path[0] = 'C:/Users/Andrew/Desktop/newTank/Windows/test2_Data/Managed'
    Mono path[1] = 'C:/Users/Andrew/Desktop/newTank/Windows/test2_Data/Mono'
    Mono config path = 'C:/Users/Andrew/Desktop/newTank/Windows/test2_Data/Mono/etc'
    PlayerConnection initialized from C:/Users/Andrew/Desktop/newTank/Windows/test2_Data (debug = 0)
    PlayerConnection initialized network socket : 0.0.0.0 55266
    Multi-casting "[IP] 192.168.1.199 [Port] 55266 [Flags] 2 [Guid] 2334695379 [EditorId] 902150806 [Version] 1048832 [Id] WindowsPlayer(Andrew-Game-PC) [Debug] 0" to [225.0.0.222:54997]...
    Started listening to [192.168.1.199:55266]
    PlayerConnection already initialized - listening to [192.168.1.199:55266]
    Initialize engine version: 5.5.0xb2Linux (4787457b043f)
    GfxDevice: creating device client; threaded=1
    Direct3D:
    Version: Direct3D 11.0 [level 11.0]
    Renderer: NVIDIA GeForce GTX 960 (ID=0x1401)
    Vendor: NVIDIA
    VRAM: 1969 MB
    Begin MonoManager ReloadAssembly
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\Assembly-CSharp.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.UI.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.Networking.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.Networking.dll into Unity Child Domain
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.PlaymodeTestsRunner.dll (this message is harmless)
    Loading C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\UnityEngine.PlaymodeTestsRunner.dll into Unity Child Domain
    - Completed reload, in 0.097 seconds
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\System.Core.dll (this message is harmless)
    Platform assembly: C:\Users\Andrew\Desktop\newTank\Windows\test2_Data\Managed\System.dll (this message is harmless)
    desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
    <RI> Initializing input.
    <RI> Input initialized.
    <RI> Initialized touch support.
    UnloadTime: 40.797192 ms
     
  4. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Hm, try -force-d3d9 with the original build?
     
  5. awwolfe

    awwolfe

    Joined:
    Sep 22, 2013
    Posts:
    27
    Thanks, the force d3d9 didn't result in sucess.

    I spent some time starting with a new scene and then slowly adding one gameobject at a time back in and found a prefab that seemed to cause the problem. I'll continue to add ones back in, until I get close to what I had before (a lot of testing). I am not sure why though. Are there any tools/white pages that decribe help with both scene and prefab file integrity. I haven't had much luck with the SmartMerge tool on Linux (2 developers using git). We've had to ensure we stay out of each other's scenes and prefabs. Unity can load it, but doesn't seem to fix the problem, each time I reload the scene, it reports sames issues/autofixes....likely I"m doing something wrong, just not sure what to do.

    The windows issue might have come from a failed file integrity prefab (guessing).

    Thanks,
    Tony