Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#993490: handbrake: terminates on launch, no reason given

41 views
Skip to first unread message

Rob Moss

unread,
Sep 2, 2021, 1:40:03 AM9/2/21
to
Package: handbrake
Version: 1.4.1+ds1-1
Severity: important
X-Debbugs-Cc: robm...@gmail.com

Dear Maintainer,

I am running Debian Testing. I last used handbrake around 2 weeks ago, and it worked as expected.

Today, both the GTK and CLI versions terminate immediately when I launch them.

When I pass the "--debug" argument, I obtain the following output:

----------
(null): create_builder_or_die()

(null): ghb_ui_update() activity_location
(null): get_setting_key ()

(null): ghb_widget_to_setting
(null): get_setting_key ()

(null): get_setting_key ()

Aborted
----------

I haven't been able to identify the cause for this.

I tried downgrading to handbrake 1.4.0+ds1-2 and ffmpeg 7:4.3.2-0+deb11u2, but this had no effect.

All the best,
Rob

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages handbrake depends on:
ii libass9 1:0.15.1-2
ii libavcodec58 7:4.4-5
ii libavfilter7 7:4.4-5
ii libavformat58 7:4.4-5
ii libavutil56 7:4.4-5
ii libbluray2 1:1.3.0-3
ii libc6 2.31-17
ii libcairo2 1.16.0-5
ii libdvdnav4 6.1.1-1
ii libdvdread8 6.1.2-1
ii libgdk-pixbuf-2.0-0 2.42.6+dfsg-2
ii libglib2.0-0 2.68.4-1
ii libgstreamer-plugins-base1.0-0 1.18.4-2
ii libgstreamer1.0-0 1.18.4-2.1
ii libgtk-3-0 3.24.30-2
ii libgudev-1.0-0 237-2
ii libjansson4 2.13.1-1.1
ii libmfx1 21.1.0-1
ii libpango-1.0-0 1.48.9+ds1-2
ii libswresample3 7:4.4-5
ii libswscale5 7:4.4-5
ii libtheora0 1.1.1+dfsg.1-15
ii libturbojpeg0 1:2.0.6-4
ii libva-drm2 2.12.0-2
ii libva2 2.12.0-2
ii libvorbis0a 1.3.7-1
ii libvorbisenc2 1.3.7-1
ii libx264-160 2:0.160.3011+gitcde9a93-2.1
ii libx265-192 3.4-2
ii libxml2 2.9.10+dfsg-6.7

Versions of packages handbrake recommends:
ii gstreamer1.0-libav 1.18.4-3
ii gstreamer1.0-pulseaudio 1.18.4-2
ii gstreamer1.0-x 1.18.4-2

handbrake suggests no packages.

-- no debconf information

Rob Moss

unread,
Sep 3, 2021, 2:10:03 AM9/3/21
to
Greetings,

I experience the same problem when building this package from source with the following commands:

# apt source handbrake
# sudo apt build-dep handbrake
# cd handbrake-1.4.1+ds1/
# dpkg-buildpackage -us -uc
# ./debian/handbrake/usr/bin/ghb --debug

All the best,
Rob

On Thu, 2 Sept 2021 at 15:36, Debian Bug Tracking System <ow...@bugs.debian.org> wrote:
Thank you for filing a new Bug report with Debian.

You can follow progress on this Bug here: 993490: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993490.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  robm...@gmail.com
(after having been given a Bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 Debian Multimedia Maintainers <debian-m...@lists.debian.org>

If you wish to submit further information on this problem, please
send it to 993...@bugs.debian.org.

Please do not send mail to ow...@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.

--
993490: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993490
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

Rob Moss

unread,
Sep 19, 2021, 9:40:03 PM9/19/21
to
Here is the backtrace I obtained using gdb, as per the HowToGetABacktrace page on the Debian wiki:

Thread 1 "ghb" received signal SIGABRT, Aborted.
0x00007ffff371fce1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007ffff371fce1 in raise () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff3709537 in abort () at /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff370940f in  () at /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff3718662 in  () at /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007fffbd09ec35 in intel_enc_hw_context_init (ctx=0x555556ae5fd0, obj_config=0x555556ae94a0, vme_context_init=0x7fffbd075020 <gen8_vme_context_init>, mfc_context_init=0x7fffbd06cf20 <gen8_mfc_context_init>) at i965_encoder.c:1692
#5  0x00007fffbd096827 in i965_CreateContext (ctx=<optimized out>, config_id=<optimized out>, picture_width=<optimized out>, picture_height=<optimized out>, flag=<optimized out>, render_targets=0x555556ae5b80, num_render_targets=<optimized out>, context=<optimized out>) at i965_drv_video.c:2706
#6  0x00007ffff3a21de4 in vaCreateContext (dpy=0x555556ae5e60, config_id=16777216, picture_width=1920, picture_height=1088, flag=1, render_targets=0x555556ae5b80, num_render_targets=4, context=0x555556afb7c0) at va.c:1239
#7  0x00007fffbe3fc02d in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#8  0x00007fffbe36b55d in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#9  0x00007fffbe36ccb6 in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#10 0x00007fffbe24fdd7 in MFXVideoENCODE_Init () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#11 0x00005555555fd47b in  ()
#12 0x00005555556002b4 in  ()
#13 0x000055555560042f in  ()
#14 0x00005555555e0945 in  ()
#15 0x00005555555b9fb8 in ghb_backend_init ()
#16 0x00005555555a79a5 in ghb_activate_cb ()
#17 0x00007ffff705665f in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff706899b in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff706ec6f in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff706f1df in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff73d0ed8 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#22 0x00007ffff73d104e in g_application_run () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#23 0x0000555555586042 in main ()
#0  0x00007ffff371fce1 in raise () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff3709537 in abort () at /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff370940f in  () at /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff3718662 in  () at /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007fffbd09ec35 in intel_enc_hw_context_init (ctx=0x555556ae5fd0, obj_config=0x555556ae94a0, vme_context_init=0x7fffbd075020 <gen8_vme_context_init>, mfc_context_init=0x7fffbd06cf20 <gen8_mfc_context_init>) at i965_encoder.c:1692
        i965 = <optimized out>
        intel = <optimized out>
        encoder_context = 0x555556b16670
        i = <optimized out>
        __PRETTY_FUNCTION__ = "intel_enc_hw_context_init"
#5  0x00007fffbd096827 in i965_CreateContext (ctx=<optimized out>, config_id=<optimized out>, picture_width=<optimized out>, picture_height=<optimized out>, flag=<optimized out>, render_targets=0x555556ae5b80, num_render_targets=<optimized out>, context=<optimized out>) at i965_drv_video.c:2706
        i965 = 0x555556ae86a0
        obj_config = 0x555556ae94a0
        obj_context = 0x555556aea630
        attrib = <optimized out>
        vaStatus = 0
        contextID = <optimized out>
        i = <optimized out>
        max_width = 4096
        max_height = 4096
        min_width_height = <optimized out>
        __PRETTY_FUNCTION__ = "i965_CreateContext"
#6  0x00007ffff3a21de4 in vaCreateContext (dpy=0x555556ae5e60, config_id=16777216, picture_width=1920, picture_height=1088, flag=1, render_targets=0x555556ae5b80, num_render_targets=4, context=0x555556afb7c0) at va.c:1239
        ctx = <optimized out>
        vaStatus = <optimized out>
        __func__ = "vaCreateContext"
#7  0x00007fffbe3fc02d in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#8  0x00007fffbe36b55d in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#9  0x00007fffbe36ccb6 in  () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#10 0x00007fffbe24fdd7 in MFXVideoENCODE_Init () at /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1
#11 0x00005555555fd47b in  ()
#12 0x00005555556002b4 in  ()
#13 0x000055555560042f in  ()
#14 0x00005555555e0945 in  ()
#15 0x00005555555b9fb8 in ghb_backend_init ()
#16 0x00005555555a79a5 in ghb_activate_cb ()
#17 0x00007ffff705665f in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff706899b in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff706ec6f in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff706f1df in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff73d0ed8 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#22 0x00007ffff73d104e in g_application_run () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#23 0x0000555555586042 in main ()

Sebastian Ramacher

unread,
Sep 20, 2021, 3:20:04 PM9/20/21
to
Control: tags -1 moreinfo

On 2021-09-20 11:34:55 +1000, Rob Moss wrote:
> Here is the backtrace I obtained using gdb, as per the HowToGetABacktrace
> page on the Debian wiki:
>
> Thread 1 "ghb" received signal SIGABRT, Aborted.
> 0x00007ffff371fce1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> #0 0x00007ffff371fce1 in raise () at /lib/x86_64-linux-gnu/libc.so.6
> #1 0x00007ffff3709537 in abort () at /lib/x86_64-linux-gnu/libc.so.6
> #2 0x00007ffff370940f in () at /lib/x86_64-linux-gnu/libc.so.6
> #3 0x00007ffff3718662 in () at /lib/x86_64-linux-gnu/libc.so.6
> #4 0x00007fffbd09ec35 in intel_enc_hw_context_init (ctx=0x555556ae5fd0,
> obj_config=0x555556ae94a0, vme_context_init=0x7fffbd075020
> <gen8_vme_context_init>, mfc_context_init=0x7fffbd06cf20
> <gen8_mfc_context_init>) at i965_encoder.c:1692
> #5 0x00007fffbd096827 in i965_CreateContext (ctx=<optimized out>,
> config_id=<optimized out>, picture_width=<optimized out>,
> picture_height=<optimized out>, flag=<optimized out>,
> render_targets=0x555556ae5b80, num_render_targets=<optimized out>,
> context=<optimized out>) at i965_drv_video.c:2706
> #6 0x00007ffff3a21de4 in vaCreateContext (dpy=0x555556ae5e60,
> config_id=16777216, picture_width=1920, picture_height=1088, flag=1,
> render_targets=0x555556ae5b80, num_render_targets=4,

