#233 load both "videoVLC" and "imageMagick" at startup crash pd

0.94
open
linux
7
2014-09-03
2014-08-23
jack
No

When I try to load gem_videoVLC.so at startup, Pd crash.

Backtrace :
http://pastebin.com/nGnfAaBQ
++

Jack

Related

Bugs: #217
Bugs: #233

Discussion

  • On 23. August 2014 13:52:02 MESZ, jack jackovic@users.sf.net wrote:

    [bugs:#233] load gem_videoVLC.so at startup crash pd

    There are two probable issues:
    - there was a crasher bug with videoVLC, that was (introduced and) fixed recently
    - there seems to be some glib incompatibility with another external. I dont know if this is fixable at all.

    To detect which of the two issued you have do:
    - make sure you have the latest
    Gem from git
    - try loading Gem/videoVLC without any other external (and then add externals until you find the culprit)

    --
    mfh.ifs.dhr
    IOhannes

    sent from my pdp-12

     

    Related

    Bugs: #233

  • jack
    jack
    2014-08-24

    Yes, I have the latest Gem from git.
    It is a problem between gem_imageMAGICK.so and gem_videoVLC.so. When I add gem_imageMAGICK.so in the Gem directory (where gem_videoVLC.so is already in place), Pd crash at startup.
    ++

    Jack

     
  • Cyrille Henry
    Cyrille Henry
    2014-08-24

    i do have both gem_imageMAGICK.so and gem_videoVLC.so, and i have no crash.
    ubuntu 14.04 and Gem from current git.

     
  • jack
    jack
    2014-08-24

    I will try with a new build of Gem with :
    $ make clean
    $ git pull
    $ aclocal
    $ ./autogen.sh
    $ ./configure
    $ make
    And I keep you informed.
    ++

    Jack

     
  • jack
    jack
    2014-08-24

    I still get the Pd crash (Ubuntu 14.04). Always between gem_imageMAGICK.so and gem_videoVLC.so.

    $ dpkg --list | grep libvlc
    ii libvlc-dev 2.1.4-0ubuntu14.04.1 amd64 development files for libvlc
    ii libvlc5 2.1.4-0ubuntu14.04.1 amd64 multimedia player and streamer library
    rc libvlccore5 2.0.8-1 amd64 base library for VLC and its modules
    ii libvlccore7 2.1.4-0ubuntu14.04.1 amd64 base library for VLC and its modules

    $ dpkg --list | grep magick
    ii imagemagick 8:6.7.7.10-6ubuntu3 amd64 image manipulation programs
    ii imagemagick-common 8:6.7.7.10-6ubuntu3 all image manipulation programs -- infrastructure
    ii libmagick++-dev 8:6.7.7.10-6ubuntu3 amd64 object-oriented C++ interface to ImageMagick - development files
    ii libmagick++5:amd64 8:6.7.7.10-6ubuntu3 amd64 object-oriented C++ interface to ImageMagick
    ii libmagickcore-dev 8:6.7.7.10-6ubuntu3 amd64 low-level image manipulation library - development files
    ii libmagickcore5:amd64 8:6.7.7.10-6ubuntu3 amd64 low-level image manipulation library
    ii libmagickcore5-extra:amd64 8:6.7.7.10-6ubuntu3 amd64 low-level image manipulation library - extra codecs
    ii libmagickwand-dev 8:6.7.7.10-6ubuntu3 amd64 image manipulation library - development files
    ii libmagickwand5:amd64 8:6.7.7.10-6ubuntu3 amd64 image manipulation library

    ++

    Jack

     
  • thanks for the additional info.

    this is a duplicate of [#217], but given that this report contains more info, i will leave it open (and close the other one)

     

    Related

    Bugs: #217

  • $ dpkg --list | grep libvlc and $ dpkg --list | grep magick give me the same as Jack but I don't have any crash.

    The line #27 of the backtrace says :

    <error reading variable: access outside bounds of object referenced via synthetic pointer>
    

    Could this be the cause of your crash ?

     
  • urgh, this is slightly ugly to debug.

    both vlc and ImageMagick have plugin-systems, which get initialized during initialization of Gem's plugin system, and which seem to trigger a conflict.

    just to imagine:

    • Pd starts, and loads Gem.pd_linux via dlopen().
      • Gem searches for plugins and finds and loads gem_imageMAGICK.so via dlopen().
        • gem_imageMAGICK.so initializes ImageMagick
          • ImageMagick searches for plugins in /usr/lib/.../ImageMagick-6.7.7/modules-Q16/ and loads them via dlopen().
      • Gem searches for more plugins and finds and loads gem_videoVLC.so via dlopen().
        • gem_videoVLC.so initializes libvlc
          • libvlc searches for plugins in /usr/lib/vlc/plugins and loads them via dlopen().

    the crash seems to be related to glibc (when (re)initialized by the qt-plugin for vlc's gui)

     
  • just adding jack's original system info:

    Ubuntu 13.04 64 bits
    Linux jack-GE60-0NC-0ND 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    GEM: ver: 0.93.git 374f713
    GEM: compiled: Aug 5 2013
    Pd 0.44.3
    libmagick++-dev : 8:6.7.7.10-5ubuntu2
    libvlc-dev : 2.0.8-0ubuntu0.13.04.1

     


Anonymous


Cancel   Add attachments