Comments (8)
Judging by your output this is not a bug with OBS, but rather a support issue - with your distro, not OBS.
Both
Maximum number of clients reached
and
(obs:1569938): dbind-WARNING **: 09:58:59.537: Could not open X display
... are errors from your X server telling you that it cannot open any further connections, and therefore OBS (or rather Qt) fails to register a Window.
This is a scenario that happens when you have either too many applications open that open a socket to your X server, or (more likely) an issue with your distribution where it leaks open X server connections. I've run into the latter scenario before.
You can see how many open sockets there are to your X server using
ss -x src "@/tmp/.X11-unix/*" | wc -l
Any return value north of 100 (which is already an extreme for regular user's usecase scenarios) points towards an issue with your Distribution.
Either way, this is not an OBS issue. OBS tries to register a window, but your X server refuses to do so.
from obs-studio.
You can see how many open sockets there are to your X server using
ss -x src "@/tmp/.X11-unix/*" | wc -lAny return value north of 100 (which is already an extreme for regular user's usecase scenarios) points towards an issue with your Distribution.
Yup - I'm getting 250 open sockets(!), now I just have to figure out what's causing the leak on my end
That said, it feels like it should be possible to avoid the segfault in such a case - I'll leave this issue open for that
from obs-studio.
Yup - I'm getting 250 open sockets(!), now I just have to figure out what's causing the leak on my end
When I faced this issue it seemed to be related to a specific KDE version, so if you happen to be using KDE, that might be the issue. I don't know what version it was or what version fixed it though, since that was 2 years ago.
Killing and restarting KDE would immediately drop the sockets.
That said, it feels like it should be possible to avoid the segfault in such a case
Not sure how to be honest. Even if it's possible though, the only other alternative is just shutting OBS down by itself, which effectively results in the same behaviour.
from obs-studio.
so if you happen to be using KDE, that might be the issue.
Yeah - I've since reduced the number of open sockets (though I have genuinely no clue how!), so things are running more smoothly. My install is less than a year old though, so unlikely to be the same issue you had
Not sure how to be honest. Even if it's possible though, the only other alternative is just shutting OBS down by itself, which effectively results in the same behaviour.
- If the crash occurs when loading a dock, the dock could just be closed without crashing the rest of the program (this would also allow pulling logs in these cases)
- A clean shutdown would prevent the 'do you want to start in safe mode' dialogue from appearing; given that Safe Mode does not actually reduce the X socket usage (and therefore doesn't fix the problem), this is probably a worthwhile quality of life change
from obs-studio.
Unfortually this issue also happens on Windows, obs is fine if the chat isnt docked but as soon as your try obs crashes
from obs-studio.
Unfortually this issue also happens on Windows, obs is fine if the chat isnt docked but as soon as your try obs crashes
Please provide a crash log and a normal OBS log.
from obs-studio.
@RytoEX Here you go
from obs-studio.
@dtronicsuk I'm pretty sure your problem is unrelated. You're experiencing a crash deep in Qt. Do you buy chance have any environment variables set, such as QT_WIDGETS_RHI
? In any case, ask in our normal support channels to see if this is a known issue or a reportable bug.
- If the crash occurs when loading a dock, the dock could just be closed without crashing the rest of the program (this would also allow pulling logs in these cases)
- A clean shutdown would prevent the 'do you want to start in safe mode' dialogue from appearing; given that Safe Mode does not actually reduce the X socket usage (and therefore doesn't fix the problem), this is probably a worthwhile quality of life change
- If Qt crashes, I don't think we can stop that.
- The Safe Mode check is an alert to notify the user that OBS did not exit cleanly as this is not always obvious to the user. If OBS is crashing, it may not be saving user data correctly. We're not going to special case it on different kinds of crashes. If you do not find it valuable, you can disable it by launching OBS with
--disable-shutdown-check
.
Closing per @mihawk90 's comments. This doesn't sound like an OBS issue.
from obs-studio.
Related Issues (20)
- [BUG] Crash at startup with segmentation fault in libFcitx5Qt6DBusAddons.so.1 HOT 3
- OBS ERROR VIA FLATPAK HOT 6
- obs-webrtc should default to main profile HOT 13
- OBS Crashes at Startup After Installing Davinci Resolve and Persists After Resolve is Uninstalled and OBS Reinstalled HOT 3
- Just crashing HOT 1
- Color picker shouldn't be affected by the setting "Hide OBS Windows from screen capture". HOT 1
- QuickSync not working on Ubuntu 24.04 HOT 2
- [Safe Mode] Unclean shutdown detected! Windows 11 HOT 5
- "System" main theme sometime disappear. HOT 1
- [Windows 11] OBS crashes during regular Windows shutdown HOT 4
- Show Transition/Hide Transition -> Fade only working once HOT 10
- macOS screen capture should automatically restart when display becomes available HOT 1
- PPA does not contain packages for Ubuntu 24.04 HOT 2
- OBS Navbar padding need some improvement, i have fixed it but i don't know how to contribute to UI OBS HOT 3
- New Windows load white HOT 1
- upgrade install of 30.2 beta 3 crashes & wont open on Ubuntu Studio 24.04 HOT 2
- error when building from source : Could NOT find FFnvcodec: Found unsuitable version "12.2.72.1" HOT 3
- Media Source not playing AV1 recordings correctly HOT 5
- "Use stream encoder" will not notify the user that it will follow the streaming service's limits, even if you're only recording.
- nvenc main10 vbr mode and nvidia driver problem HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-studio.