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 doesn't start on Ubuntu 22.04.3 LTS #10167

Closed
hamirmahal opened this issue Jan 30, 2024 · 15 comments
Closed

OBS Studio doesn't start on Ubuntu 22.04.3 LTS #10167

hamirmahal opened this issue Jan 30, 2024 · 15 comments

Comments

@hamirmahal
Copy link

Operating System Info

Ubuntu 22.04

Other OS

No response

OBS Studio Version

30.0.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

can't start OBS

OBS Studio Crash Log URL

No response

Expected Behavior

OBS Studio would start.

Current Behavior

The mouse cursor changes into a loading indicator for a few seconds, and then nothing happens.

Steps to Reproduce

  1. Download /home/hamir/Documents/OBS-Studio-30.0.2-Ubuntu-x86_64.deb https://github.com/obsproject/obs-studio/releases/tag/30.0.2.
  2. Run sudo dpkg -i OBS-Studio-30.0.2-Ubuntu-x86_64.deb

Anything else we should know?

No response

@hamirmahal
Copy link
Author

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

@hamirmahal
Copy link
Author

$   obs --version
OBS Studio - 30.0.2

@hamirmahal
Copy link
Author

Screencast.from.01-30-2024.11.23.57.AM.webm

@hamirmahal hamirmahal changed the title OBS Studio doesn't start on OBS Studio doesn't start on Ubuntu 22.04.3 LTS Jan 30, 2024
@Fenrirthviti
Copy link
Member

Please provide a gdb backtrace as well.

@hamirmahal
Copy link
Author

Please provide a gdb backtrace as well.

I'm not sure how to do that.

@hamirmahal
Copy link
Author

$  obs
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

I tried

hamir@hamir-desktop:~ $  obs
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)
hamir@hamir-desktop:~ $ ^C
hamir@hamir-desktop:~ $  sudo apt-get install wayland
[sudo] password for hamir: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package wayland
hamir@hamir-desktop:~ $   ldd /usr/lib/qt/plugins/platforms/libqwayland.so
ldd: /usr/lib/qt/plugins/platforms/libqwayland.so: No such file or directory
hamir@hamir-desktop:~ $  sudo apt-get update
Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:2 https://repo.fig.io/apt stable InRelease                                                                                                 
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                      
Hit:4 https://ngrok-agent.s3.amazonaws.com buster InRelease                                                                                    
Ign:5 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 InRelease                                                                      
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                              
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                            
Hit:8 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                               
Hit:9 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 Release                                                       
Get:10 https://dl.modular.com/public/installer/deb/ubuntu jammy InRelease [5,076 B]                     
Hit:12 https://ppa.launchpadcontent.net/fish-shell/release-3/ubuntu jammy InRelease           
Hit:13 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease
Fetched 5,076 B in 1s (4,981 B/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
hamir@hamir-desktop:~ $   sudo apt-get install gnome-session-wayland
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package gnome-session-wayland
hamir@hamir-desktop:~ $  gdb --version
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
hamir@hamir-desktop:~ $  obs
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)
hamir@hamir-desktop:~ $  gdb obs
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from obs...
(No debugging symbols found in obs)
(gdb) Quit

but none of these seemed to work.

@hamirmahal
Copy link
Author

image

@Gol-D-Ace
Copy link
Member

Gol-D-Ace commented Jan 30, 2024

Hi
It looks like you're missing dependencies.
Dpkg doesn't resolve dependencies on its own.

Try running
sudo apt-get -f install

This should install the missing dependencies.

Alternatively remove obs-studio and get the jammy Deb from 30.0.1 (code is the same) and install it with

sudo apt install ./foo.deb

We also offer a PPA
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install ffmpeg obs-studio

It's possible that the Deb from the CI build system is missing the dependency.

The package is called
qt6-wayland
You might need
qt6-qpa-plugins
as well

@hamirmahal
Copy link
Author

Thanks for the detailed instructions. I'm trying them out now.

$  sudo apt-get -f install
[sudo] password for hamir: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gimp-data gir1.2-snapd-1 libamd2 libapache-pom-java libbabl-0.1-0 libbcprov-java libcamd2 libccolamd2 libcholmod3 libcommons-lang3-java
  libcommons-parent-java libde265-0 libgegl-0.4-0 libgegl-common libgimp2.0 libheif1 libilmbase25 libmetis5 libmng2 libmypaint-1.5-1
  libmypaint-common libopenexr25 libumfpack5 pdftk-java python3-debconf update-notifier-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

@Fenrirthviti
Copy link
Member

At this point, this is a support issue and not a bug. We are not currently accepting support requests on GitHub Issues. Please use our forums or Discord for further assistance.

Thank you!

@Fenrirthviti Fenrirthviti closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2024
@hamirmahal
Copy link
Author

hamirmahal commented Jan 30, 2024

You're welcome! I understand.

@hamirmahal
Copy link
Author

OBS Studio is able to start for me after running these steps that Gol-D-Ace posted above, so I'll just leave it here in case it helps anyone in the future.

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install ffmpeg obs-studio

I usually prefer opening issues like this on GitHub, because they're available to anyone, without an invite, and it can be more organized than several people asking questions at once in a Discord server. Plus, because it's public, it might be easier to find via a search engine, and I can also avoid registering for another forum.

@hamirmahal
Copy link
Author

I'll look into using https://github.com/obsproject/obs-studio/discussions in the future. Thanks for the clear communication!

@Fenrirthviti
Copy link
Member

As per the pinned post on the Discussions: #5206

@hamirmahal
Copy link
Author

Ah, I didn't see that earlier. Thanks for pointing that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants