-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Contextbar crashes with alsa backend #3485
Comments
Cannot replicate, given the crash it looks like a bad install. |
I also can not replicate |
Could you try with the following '.asoundrc' (edited for your hardware of course).
|
This crash has nothing related to your configuration in it. |
What do you suggest it is related to then, aside from bad install? I can reproduce this with the mentioned commig as much as I want to, and building with the commit before it, things just work. Perhaps there is more to my set up that I haven't noticed yet. I'll try clearing all the configuration files and such, maybe even try a fresh user, but it may take a while for me to get to it. Thanks so far! |
It crashes in looking up translations for the UI |
Closing this out since someone else could not replicate it either. |
For those who might stumble upon this: I changed 'linux-pulseaudio' to 'linux-alsa' in https://github.com/obsproject/obs-studio/blob/master/UI/context-bar-controls.cpp#L189 and things work again here. (Obviously not an actual fix, but it works.) |
if you compiled without PA support that might be the issue. |
Yes I do do that. |
Does this mean PulseAudio is now mandatory? |
I think someone we have previously fixed issues to allow you to use alsa as the only backend. reopened for now. |
I have the same issue but I want to put something else forward. The crash is caused by the fact that mod = NULL when a non-existing backend is selected, and then crashes. So the least that should be done (even before fixing the pulseaudio vs alsa issue) is assuring that mod is actually set. |
I wonder if anyone enables both, ALSA and PulseAudio at the same time. Not sure if it's a silly way to go about this, but I've been testing stuff like this now:
This of course only allows for one of them at a time, while I believe it's possible to build OBS Studio with both enabled. Can't quite think of a way to add another back-end without larger changes right now. It is also possible to build without either, but I guess in that case one will not have the sources to add and as such, won't be affected... except for when sources have been added in the past. To prevent the crash in case mod is empty-like, I've been using this:
Not sure if that's equally silly. |
This commit prevents a crash in for example Linux configurations where PulseAudio is disabled, which leads into 'mod' being 'null', which in turn leads into a segmentation fault when an ALSA source is selected. Closes obsproject#3485
This commit prevents a crash in, for example, Linux configurations where PulseAudio is disabled, which leads into 'mod' being 'null', which in turn leads into a segmentation fault when an ALSA source is selected. Closes obsproject#3485
@jp9000 this does not add alsa as option. |
This bug is for the crash on the builds without pulseaudio support. |
Right, the toolbar will just be blank with ALSA only, but since I still don't quite have that part figured out better, it can be sorted later (or by someone else, should they get to it before I do). At least the crash should no longer happen, which indeed is what this was mainly about. |
But be realistic. The actual bug was: there is no alsa backend, therefore it crashes. Not: the alsa backend returns a null pointer. |
This commit prevents a crash in, for example, Linux configurations where PulseAudio is disabled, which leads into 'mod' being 'null', which in turn leads into a segmentation fault when an ALSA source is selected. Closes obsproject#3485
This commit prevents a crash in, for example, Linux configurations where PulseAudio is disabled, which leads into 'mod' being 'null', which in turn leads into a segmentation fault when an ALSA source is selected. Closes obsproject#3485
After bd512da [1], a segmentation fault will occur when adding an ALSA source.
Platform
Operating system and version: Gentoo Linux
OBS Studio version: git master
Expected Behavior
No segmentation fault occurs.
Current Behavior
Segmentation fault occurs.
Steps to Reproduce
Additional information
This may or may not require a specific '.asoundrc' (I'll try to test it out soon (tm)).
The text was updated successfully, but these errors were encountered: