Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS Studio (exit code 6) another program using this #105965

Closed
denelon opened this issue May 4, 2023 · 27 comments
Closed

OBS Studio (exit code 6) another program using this #105965

denelon opened this issue May 4, 2023 · 27 comments
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented May 4, 2023

If we can confirm exit code 6 is returned because another program is using OBS Studio, we should add the appropriate expected return code to the manifest.

 i had this problem with  Exitcode: 6 and obsstudio through winget upgrade obsproject.obsstudio. i found out it was because of skype. used powershell. winget upgrade obsproject.obsstudio didn't work. used cmd as admin. winget upgrade obsproject.obsstudio didn't work. restarted. winget upgrade obsproject.obsstudio didn't work. deinstalled obsstudio. winget install obsproject.obsstudio didn't work. downloaded the exe from obsstudio-site, executed it and surprisingly it said, it can't be installed because of ... SKYPE? maybe skype used obsproject as webcam, idk. killed skype. started winget install obsproject.obsstudio. worked.

Originally posted by @hueldoeu in microsoft/winget-cli#245 (comment)

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label May 4, 2023
@denelon denelon transferred this issue from microsoft/winget-cli May 4, 2023
@denelon denelon changed the title i had this problem with Exitcode: 6 and obsstudio through winget upgrade obsproject.obsstudio. i found out it was because of skype. used powershell. winget upgrade obsproject.obsstudio didn't work. used cmd as admin. winget upgrade obsproject.obsstudio didn't work. restarted. winget upgrade obsproject.obsstudio didn't work. deinstalled obsstudio. winget install obsproject.obsstudio didn't work. downloaded the exe from obsstudio-site, executed it and surprisingly it said, it can't be installed because of ... SKYPE? maybe skype used obsproject as webcam, idk. killed skype. started winget install obsproject.obsstudio. worked. OBS Studio (exit code 6) another program using this May 4, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Help-Wanted This is a good candidate work item from the community. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels May 4, 2023
@hueldoeu
Copy link

hueldoeu commented May 4, 2023

closing skype wasn't difficult. i am satisfied so far with ms products. what really is annoying is e. g.
Microsoft Visual C++ 2005 Redistributable Microsoft.VCRedist.2005.x86 8.0.59193 8.0.61001 winget
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30… Microsoft.VCRedist.2013.x86 12.0.30501.0 12.0.40664.0 winget

i can't winget upgrade them (wingen't upgrade). the thunderbirds are my problem. i f*ed up my windows 10. next pc won't have this problem. what really is strange is that microsoft doesn't have control on it's own products like i said these Microsoft Visual C++ Redistributable OR MS Teams! doesn't microsoft want to be the better zoom? i have been at so many online-seminars. teams is a pain in the a. even skype wasn't too bad. teams is difficult to use. difficult to handle. first version of zoom was SUPER! winget upgrade teams isn't also possible. thats why i will delete it soon on this pc and use the browser-version of teams. the android version of teams is also BAD. the Microsoft Visual C++ Redistributable are from an x-ray program called myray, company name cefla from italy.
winget.txt

@Trenly
Copy link
Contributor

Trenly commented May 4, 2023

If we can confirm exit code 6 is returned because another program is using OBS Studio, we should add the appropriate expected return code to the manifest.

The code is already in the manifest -

ExpectedReturnCodes:
- InstallerReturnCode: 6
ReturnResponse: packageInUse

However, I will note that it should be packageInUseByApplication

@Trenly
Copy link
Contributor

Trenly commented May 4, 2023

the thunderbirds are my problem.

Based on the file you provided, it seems like the Thunderbird issues may be happening because there are two separate versions of Thunderbird installed. I know that winget uninstall Mozilla.Thunderbird -v 78.5.1 won't work in your scenario, but perhaps winget uninstall 'Mozilla Thunderbird 78.5.1 (x64 de)' will work. Then you will have only one version of Thunderbird which should allow you to run the upgrade

@hueldoeu
Copy link

hueldoeu commented May 4, 2023

the thunderbirds are my problem.

Based on the file you provided, it seems like the Thunderbird issues may be happening because there are two separate versions of Thunderbird installed. I know that winget uninstall Mozilla.Thunderbird -v 78.5.1 won't work in your scenario, but perhaps winget uninstall 'Mozilla Thunderbird 78.5.1 (x64 de)' will work. Then you will have only one version of Thunderbird which should allow you to run the upgrade