Right, so this is a crash in the vaapi driver. Do you have
i965-va-driver or i965-va-driver-shaders installed? In case it's the
latter it would be an upstream bug. If it's i965-va-driver that's
probably caused by the patches we require to build without non-free
shaders for main.

(In general, for encoding you want the non-free vaapi driver to have
proper hardware encoding support.)

Cheers
--
Sebastian Ramacher
signature.asc

Rob Moss

unread,
Sep 21, 2021, 1:50:02 AM9/21/21
to
> Right, so this is a crash in the vaapi driver. Do you have
> i965-va-driver or i965-va-driver-shaders installed? In case it's the
> latter it would be an upstream bug. If it's i965-va-driver that's
> probably caused by the patches we require to build without non-free
> shaders for main.
>
> (In general, for encoding you want the non-free vaapi driver to have
> proper hardware encoding support.)

I have i965-va-driver installed (2.4.1+dfsg1-1). I wasn't aware of the
i965-va-driver-shaders package and how it differs from i965-va-driver.

I just installed i965-va-driver-shaders, rebooted, and now handbrake
doesn't crash on launch. So presumably this is a bug in
i965-va-driver?

Thanks very much for your assistance,
Rob

Sebastian Ramacher

unread,
Sep 21, 2021, 2:40:03 AM9/21/21
to
Control: reassign -1 i965-va-driver 2.4.1+dfsg1-1

On 2021-09-21 15:39:17, Rob Moss wrote:
> > Right, so this is a crash in the vaapi driver. Do you have
> > i965-va-driver or i965-va-driver-shaders installed? In case it's the
> > latter it would be an upstream bug. If it's i965-va-driver that's
> > probably caused by the patches we require to build without non-free
> > shaders for main.
> >
> > (In general, for encoding you want the non-free vaapi driver to have
> > proper hardware encoding support.)
>
> I have i965-va-driver installed (2.4.1+dfsg1-1). I wasn't aware of the
> i965-va-driver-shaders package and how it differs from i965-va-driver.
>
> I just installed i965-va-driver-shaders, rebooted, and now handbrake
> doesn't crash on launch. So presumably this is a bug in
> i965-va-driver?

It is. Reassigningaccordingly.

Cheers
--
Sebastian Ramacher
0 new messages