Weird Shell Windows Popping Up - Bug? Windows 11 weirdness?

I am experiencing what may be the oddest little “glitch” or issue I’ve had in Unity. I’m also not sure how much is Unity or Windows 11 specific. It’s very annoying.

Basically, at certain random times, a sequence of shell windows rapidly open and close. Sometimes it seems to happen randomly when I open a prefab or something, other times the same thing won’t trigger it. The only guaranteed way to trigger it is to plug in a game controller while in the Unity Editor.

I’m also using Rewired, but I don’t think the issue is specific to controllers or Rewired as other things trigger the shell window too, that’s just the most reliable way to reproduce it.

I’ve attached a video showing the issue. I did at first wonder if it’s a Windows 11 bug, but I’ve only ever noticed it in Unity. I did also accidentally somehow click one of the shell windows while recording, and you can clearly see the filepath says something about Unity Hub. Sadly part of the filepath is cut off.

I hope someone at Unity might know.

And aside from the annoyance of the pop ups interrupting my work flow, you can see in the video that it interferes with my mouse too. I try clicking on the “Help” drop down menu, and every time a shell window pops up, it closes the help menu. Other times my PC has frozen momentarily.

Any assistance to stop this would be greatly appreciated.

I’m using Unity 2021.3.33f1.

1 Like

probably some bug (or incompatibility with your unity version) with one of the packages/assets you have installed

try resetting the interface layout. if that doesn’t work, backup your project so you don’t lose your work and then start removing various assets and packages till you don’t get the issue anymore which may indicate the culprit. but really, really backup the project.

the safest and simpler backup method i have is the gold old “pack the entire project folder as it it inside a zip or rar” file so after that you can wipe out everything and unzip the older project in place like nothing happened

edit. that windows is something assets create to provide control of options to the user. something triggers that creation for some reason.

You ever find a resolution to this issue? Having same problem :slight_smile:

Sorry no I haven’t solved this yet. It’s annoying but I’ve put on hold trying to solve it. With release dates, haven’t had the time to redo all of the packages as the other user suggested.

I may have figured it out. In my case, I had the android packages installed with my version of the editor. Every time you plug in a USB device…or at certain intervals, ADB looks for devices and those annoying popup windows show up. For me, removing the android module resolved the issue. Now, if you are making a mobile game…I don’t know what to tell you. Hope this helps.

2 Likes

Quick and dirty fix without having to remove the whole android module is just renaming the abd executable while you don’t need it:

C:\Program Files\Unity\Hub\Editor\<your-version>\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe

Rename the file to adb_disabled.exe or something like that and you’ll stop seeing those obnoxious windows popping up. It’s gross and hacky, but it’s better than randomly losing application focus during something important! Just don’t forget to change it back when you actually need it.

(Thank you ShockFactor for pointing me in the right direction!)

After deep investigation this is what happens for me:

  • The popups happen only if I have the logcat window opened- even if not focused on it
  • The popups starts only after I Initialize the Steam API - on Windows platform - I use the Facepunch Steam API

FWIW, it only happens for us if Facepunch.Steamworks is loaded as well. Having logcat open or not doesn’t seem to affect it, though.

Crazy that there’s no solution or viable workaround (renaming adb is not a viable workaround) to this yet.


Is there a bug report for this? I get the same issue Unity 2022.3.62f2. Freshly installed android package and android studio