well ....... you have to emphasise MY and not the word problem. the thunderbird is my own problem and shouldn't stress anybody besides me. it's my own fault and was just an experiment. i have a mail-adress similar to gmail but i pay for it and it's from my country. i access the mails via imap and i wanted to have a mail-client like thunderbird which starts from my SOHO-server so that every client-pc can access the mails. i failed. i lost. i have installed thunderbird on the server, i have set up the target of where the mails will be downloaded (server is better because huge free storage and centralized). didn't really pay out and then i have installed thunderbird on each client-PC and access on the data and save the data on the server. this also didn't work so well. so i decided to just connect windows mail and calender (soon called one outlook or sth like that) and thunderbird on every client-PC directly with the mail-server over imap smtp and yes, this works. sadly the data will be downloaded on every pc simultanously, so i decided to create an extra partition on an extra drive and yes thunderbird is downloading and uploading everything on the extra partition, where it's installed.

i am very sure that with a new installation the thunderbird-problem will be solved. i learned from my mistakes and that maybe in the future there will be a software for collaborative working on one mail-adress via imap and smtp but not now.

i have to buy new PCs for my office since windows 11 isn't supported so the thunderbird problem will be solved.

i really wish a revolution for e-mail like i can easily set up a mail server with postfix, but it will not be accepted by the most freemails like gmail or yahoo mail or outlook and i wish something like i have set up a mail adress by some company, university, something like that and they have some extra software because it's not hard using email-clients en masse but the data will be stored multiple times each on a client-PC. why not stored on a server, which gets the mail via imap and WAN and the client-PCs just communicate with the SOHO-server in LAN and the data is only saved on the SOHO-server and ofcourse the e-mail server.

webmail is also possible like appsuite webmail or ms exchange (roundcube and especially horde are forbidden due security reasons) but then again they download through browsers like firefox their data and store them in a temp-folder or sth like that.

all in all i can say that i have only one thunderbird per client-PC and i use winget to see if there's an update available and update directly inside of thunderbird.

@kristapsesterlins
Copy link

Morning,

Stumbled upon this issue and thanks to Process Monitor I was able to determine why the installer was failing with the message:
"Installer failed with exit code: 6"

Found OBS Studio [OBSProject.OBSStudio] Version 29.1.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 6
Files modified by the installer are currently in use by a different application. Exit the applications then try again.

Turns out that Microsoft Teams (Teams.exe) was somehow interfering with the installer. Closing it solved the issue.

Untitled

@Dum4G
Copy link

Dum4G commented May 16, 2023

OBS has built-in functionality to mimic a webcam as an output device. So it's about every messaging app that may use it. I have succesfully updated after closing Discord and Telegram. Thanks for the tip

@carlosm3011
Copy link

I found another blocker, LogiTune, an app by Logitech to manage certain Logitech hardware.

@hueldoeu
Copy link

I found another blocker, LogiTune, an app by Logitech to manage certain Logitech hardware.

logitech has always been a PITA (pain in the A**) especially for windows 11 memory integrity their logitech driver

@PurplProto
Copy link

OBS has built-in functionality to mimic a webcam as an output device. So it's about every messaging app that may use it. I have succesfully updated after closing Discord and Telegram. Thanks for the tip

This statement is holding up. For me, it was Nvidia Broadcast blocking the installation.

@clicks
Copy link

clicks commented Jan 14, 2024

For whatever reason, but in my case it was "Podman Desktop" which was blocking the installation.
Is it possible to enforce it?

@WegnerDan
Copy link

Garmin Express and Deepl also seem to block upgrading.

@Corgi
Copy link

Corgi commented Mar 21, 2024

The application Playnite also prevents upgrading. Seems to be due to CefSharp.BrowserSubprocess.

@SnoepNFTs
Copy link

SnoepNFTs commented Mar 22, 2024

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your task manager? Especially keen to know how you got to that screenshot page @kristapsesterlins
EDIT: Thanks for linking me to that tool @kristapsesterlins!

@hueldoeu
Copy link

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your terminal? Especially keen to know how you got to that screenshot page @kristapsesterlins

exclusion principle through task manager

@kristapsesterlins
Copy link

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your terminal? Especially keen to know how you got to that screenshot page @kristapsesterlins

Hi,

The tool in the screenshot is Process Monitor - https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

@hueldoeu
Copy link

hueldoeu commented Mar 24, 2024

even edge wants to be an attention-wh0r3
Screenshot 2024-03-24 180448
the problem is now that i can't deactivate edge. restarting the computer didn't help.

@SnoepNFTs
Copy link

