Skip to content

Segfault in video::encode #124

@Logical-sh

Description

@Logical-sh

Describe the Bug

I am getting a segfault when trying to run the app.
Stacktrace:

#0  0x00007ffff6675967 in av_buffer_unref () at /usr/lib/libavutil.so.57
#1  0x00007ffff69cdeb8 in av_packet_unref () at /usr/lib/libavcodec.so.59
#2  0x00007ffff6b0e29b in avcodec_receive_packet () at /usr/lib/libavcodec.so.59
#3  0x00005555557162a3 in video::encode(long, video::session_t&, AVFrame*, std::shared_ptr<safe::post_t<safe::queue_t<std::unique_ptr<video::packet_raw_t, std::default_delete<video::packet_raw_t> > > > >&, void*) ()
#4  0x0000555555718ec6 in video::validate_config(std::shared_ptr<platf::display_t>&, video::encoder_t const&, video::config_t const&) ()
#5  0x000055555571964e in video::validate_encoder(video::encoder_t&) ()
#6  0x000055555571abee in video::init() ()
#7  0x0000555555639dab in main ()

Expected Behavior

No crash

Additional Context

packet.get()->buf is == 0 at this point.

Sunshine Host Operating System and Version

Manjaro Linux (Kernel 5.17)

Architecture

x64

Sunshine Version

Nightly

GPU Type

AMD

GPU Model

6900x

GPU Driver/Mesa Version

mesa-git

Capture Method (Linux Only)

(KVM?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions