Discussion:
Bug#354266: libqt4-gui: Error loading MNG file(s)
Paul Telford
2006-02-24 21:47:08 UTC
Permalink
Package: libqt4-gui
Version: 4.1.0-3
Severity: normal

I'm not sure if this is a bug in Qt or something else. I'm trying to
load an MNG file with QMovie calls and it results in a segfault every
time, even when using the "movie" executable included in qt's examples/
directory. Here's some stuff from gdb:

#0 0xb74fe09f in free () from /lib/tls/libc.so.6
#1 0xb74ffc4c in malloc () from /lib/tls/libc.so.6
#2 0xb76aef85 in operator new () from /usr/lib/libstdc++.so.6
#3 0xb7bfdafc in QPixmap::init () from /usr/lib/libQtGui.so.4
#4 0xb7bfa8a8 in QPixmap::QPixmap () from /usr/lib/libQtGui.so.4
#5 0xb7bf9a34 in QMovie::supportedFormats () from /usr/lib/libQtGui.so.4
#6 0xb7bf9c36 in QMovie::supportedFormats () from /usr/lib/libQtGui.so.4
#7 0xb7bf9c69 in QMovie::supportedFormats () from /usr/lib/libQtGui.so.4
#8 0xb7bf9c69 in QMovie::supportedFormats () from /usr/lib/libQtGui.so.4


I have tried a couple of different MNG files, and they do load OK in
an external viewer (gmngview included with libmng source).

Thanks,


Paul.


-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libqt4-gui depends on:
ii fontconfig 2.3.2-1 generic font configuration library
ii libaudio2 1.7-3 The Network Audio System (NAS). (s
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libfontconfig1 2.3.2-1 generic font configuration library
ii libfreetype6 2.1.10-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.0.2-5 GCC support library
ii libglu1-xorg [libglu 6.9.0.dfsg.1-4 Mesa OpenGL utility library [X.Org
ii libice6 6.8.2.dfsg.1-7 Inter-Client Exchange library
ii libjpeg62 6b-10 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.8rel-4 PNG library - runtime
ii libqt4-core 4.1.0-3 Qt 4 core non-GUI functionality ru
ii libsm6 6.8.2.dfsg.1-7 X Window System Session Management
ii libstdc++6 4.0.2-5 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii libxcursor1 1.1.3-1 X cursor management library
ii libxext6 6.8.2.dfsg.1-7 X Window System miscellaneous exte
ii libxi6 6.8.2.dfsg.1-7 X Window System Input extension li
ii libxinerama1 6.8.2.dfsg.1-7 X Window System multi-head display
ii libxrandr2 6.8.2.dfsg.1-10 X Window System Resize, Rotate and
ii libxrender1 1:0.9.0.2-1 X Rendering Extension client libra
ii libxt6 6.8.2.dfsg.1-7 X Toolkit Intrinsics
ii xlibmesa-gl [libgl1] 6.8.2.dfsg.1-7 Mesa 3D graphics library [X.Org]
ii xlibs 6.8.2.dfsg.1-7 X Window System client libraries m
ii zlib1g 1:1.2.3-4 compression library - runtime

Versions of packages libqt4-gui recommends:
pn qt4-qtconfig <none> (no description available)

-- no debconf information
Anthony Awtrey
2006-02-28 19:22:14 UTC
Permalink
Hi Paul,

I was just about to report this as a bug in the packaging of the qt4-x11
files, so I'll just append your report. We saw that when we linked to
the debug libs we got animated gif and mng support, but with the
optimized libs they didn't work. There are some missing files missing
from the libqt4-gui package's install file:


In the qt4-x11/debian/libqt4-gui.install file:

usr/lib/libQtGui.so.*
usr/lib/libQtOpenGL.so.*
usr/bin/qtconfig-qt4
usr/lib/qt4/plugins/imageformats/libqjpeg.so
usr/lib/qt4/plugins/imageformats/libqgif.so <-- Add this
usr/lib/qt4/plugins/imageformats/libqmng.so <-- Add this
usr/lib/qt4/plugins/codecs/*codecs.so

It takes a long time to rebuild (like over an hour on our 2.5GHz box
with a gig of RAM), but when it is done you should have debs that will work.

I think the problem exists because it is easy for the debug files to get
masked in as "*debug.so", but the non-debug files must be specified by
name or they are not included in the package.

Hope this helps!

Tony
--
Anthony L. Awtrey
Chief Technology Officer
[T] 407.999.9870 x13
[F] 407.999.9850

I.D.E.A.L. Technology Corporation
http://www.idealcorp.com

"The Leader in Linux and Open Source Solutions"
Brian Nelson
2006-02-28 20:14:07 UTC
Permalink
Post by Anthony Awtrey
I was just about to report this as a bug in the packaging of the qt4-x11
files, so I'll just append your report. We saw that when we linked to
the debug libs we got animated gif and mng support, but with the
optimized libs they didn't work. There are some missing files missing
usr/lib/libQtGui.so.*
usr/lib/libQtOpenGL.so.*
usr/bin/qtconfig-qt4
usr/lib/qt4/plugins/imageformats/libqjpeg.so
usr/lib/qt4/plugins/imageformats/libqgif.so <-- Add this
usr/lib/qt4/plugins/imageformats/libqmng.so <-- Add this
usr/lib/qt4/plugins/codecs/*codecs.so
Thanks, I'll be sure to add these to the package in the next release.
Post by Anthony Awtrey
It takes a long time to rebuild (like over an hour on our 2.5GHz box
with a gig of RAM), but when it is done you should have debs that will work.
I think the problem exists because it is easy for the debug files to get
masked in as "*debug.so", but the non-debug files must be specified by
name or they are not included in the package.
Indeed. Unfortunately, there's no way with dh_install AFAIK to use
wildcards with a not clause, e.g. *.so files that don't end in
_debug.so.
--
Captain Logic is not steering this tugboat.
Paul Telford
2006-03-01 18:27:07 UTC
Permalink
Post by Brian Nelson
Indeed. Unfortunately, there's no way with dh_install AFAIK to use
wildcards with a not clause, e.g. *.so files that don't end in
_debug.so.
I haven't looked at the specific code in your rules file, but could
you build a list with something like:
find . -name \*.so -not -name \*_debug.so



Paul.

Loading...