Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Unity (?) Sometimes Opens Other Programs When a Build Completes

Discussion in 'General Discussion' started by ObsidianSpire, Jul 6, 2023.

  1. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    53


    This happens occasionally with standalone builds for Mac, Linux, and Windows as well as for WebGL builds. The build in the video showing this occurring is a WebGL build. I have not tried making mobile builds in a while but this possibly happens there as well. Has anyone had this happen to them as well?

    Unity Version: 2020.3.48f1
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,922
    Reminds me of pseudo-viruses back in the DOS days. They would do things like drop random letters to the bottom in any DOS app, driving the user crazy.

    The way it seems to pop up random (but already open?) windows to the foreground makes me think this has nothing to do with Unity. At best, making a build triggers this behaviour. Check what kind of tools and resident apps you have installed and kill them one by one and check if the issue goes away.
     
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    4,002
    After building unity will once every 100 times or so, open every single application I have on my computer till I have to restart. Unity are aware of the problem but as far as I am aware there still to this day is no fix, and this has been at least 18 months now.

    This seems related to that in some way as its similar behaviour, but my applications were not already open
     
    ObsidianSpire likes this.
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,922
    :eek:

    Like ... HOW is that even remotely possible? o_O
     
    MadeFromPolygons likes this.
  5. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    53
    Some of my windows/applications were open, but a solid majority were not just like your case, @MadeFromPolygons Definitely interesting to know I'm not alone, though. Thanks for replying guys.
     
    MadeFromPolygons likes this.
  6. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,642
    Off the top of my head it might be doing some creative use of "start" command or some sort of registry walking (on windows). Registry contains "open" action for every single filetype. It might be doable somehow through something akin to shell execute, because some applications introduce their own protocol on computer, like valve's steam:// .

    Frankly I stopped asking "How" around time when Microsoft broke Calculator during windows update. It wouldn't launch. Prior to that time I've been naively thinking that a calculator is a type of application that is nearly impossible to break due to how simple it is supposed to be. Yet there it was.
     
    Ryiah and MadeFromPolygons like this.
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,737
  8. billykater

    billykater

    Joined:
    Mar 12, 2011
    Posts:
    329
    I sporadically have the same issue of unity opening all windows (even hidden ones that are not designed to be visible, like internal nvidia driver windows) since at least Unity 2018 while exiting the debugger (either using continue after a breakpoint or detaching the debugger) but I could never pin down the cause and neither could jetbrains where I reported that bug to.
     
    MadeFromPolygons likes this.
  9. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,821
    Funny saying that, Paint app is dead simple app too right?
    I remember on win 10 had issues with putting PC to sleep reliably, because Paint was open. Only until I found out somewhere accidentally on the net, that someone had similar issues. After closing Paints instances, things start working.

    However, more on topic, I had also issues on win 10, to change volumes, when Unity was entering play mode, or was hanging. It was blocking Win OS access to basics utilities, like audio controls.
     
  10. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,642
    Sounds like it is time to start planning to switch to linux.
     
  11. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    4,002
    It was just an interaction with a Unity developer from a forum thread, I had no idea how to create a reproduction case for this to upload so a bug was never filed

    Just FYI while I have your ear - In general the whole "do you have a repro case to upload" wall really gets in the way of what would otherwise be a lot of bug reports reported. I understand why they are useful, but they shouldnt be necessary to look into the issue
     
    angrypenguin likes this.
  12. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    If a reproduction case is not available you at least need to be able to provide the steps to reproduce. A description of a behavior is almost never enough by itself to fix bugs in software.
     
    DragonCoder likes this.
  13. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,682
    Just wait till you need to test with a DualSense controller only to discover it prevents it altogether.
     
    MadeFromPolygons likes this.
  14. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    4,002
    Right but in this case how exactly is that done? This isnt a regular bug, this is literally once in a blue moon it goes absolutely off the rails and opens every single application. I have no reproduction steps. It is seemingly random behaviour, the only "steps" are what I told the developer - it happens once in a while after a build. Thats it. Thats the steps. My point was, this would not be considered enough of a repro by the current reporting process despite it being the only available information and the issue being very real and persistent.

    I understand how software bugs are fixed thanks and am well versed in the bug reporting process, but I also hope you understand that some bugs are unable to provide even the steps to reproduce. This doesnt mean they are not real software issues.
     
    ObsidianSpire, angrypenguin and Ryiah like this.
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,737
    I agree with you. I wish this wasn't the case, but the way things work right now, most teams have their hands full with various bug fixes, improvements and features so they will naturally take things out of their backlog instead of from the forum. You may get lucky once in a blue moon to get a developer who works in that exact area of the product to notice your issue and make an internal bug out of it but reading forums is not part of our jobs so most don't bother.
     
    MadeFromPolygons likes this.
  16. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,642
    I wonder if windows logs which process is launched and how, somewhere, and which process was its parent. This could give some insights.
     
  17. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,682
    ChatGPT suggested Process Explorer.

    To find the applications spawned by a specific application, you can use various system monitoring and analysis tools available for Windows. One commonly used tool is Process Explorer, which provides detailed information about running processes, including their parent-child relationships.

    Here's how you can use Process Explorer to determine the applications spawned by a specific application:

    1. Download Process Explorer: Visit the Microsoft website (https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer) to download the latest version of Process Explorer. It is a standalone executable and doesn't require installation.

    2. Launch Process Explorer: Run the downloaded executable (procexp.exe) to launch Process Explorer.

    3. Find the Parent Process: In Process Explorer, use the search function (Ctrl+F) or manually locate the process that you are interested in. Once you find it, right-click on the process and select "Properties."

    4. View Child Processes: In the process properties dialog, navigate to the "Image" tab. Here you will find a hierarchical view of the selected process and its child processes. Child processes are listed under the parent process, indicating the applications spawned by it.
    Process Explorer provides additional details about each process, such as process ID (PID), command line arguments, CPU usage, and more. This information can help you identify and analyze the applications spawned by the specific process.

    Please note that Process Explorer is just one of many tools available for process monitoring and analysis on Windows. Depending on your specific requirements, there may be other tools or methods that are more suitable.

    https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
     
  18. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    994
    I remember running into this several times in the past. Haven't seen it for a while now though.
     
  19. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,307
    I had this happen a couple years back on Windows. For some reason every build would end with my music and video folders open in Explorer.
     
  20. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,556
    The Windows 3.1 "Clock" application had far more bug reports than lines of code.
     
  21. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,682
    Just in case you haven't seen it some people have mentioned it happening when trying to import packages. The thread below started in 2013 but the latest response is from this April. Craziest incident in that thread is the one mention (by @MadeFromPolygons) of it starting file copy and delete operations in addition to opening apps.

    https://forum.unity.com/threads/importing-a-package-causes-windows-to-open-all-my-programs.183993/
     
    Last edited: Jul 9, 2023
    MadeFromPolygons likes this.
  22. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    4,002
    It hasnt started deleting things since then but it does still open everything forcing a restart every now and then. Has not affected me at work only at home on personal projects, so havent really given it much attention in comparison to other issues since
     
  23. iceb_

    iceb_

    Joined:
    Nov 10, 2015
    Posts:
    98
    I've had this issue since forever too, quite annoying to have to reboot when I'm in the middle of multiple open work apps. One clue is perhaps not having the build window focused when it ends (or at some point before it ends), I'll test it out but maybe others could help test it out too but clicking into other windows focus when it's building and when it ends to see if the bug can be replicated.
     
  24. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    53
    Are you still on the version of Unity (2020.3.48) I had this issue with? Because I no longer see this issue after migrating all of my recent projects to 2022.3.26 LTS.
     
  25. iceb_

    iceb_

    Joined:
    Nov 10, 2015
    Posts:
    98
    I'm currently on 2021.3. I can confirm that if you don't touch Unity after you click build (don't switch windows basically, I think can even switch back during the building process), then it won't explode. If you are in a different window when it finishes (not sure exact timing) then it HAS A CHANCE to puke windows all over the place.

    How was the upgrade from 2021 to 2022? I really didn't want to have to fix many assets or have worse performance somehow if I upgrade to 2022.
     
  26. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    53
    Upgrading will vary based on the size of your projects. It took about a few days to a week or so of full-time work for most of my projects to be 100% back to normal since I had to rework my menu system. Unity removed the old settings launcher as an option in particular, so I recreated the relevant features in my own menu. But the majority of my projects worked from day 1.

    As far as I can tell, typically things are faster on 2022 but some actions are the same or slightly slower. Not sure if my old pc I use is representative of the average, though, so it depends on your specs and individual experience. But some plugins I am using recommended 2022.3.X and up so that was the main reason why I upgraded. Also, I wanted the latest bug fixes without having to pay a royalty or install based fee.
     
  27. iceb_

    iceb_

    Joined:
    Nov 10, 2015
    Posts:
    98
    The new Kronnect Umber shadow asset is tempting me to upgrade, and it requires 2022. Better soft shadows and better performance, guess I should give it a try. Thanks!