Alsa causes lockup/freeze (link)

Started by golinux, December 14, 2015, 08:29:41 PM

Previous topic - Next topic

golinux

Quote from: mean on December 29, 2015, 05:14:23 AM
Build the Qt version, the Gtk one does not really work anymore

Well, that's a bummer!  I wish I'd known that before spending all that time today trying to build it. With the lockup I'm getting, the Qt version doesn't work either.  :(  There's no way to build the Gtk version?

Regardless, can the lockup glitch p-l-e-a-s-e be patched?

mean

If the drain patch does not work, avidemux needs to be run under gdb to see where it is stuck
i.e.
gdb /usr/bin/avidemux3_qt5
** Do your stuff until it locks ***

CTRL+C
bt

And the please post the output

golinux

Quote from: mean on December 29, 2015, 06:35:05 AM
If the drain patch does not work, avidemux needs to be run under gdb to see where it is stuck
i.e.
gdb /usr/bin/avidemux3_qt5
** Do your stuff until it locks ***

CTRL+C
bt

And the please post the output

I have avidemux3_qt4 installed not qt5.  That's what's available in the Jessie/Devuan merged repos.  I had to install gdb.  This is the output.

$ gdb /usr/bin/avidemux3_qt4
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/avidemux3_qt4...(no debugging symbols found)...done.
(gdb) Quit
(gdb) bt
No stack.
(gdb)


But I might not have done something properly.

I'm going to try to recompile the zipped 'master' files I downloaded from your git for qt5 with that one line commented out.  Maybe something wasn't right the first time.

Jan Gruuthuse

try this way:
gdb /usr/bin/avidemux3_qt4
on (gdb) prompt:
run
** Do your stuff until it locks ***
CTRL+C
bt
And the please post the output


golinux

Thanks!  That worked.  Output is attached.

golinux

#35
I have also tried to recompile from the "master" source that I downloaded from git. It wouldn't make so I installed libqt4-dev and crossed my fingers. For the first time it made the debs! But GDebi complained:

Error: Dependency is not satisfiable avidemux3-core-runtime (>=2.6.911)

*edit*  Since that attempt, I found the list of dependencies on this page,  I was missing some -dev pkgs.  Tried again and it built the qt4 debs but still getting the same error above.  I also tried building for qt5 and nothing really happened.




mean

it is stuck in snd_pcm_drain
Are you sure you commented it out ?

golinux

Quote from: mean on December 30, 2015, 05:13:57 AM
it is stuck in snd_pcm_drain
Are you sure you commented it out ?

Yes!

/* Stop PCM device after pending frames have been played */
   /* snd_pcm_drain(pcm_handle); */


First, a friend who is more savvy than I rebuilt the debs but with dpkg-buildpackage.  Didn't seem to make a difference but maybe that was because of the way it was built. The debs that I built are deficient.  Only audio options were dummy and oss.  And many icons missing from the nav bar.  I have tried working off of the 'master' zip file on your site and also the source from the Devuan merged repos.  No joy.  I really know very little about compiling from source so have no idea why it's not working.  I've been using avidemux for a very long time and never had a problem before now.  This is pretty depressing . . .

Jan Gruuthuse

check if additional are missing:
dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm

you can ignore vdpau stuff if you don't have nvidia display card

QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-===========================================================
ii  build-essential             11.6ubuntu6        amd64              Informational list of build-essential packages
ii  cmake                       2.8.12.2-0ubuntu3  amd64              cross-platform, open-source make system
ii  cmake-data                  2.8.12.2-0ubuntu3  all                CMake data files (modules, templates and documentation)
ii  cmake-dbg                   2.8.12.2-0ubuntu3  amd64              debugging symbols for CMake
ii  fakeroot                    1.20-3ubuntu2      amd64              tool for simulating superuser privileges
ii  fontconfig                  2.11.0-0ubuntu4.1  amd64              generic font configuration library - support binaries
ii  g++                         4:4.8.2-1ubuntu6   amd64              GNU C++ compiler
ii  gcc                         4:4.8.2-1ubuntu6   amd64              GNU C compiler
ii  gettext                     0.18.3.1-1ubuntu3  amd64              GNU Internationalization utilities
ii  git                         1:1.9.1-1ubuntu0.1 amd64              fast, scalable, distributed revision control system
ii  liba52-0.7.4-dev            0.7.4-17           amd64              library for decoding ATSC A/52 streams (development)
ii  libaften-dev                0.0.8+git20100105- amd64              audio AC3 encoder - development files
ii  libasound2-dbg:amd64        1.0.27.2-3ubuntu7  amd64              debugging symbols for libasound2
ii  libasound2-dev:amd64        1.0.27.2-3ubuntu7  amd64              shared library for ALSA applications -- development files
ii  libass-dev:amd64            0.10.1-3ubuntu1    amd64              development files for libass
ii  libdca-dev:amd64            0.0.5-6ubuntu1     amd64              decoding library for DTS Coherent Acoustics streams (develo
ii  libdts-dev:amd64            0.0.5-6ubuntu1     amd64              backward compatibility place-holder for libdca
ii  libfaac-dev:amd64           1.28-6             amd64              AAC audio encoder (development)
ii  libfaad-dev:amd64           2.7-8              amd64              freeware Advanced Audio Decoder - development files
ii  libfreetype6-dev            2.5.2-1ubuntu2.5   amd64              FreeType 2 font engine, development files
ii  libfribidi-dev              0.19.6-1           amd64              Development files for FreeBidi library
ii  libftgl-dev                 2.1.3~rc5-4+nmu1   amd64              development files for libftgl
ii  libftgl2:amd64              2.1.3~rc5-4+nmu1   amd64              library to render text in OpenGL using FreeType
ii  libglib2.0-0-dbg:amd64      2.40.2-0ubuntu1    amd64              Debugging symbols for the GLib libraries
ii  libglib2.0-dev              2.40.2-0ubuntu1    amd64              Development files for the GLib library
ii  libiconv-hook-dev           0.0.20021209-10ubu amd64              header files of libiconv-hook
ii  libmad0-dev                 0.15.1b-8ubuntu1   amd64              MPEG audio decoder development library
ii  libmp3lame-dev:amd64        3.99.5+repack1-3ub amd64              MP3 encoding library (development)
ii  libopencore-amrnb-dev:amd64 0.1.3-2ubuntu1     amd64              Adaptive Multi Rate speech codec - development files
ii  libopencore-amrnb0-dbg:amd6 0.1.3-2ubuntu1     amd64              Adaptive Multi Rate speech codec - debugging symbols
ii  libopencore-amrwb-dev:amd64 0.1.3-2ubuntu1     amd64              Adaptive Multi-Rate - Wideband speech codec - development f
ii  libopencore-amrwb0-dbg:amd6 0.1.3-2ubuntu1     amd64              Adaptive Multi-Rate - Wideband speech codec - debugging sym
ii  libopenvg1-mesa:amd64       10.4.0~git20141112 amd64              free implementation of the OpenVG API -- runtime
ii  libpng12-dev                1.2.50-1ubuntu2    amd64              PNG library - development
ii  libqt4-dbg:amd64            4:4.8.5+git192-g08 amd64              Qt 4 library debugging symbols
ii  libqt4-dev                  4:4.8.5+git192-g08 amd64              Qt 4 development files
ii  libqt4-opengl-dev           4:4.8.5+git192-g08 amd64              Qt 4 OpenGL library development files
ii  libqt4-script:amd64         4:4.8.5+git192-g08 amd64              Qt 4 script module
ii  libqt4-script:i386          4:4.8.5+git192-g08 i386               Qt 4 script module
ii  libqt4-script-dbg:amd64     4:4.8.5+git192-g08 amd64              Qt 4 script library debugging symbols
ii  libsamplerate0-dev:amd64    0.1.8-7            amd64              Development files for audio sample rate conversion
ii  libsdl-sound1.2-dev:amd64   1.0.3-7            amd64              Sound library for Simple DirectMedia Layer 1.2, development
ii  libsqlite3-0-dbg            3.8.2-1ubuntu2.1   amd64              SQLite 3 debugging symbols
ii  libsqlite3-dev:amd64        3.8.2-1ubuntu2.1   amd64              SQLite 3 development files
ii  libtwolame-dev              0.3.13-1ubuntu1    amd64              MPEG Audio Layer 2 encoder (development files)
ii  libva-dev:amd64             1.5.0-1~xedgers~tr amd64              Video Acceleration (VA) API for Linux -- development files
ii  libvdpau-dev:amd64          1.1-0ubuntu1~xedge amd64              Video Decode and Presentation API for Unix (development fil
ii  libvorbis-dev:amd64         1.3.2-1.3ubuntu1   amd64              The Vorbis General Audio Compression Codec (development fil
ii  libvpx-dev:amd64            1.3.0-2            amd64              VP8 video codec (development files)
ii  libvpx1-dbg                 1.3.0-2            amd64              VP8 video codec (debugging symbols)
ii  libwxsqlite3-2.8-0:amd64    3.0.6.1~dfsg0-2    amd64              SQLite3 C++ wrapper for use in programs based on the wxWidg
ii  libx264-dev:amd64           2:0.142.2389+git95 amd64              development files for libx264
ii  libxft-dev                  2.3.1-2            amd64              FreeType-based font drawing library for X (development file
ii  libxml2-dbg:amd64           2.9.1+dfsg1-3ubunt amd64              Debugging symbols for the GNOME XML library
ii  libxml2-dev:amd64           2.9.1+dfsg1-3ubunt amd64              Development files for the GNOME XML library
ii  libxslt1-dbg:amd64          1.1.28-2build1     amd64              XSLT 1.0 processing library - debugging symbols
ii  libxv-dev:amd64             2:1.0.10-1         amd64              X11 Video extension library (development headers)
ii  libxv1-dbg:amd64            2:1.0.10-1         amd64              X11 Video extension library (debug package)
ii  libxvidcore-dev:amd64       2:1.3.2-9ubuntu1   amd64              Open source MPEG-4 video codec (development)
ii  libxvmc1-dbg                2:1.0.8-1ubuntu1   amd64              X11 Video extension library (debug package)
ii  libzip-dev                  0.10.1-1.2         amd64              library for reading, creating, and modifying zip archives (
ii  mesa-common-dev:amd64       11.0.4~git20151026 amd64              Developer documentation for Mesa
ii  mesa-vdpau-drivers:amd64    11.0.4~git20151026 amd64              Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers-dbg:amd6 11.0.4~git20151026 amd64              Debugging symbols for the Mesa VDPAU video acceleration dri
ii  pkg-config                  0.26-1ubuntu4      amd64              manage compile and link flags for libraries
ii  sqlite3                     3.8.2-1ubuntu2.1   amd64              Command line interface for SQLite 3
ii  vainfo                      1.5.0-1~xedgers~tr amd64              Video Acceleration (VA) API for Linux -- info program
ii  vdpauinfo                   0.1-1              amd64              Video Decode and Presentation API for Unix (vdpauinfo utili
ii  xsltproc                    1.1.28-2build1     amd64              XSLT 1.0 command line processor
ii  yasm                        1.2.0-1ubuntu1     amd64              modular assembler with multiple syntaxes support

mean

Maybe it is installed at 2 difference places and you still load the old one
what is the output of
find / -name "libADM_av_alsa*.so"

golinux

#40
Quote from: Jan Gruuthuse on December 30, 2015, 06:55:09 AM
check if additional are missing:
dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm

you can ignore vdpau stuff if you don't have nvidia display card

This drive may be going on a machine with nVidia so probably need to have it.

Well, this explains a few things.  May not have a chance to get to this today though.

$ dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  build-essentia 11.7         i386         Informational list of build-essen
ii  cmake          3.0.2-1      i386         cross-platform, open-source make
ii  cmake-data     3.0.2-1      all          CMake data files (modules, templa
ii  fakeroot       1.20.2-1     i386         tool for simulating superuser pri
ii  fontconfig     2.11.0-6.3   i386         generic font configuration librar
ii  g++            4:4.9.2-2    i386         GNU C++ compiler
ii  gcc            4:4.9.2-2    i386         GNU C compiler
ii  gettext        0.19.3-2     i386         GNU Internationalization utilitie
ii  liba52-0.7.4-d 0.7.4-17     i386         library for decoding ATSC A/52 st
ii  libaften-dev:i 0.0.8svn2010 i386         audio AC3 encoder - development f
ii  libasound2-dev 1.0.28-1     i386         shared library for ALSA applicati
ii  libdca-dev:i38 0.0.5-dmo2   i386         decoding library for DTS Coherent
ii  libfaac-dev:i3 1:1.28-dmo3  i386         AAC audio encoder - devel files.
ii  libfaad-dev:i3 2.7-8        i386         freeware Advanced Audio Decoder -
ii  libfreetype6-d 2.5.2-3      i386         FreeType 2 font engine, developme
ii  libfribidi-dev 0.19.6-3     i386         Development files for FreeBidi li
ii  libglib2.0-dev 2.42.1-1     i386         Development files for the GLib li
ii  libmad0-dev    0.15.1b-8    i386         MPEG audio decoder development li
ii  libmp3lame-dev 1:3.99.5-dmo i386         Development files for LAME
ii  libopencore-am 0.1.3-2.1    i386         Adaptive Multi Rate speech codec
ii  libopencore-am 0.1.3-2.1    i386         Adaptive Multi-Rate - Wideband sp
ii  libopenvg1-mes 10.3.2-1+deb i386         free implementation of the OpenVG
ii  libpng12-dev:i 1.2.50-2+b2  i386         PNG library - development
ii  libqt4-dev     4:4.8.6+git6 i386         Qt 4 development files
ii  libqt4-opengl- 4:4.8.6+git6 i386         Qt 4 OpenGL library development f
ii  libqt4-script: 4:4.8.6+git6 i386         Qt 4 script module
ii  libsamplerate0 0.1.8-8      i386         Development files for audio sampl
ii  libsqlite3-dev 3.8.7.1-1+de i386         SQLite 3 development files
ii  libva-dev:i386 1.4.1-1      i386         Video Acceleration (VA) API for L
ii  libvdpau-dev:i 1.1.1-1~bpo8 i386         Video Decode and Presentation API
ii  libvorbis-dev: 1.3.4-2      i386         development files for Vorbis Gene
ii  libvpx-dev:i38 1.3.0-3      i386         VP8 and VP9 video codec (developm
ii  libx264-dev:i3 3:0.148.2579 i386         Development files for libx264
ii  libxml2-dev:i3 2.9.1+dfsg1- i386         Development files for the GNOME X
ii  libxv-dev:i386 2:1.0.10-1+b i386         X11 Video extension library (deve
ii  libxvidcore-de 3:1.3.3-dmo1 i386         High quality ISO MPEG4 codec libr
ii  mesa-common-de 10.3.2-1+deb i386         Developer documentation for Mesa
ii  mesa-vdpau-dri 10.3.2-1+deb i386         Mesa VDPAU video acceleration dri
ii  pkg-config     0.28-1       i386         manage compile and link flags for
ii  sqlite3        3.8.7.1-1+de i386         Command line interface for SQLite
ii  xsltproc       1.1.28-2+b2  i386         XSLT 1.0 command line processor
ii  yasm           1.3.0-dmo2   i386         Modular assembler with multiple s
dpkg-query: no packages found matching cmake-dbg
dpkg-query: no packages found matching git
dpkg-query: no packages found matching libasound2-dbg
dpkg-query: no packages found matching libass-dev
dpkg-query: no packages found matching libdts-dev
dpkg-query: no packages found matching libftgl-dev
dpkg-query: no packages found matching libftgl2
dpkg-query: no packages found matching libglib2.0-0-dbg
dpkg-query: no packages found matching libiconv-hook-dev
dpkg-query: no packages found matching libopencore-amrnb0-dbg
dpkg-query: no packages found matching libopencore-amrwb0-dbg
dpkg-query: no packages found matching libqt4-dbg
dpkg-query: no packages found matching libqt4-script-dbg
dpkg-query: no packages found matching libsdl-sound1.2-dev
dpkg-query: no packages found matching libsqlite3-0-dbg
dpkg-query: no packages found matching libtwolame-dev
dpkg-query: no packages found matching libvpx1-dbg
dpkg-query: no packages found matching libwxsqlite3-2.8-0
dpkg-query: no packages found matching libxft-dev
dpkg-query: no packages found matching libxml2-dbg
dpkg-query: no packages found matching libxslt1-dbg
dpkg-query: no packages found matching libxv1-dbg
dpkg-query: no packages found matching libxvmc1-dbg
dpkg-query: no packages found matching libzip-dev
dpkg-query: no packages found matching mesa-vdpau-drivers-dbg
dpkg-query: no packages found matching vdpauinfo
dpkg-query: no packages found matching vainfo

golinux

Quote from: mean on December 30, 2015, 07:31:58 AM
Maybe it is installed at 2 difference places and you still load the old one
what is the output of
find / -name "libADM_av_alsa*.so"

Nope.  All installed in /usr/lib/  Note that only libADM_av_alsa.so is found in my Wheezy avidemux install.

/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaDefault.so
/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaDMix.so
/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaHw.so
/wroot/usr/lib/ADM_plugins/audioDevices/libADM_av_alsa.so

golinux

Another friend just compiled 2.6.10 for Jessie.  It installed but unfortunately has the same lockup problem.  I wonder why no one else is experiencing it?  Guess they don't mind Lennart breaking everyone else's toys. There are also some missing icons (like input-output view).  The same thing happened to me when I compiled.

I will add the missing pkgs when I can find the time.  Hopefully, it will make a difference.

golinux

I tried to build it again (with that line commented out) after installing the 25 or so missing pkgs on Jan Gruuthuse's list.  It built rather quickly and installed without a hitch.  Version in 'About' is 2.6.911.

Then the moment of truth . . . THE GLITCH WAS GONE!  Also gone are all the 'Preview mode' options on the Main toolbar!! Is there anyway to get those back?  I use them quite a bit. Couldn't find them in any other menu.

Of course, I haven't actually tried to edit any video yet.  That is for another day.  :)

The list of deps should really be posted somewhere on your site.  If that had been available, it would have saved days of frustration.  And references to the Gtk version should probably be removed (though I may actually try to build it again just for giggles).

All your help has been very much appreciated!

So how about getting the Preview Modes back??

Jan Gruuthuse

Mark @ Bottom right hand:
[ ] Play filtered
when ticked this is preview mode