Question / Help OBS 25.0.3 Crashes on Ubuntu 18.04.4 LTS

RowdySouls

New Member
Ever since OBS 25.0.2 OBS and on (25.0.3) has continued to crash for us when we attempt to add text or image sources.
It seems to allow us to add a few sources of different types and then crashes seemingly for no reason.
Once this happens, after re-opening OBS, it will crash with any source after this.

I monitored resources and didn't see any resource spikes of ram or CPU usage.

Log file located here: https://obsproject.com/logs/LbiPFndmaW-x1g2p

Any help would be greatly appreciated.
 

thkg00fy

New Member
This really is some kind of weird issue, but the same thing happens to me, too!
Started OBS via Terminal with the "verbose" option to get some more details. Seems like some kind of memory access issue.

If you compare the font selection dialog of OBS in "User Mode" with the one you get when starting it via sudo, there is clearly a difference!
Maybe someone added some code that need SU-rights!?

I'm not a coder myself and FAR away from any knowledge, but it looks like OBS stays stable if you start it via SUDO.
However, no one should useany program with root privilegs if not absolutely necessary!!
 

Attachments

RowdySouls

New Member
This really is some kind of weird issue, but the same thing happens to me, too!
Started OBS via Terminal with the "verbose" option to get some more details. Seems like some kind of memory access issue.

If you compare the font selection dialog of OBS in "User Mode" with the one you get when starting it via sudo, there is clearly a difference!
Maybe someone added some code that need SU-rights!?

I'm not a coder myself and FAR away from any knowledge, but it looks like OBS stays stable if you start it via SUDO.
However, no one should useany program with root privilegs if not absolutely necessary!!
I ran OBS Studio using Sudo as well and my issue goes away...
Could you please upload a copy or screenshot of one of your logs where it crashes? I'd like to compare it to mine.
 
Last edited:

thkg00fy

New Member
Okay, did some more testing now...
As soon as I try to change a Text Source font size, OBS crashes.
The Terminal throws out two messages in verbose mode:

"QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0"
"Segmentation fault (core dumped)"

So it seems there's something borked with the font selector...

Next thing: whatever I try to do, the font settings won't save at all, but in SU-Modeit works just fine...
 

RowdySouls

New Member
Until there's a hotfix, this appeares to fix this as it changes the trouble causing widgets to qt widgets:
1.) Install qt5ct and qt5 style plugins: sudo apt-get install qt5ct and sudo apt-get install qt5-style-plugins
2.) In the terminal: export QT_QPA_PLATFORMTHEME=qt5ct
3.) In the terminal: obs
 

RandomHost

New Member
Until there's a hotfix, this appeares to fix this as it changes the trouble causing widgets to qt widgets:
1.) Install qt5ct and qt5 style plugins: sudo apt-get install qt5ct and sudo apt-get install qt5-style-plugins
2.) In the terminal: export QT_QPA_PLATFORMTHEME=qt5ct
3.) In the terminal: obs
This just saved my day. Thanks.

I kept running into segmentation faults whenever I tried to edit existing image sources after switching to the PPA version.

The OBS log basically stops right before the crash. The system log however had this:
Code:
Apr  7 17:46:14 ****** dbus-daemon[1416]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.420' (uid=1000 pid=6292 comm="obs " label="unconfined")
Apr  7 17:46:14 ****** systemd[1]: Starting Hostname Service...
Apr  7 17:46:14 ****** kernel: [39660.291343] CrBrowserMain[6315]: segfault at 0 ip 0000000000000000 sp 00007fce88dfc788 error 14 in obs[55e38f867000+26f000]
Apr  7 17:46:14 ****** kernel: [39660.291349] obs[6292]: segfault at 0 ip 0000000000000000 sp 00007ffdc09d8438 error 14
Apr  7 17:46:14 ****** kernel: [39660.291351]  in obs[55e38f867000+26f000]
Apr  7 17:46:15 ****** gnome-shell[3704]: Object .Gjs_AppIndicatorIconActor__1 (0x55c951426dc0), has been already finalized. Impossible to set any property to it.
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: == Stack trace for context 0x55c94f49b320 ==
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #0 0x7ffe38a3f2e0 I   resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7f19ac2b5de0 @ 87)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #1 0x55c94f848fa0 i   /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/indicatorStatusIcon.js:93 (0x7f195c067098 @ 58)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #2 0x7ffe38a3ff00 I   resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f19ac2b5de0 @ 71)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #3 0x7ffe38a3ff00 I   self-hosted:916 (0x7f19ac2f12b8 @ 367)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #4 0x7ffe38a3ff80 I   resource:///org/gnome/gjs/modules/signals.js:128 (0x7f19ac2d2230 @ 386)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #5 0x55c94f848f18 i   /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:190 (0x7f195c04fcd0 @ 22)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #6 0x7ffe38a40b60 I   resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f19ac2b5de0 @ 71)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #7 0x55c94f848e70 i   /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/statusNotifierWatcher.js:176 (0x7f195de44f78 @ 26)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #8 0x7ffe38a41740 I   resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f19ac2b5de0 @ 71)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #9 0x55c94f848dd0 i   /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/statusNotifierWatcher.js:170 (0x7f195de44ef0 @ 68)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #10 0x7ffe38a42330 I   resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f19ac2b5de0 @ 71)
Apr  7 17:46:15 ****** org.gnome.Shell.desktop[3704]: #11 0x7ffe38a423e0 I   self-hosted:918 (0x7f19ac2f12b8 @ 394)
The AppIndicatorIcon stuff lead me to believe that there could be an issue with the tray icon so I disabled that and got stuck with this error instead:
Code:
Apr  7 18:01:00 ****** obs[26256]: GtkDialog mapped without a transient parent. This is discouraged.
Apr  7 18:01:00 ****** org.gnome.Shell.desktop[3704]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2400bf1 specified for 0x3800007 (Bilddatei).
Apr  7 18:01:00 ****** org.gnome.Shell.desktop[3704]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3800007 (Bilddatei)
Apr  7 18:01:00 ****** kernel: [40545.563582] obs[26256]: segfault at 0 ip 00007f8a2e722760 sp 00007ffddbf07a88 error 4 in libcef.so[7f8a2c578000+61ea000]
In both cases, the file browser window (which I think is provided by Nautilus) briefly pops up before OBS crashes.

The Qt file browser widget appears to work, but it's giving me retro vibes.

Also, running OBS from the command line as described in the workaround above has side effects on my machine like increased UI font size.

That's still better than not being able to edit image sources anymore, of course.
 
Top