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

[BUG] Can't click menu bar after program start #2678

Closed
gxalpha opened this issue Apr 8, 2020 · 9 comments · Fixed by #5155
Closed

[BUG] Can't click menu bar after program start #2678

gxalpha opened this issue Apr 8, 2020 · 9 comments · Fixed by #5155
Labels
Confirmed This bug report has been confirmed by project members macOS Affects macOS

Comments

@gxalpha
Copy link
Member

gxalpha commented Apr 8, 2020

Platform

Operating system and version: macOS Catalina 10.15.4
OBS Studio version: OBS 25.0.4-6-g2a318d91

Expected Behavior

After starting OBS, I should be able to click on the menu bar items, like "File", "Edit", "Tools" etc. to access those menus.

Current Behavior

After starting OBS, clicking on the menu bar items on left side (the buttons of the program plus the Apple-Logo) does nothing. They don't turn blue and they don't open up a menu. The buttons on the right side of the menu bar (like clock, wifi, time machine and the username) still work.
To get the buttons working, you need to first focus another program, either by clicking on it or by selecting it via cmd-tab. After this, when you focus OBS again, everything works as intended.
Log file: log.txt

Steps to Reproduce

  1. Install a fresh clone of OBS:
    git clone --recursive https://github.com/obsproject/obs-studio.git
  2. Build OBS
    brew install FFmpeg x264 Qt5 cmake mbedtls swig
    mkdir build
    cd build
    export QTDIR=/usr/local/opt/qt
    cmake .. && make -j
  3. Start OBS
    cd rundir/RelWithDebInfo/bin
    ./obs
  4. Try clicking the menu bar.

Additional information

I figured this out during development of a plugin, but it happens even after fresh-cloning and building OBS so I doubt that the plugin has something to do with it.

@DDRBoxman
Copy link
Member

I believe this currently only happens when running OBS outside a proper app bundle.

I was not able to find a sufficient work around, but it mostly is an issue when doing dev

@jdsierral
Copy link

Same here!... installed on OSX Mojave ant was fine!, on Catalina it didn't initially, but after a while it did work... I'll try to report if anything changes

@apolaine
Copy link

I had the same thing on Catalina, but resizing the main OBS scenes window activated the menu again.

@PatTheMav
Copy link
Member

Can confirm, this only happens when run from command line - it's as if the app is launched but the window is not activated (notice how the title bar is greyed out). Switching to and from OBS (to trigger a window update) fixed it.

Doesn't happen when compiled and run from Xcode though.

@aenciso
Copy link

aenciso commented May 5, 2020

As @PatTheMav says, switching to terminal and back to OBS window enable menu items.

@PatTheMav
Copy link
Member

I haven't checked with other apps, but if this is true, than it's a quirk of apps opened from Terminal: https://bugreports.qt.io/browse/QTBUG-48829?focusedCommentId=295165&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-295165

@WizardCM
Copy link
Member

Does this mean we can safely close this ticket as "won't fix"?

@PatTheMav
Copy link
Member

@WizardCM The fix would be to have our cmake build system create a proper macOS app bundle instead of just an output folder with libraries and a binary. This would also fix the issue of OBS crashing when run outside of an app bundle and trying to access protected devices (i.e. webcam).

@WizardCM
Copy link
Member

Understood. I'll leave this open for now then. :)

@WizardCM WizardCM added the Confirmed This bug report has been confirmed by project members label Sep 9, 2020
@WizardCM WizardCM linked a pull request May 19, 2021 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed This bug report has been confirmed by project members macOS Affects macOS
Projects
None yet
8 participants