Bug Report Random crashes + stacktrace (0.7.2-11)

nx1101

New Member
Hi. I've been trying out obs for linux on twitch. I was getting random crashes[1] with the prebuilt ppa:obsproject/obs-studio binary, so I tried compiling from scratch, latest ffmpeg + latest obs-studio. Now I'm getting a different crash. Here's the backtrace:

Code:
(gdb) bt full
#0  0x00007fffc161ba2d in xcursor_tick () from /usr//lib/obs-plugins/linux-capture.so
No symbol table info available.
#1  0x00007fffc161e0e5 in XCompcapMain::tick(float) () from /usr//lib/obs-plugins/linux-capture.so
No symbol table info available.
#2  0x00007ffff7ba452a in obs_source_video_tick (source=source@entry=0x14d7c20, seconds=seconds@entry=0.0333333313) at /home/a/obs-studio/libobs/obs-source.c:601
No locals.
#3  0x00007ffff7bbc123 in tick_sources (last_time=95824136647921, cur_time=95824169981254) at /home/a/obs-studio/libobs/obs-video.c:74
        data = 0x9292c8
        delta_time = <optimized out>
        seconds = 0.0333333313
        view = 0x9293f8
        source = 0x14d7c20
#4  obs_video_thread (param=<optimized out>) at /home/a/obs-studio/libobs/obs-video.c:543
        last_time = <optimized out>
        cur_time = 95824169981254
        interval = 33333333
#5  0x00007ffff52a2182 in start_thread (arg=0x7fffc2226700) at pthread_create.c:312
        __res = <optimized out>
        pd = 0x7fffc2226700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736450422528, -8449654280106205640, 1, 0, 140736450423232, 140736450422528, 8449677005886660152, 8449639549934706232}, mask_was_saved = 0}},
          priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#6  0x00007ffff4fceefd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Any clue offhand? Also what should I pass in to cmake to get a debug build?

Thanks.

[1]
Code:
xcb_conn.c:186: write_vec: Assertion `!c->out.queue_len' failed
 
i am going to recommend 14.04 ubuntu based distro with the jon-severenson ppa for ffmpeg. that will provide you the easiest method if you want to stream in linux. also, ensure your opengl and mesa graphics stack is updated past 3.2 i believe....or something. check the other threads for more info
 

Taladan

New Member
Random crash while using OBS on ubuntu 14.04:

Code:
info: [x264 encoder: 'default_h264'] settings:
   bitrate:  2500
   buffer size: 2500
   fps_num:  30
   fps_den:  1
   width:  960
   height:  600
   keyint:  60
   cbr:  on
info: Using ffmpeg "aac" aac encoder
info: FFmpeg AAC: bitrate: 128, channels: 2
info: [rtmp stream: 'default_stream'] Connecting to RTMP URL rtmp://live-iad.twitch.tv/app...
info: [rtmp stream: 'default_stream'] Connection to rtmp://live-iad.twitch.tv/app successful
obs: ../../src/xcb_conn.c:186: write_vec: Assertion `!c->out.queue_len' failed.
Aborted (core dumped)
 

leonhard

Developer
@Taladan: Just to clarify, my comment that this should hopefully be fixed was about the crash in xcursor_tick. Not sure about the other crash, but i was under the impression that this should also be fixed. Could you please specify the version you are on, or preferably post a full log (there is an upload option in the help menu).
 
@leonhard hey don't know where the log is located at. The version is 0.6.4 on Ubuntu 14.04 - checked the repo yesterday and that's current for the repo
i would strongly suggest you upgrade to the GIT version. the PPA has an older version because reasons. it's not difficult to compile from source. I've been meaning to create a video but it's honestly not that hard to do.
 

nx1101

New Member
I compiled 0.7.3 from source and the issue still remains (xcursor_tick segfault), plus the interface is messed up. Seems like something regressed in my setup. As soon as I find a chance, I'll try to fix / submit a pull req.
 
Top