SnoepNFTs commented Mar 24, 2024

even edge wants to be an attention-guy Screenshot 2024-03-24 180448 the problem is now that i can't deactivate edge. restarting the computer didn't help.

Technically you could remove it by using christitustech his window utility in an elevated powershell type: irm christitus.com/win | iex > head to tweaks > advanced tweaks > select remove ms edge and run the tweaks > edge should now be removed. If you are heavily invested into Office365, Onedrive and MS teams I wouldn't recommend this as it can break things. but if you don't its a safe option to do so

@atahrijouti
Copy link

atahrijouti commented Mar 26, 2024

in my case, wezterm, my terminal from which I was running the command was blocking OBS

image

@hueldoeu
Copy link

hueldoeu commented Mar 26, 2024

even edge wants to be an attention-guy Screenshot 2024-03-24 180448 the problem is now that i can't deactivate edge. restarting the computer didn't help.

Technically you could remove it by using christitustech his window utility in an elevated powershell type: irm christitus.com/win | iex > head to tweaks > advanced tweaks > select remove ms edge and run the tweaks > edge should now be removed. If you are heavily invested into Office365, Onedrive and MS teams I wouldn't recommend this as it can break things. but if you don't its a safe option to do so

had to cmd (as Administrator) =>
tasklist
taskkill /f /im msedge.exe
taskkill /f /im msedgewebview2.exe
https://www.youtube.com/watch?v=WeJNOypsWDM
one task was very nasty (msedgewebview2) and when i have killed it in the task manager, it killed other msedgewebview2's too and revived them instantly. i looked for the path and renamed the file msedgewebview2.exe in
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\122.0.2365.92
to msedgewebview22.exe. then i killed msedgewebview2 in the task manager again. it didn't appear again. then cmd => winget upgrade obsproject.obsstudio and upgrade was successful.
i rerenamed msedgewebview22 back to msedgewebview2, but doubleclick on it or opening edge didn't allow it to come back to task manager, it was missing.
restarting the PC (win10) helped to revive msedgewebview2.exe, letting it to appear on task manager.

@DoronLGN
Copy link

DoronLGN commented Apr 3, 2024

I encountered this problem as well, and found that Facebook's Messenger app was using OBS for some reason.

@journeym
Copy link

journeym commented Apr 9, 2024

I have the same problem
For me it was Playnite

@Trenly
Copy link
Contributor

Trenly commented May 1, 2024

The response code has been updated for a while now, so WinGet should show the correct error message.

Close with reason: Resolved;

@Atario
Copy link

Atario commented Jul 16, 2024

Another for the list: Samsung Magician

@TechnoStone
Copy link

Another for the list: Nvidia Broadcast (C:\Program Files\NVIDIA Corporation\NVIDIA Broadcast\NvVirtualCamera\NVIDIA Broadcast.exe)

@hueldoeu
Copy link

hueldoeu commented Jul 17, 2024

it had been zoom (installed with .msi) and skype on a specific pc with win10

also C:\Program Files (x86)\ASUS\ArmouryDevice\asus_framework.exe

renamed asus_framework.exe to something else otherwise i couldn't kill ASUS NodeJS Web Framework, but winget upgrade obsproject.obsstudio didn't work, at least i could upgrade it with the .EXE from the official site.

@rasa
Copy link
Contributor

rasa commented Nov 6, 2024

When I run winget upgrade -i OBSProject.OBSStudio this pops up:

---------------------------
OBS Studio 30.2.3 Setup
---------------------------
OBS files are being used by the following applications:



Intel(R) Arc(TM) Control Assist


Please close these applications to continue setup.
---------------------------
Retry   Cancel   
---------------------------

Which I can Ctrl-C to copy-paste here.

@denelon denelon added this to the 1.10 Packages milestone Dec 3, 2024
@hueldoeu
Copy link

hueldoeu commented Dec 8, 2024

i think the in-built update function of obs works quite well
Image
sometimes i use cmd => winget search OBSProject.OBSStudio on specific PCs or Laptops with windows 10/11 and as everyone knows it doesn't work become some programs are using obs as a virtual webcam but on some specific PCs or Laptops it can be over 7 programs which are running in background and running in RAM like zoom, skype, edge, asus armoury, nvidia broadcast, ...

but since the last few times where obs itself asked me to upgrade, i used the update function of obs itself (instead of cmd => winget upgrade or unigetUI) and it took more time to be honest but it never caused any problems and i've never had to close any programs which prevent the update of obs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests