Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380589 - media-sound/qsampler-0.2.2 crashes on startup
Summary: media-sound/qsampler-0.2.2 crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-25 03:41 UTC by Lampros Liontos
Modified: 2012-05-31 08:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backtrace Log (qsampler-bt.log,3.38 KB, text/plain)
2011-08-25 03:42 UTC, Lampros Liontos
Details
Ebuild based on subversion revision. Several bugs fixes, and updated to EAPI=4 (qsampler-0.2.2.33.ebuild,686 bytes, text/plain)
2012-05-10 20:22 UTC, nael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lampros Liontos 2011-08-25 03:41:18 UTC
The QSampler application, when started, will crash with a segmentation fault immediately.

Reproducible: Always

Steps to Reproduce:
1. Launch /usr/bin/qsampler
Actual Results:  
The QSampler window will flash and then disappear, and "Segmentation fault" will appear on the terminal.

Expected Results:  
QSampler should have started and connected to the LinuxSampler server.

I have the following installed:
[ebuild   R   ~] media-sound/linuxsampler-1.0.0  USE="jack sqlite -doc" 686 kB
[ebuild   R   ~] media-sound/qsampler-0.2.2  USE="libgig -debug" 0 kB
[ebuild   R   ~] media-sound/jack-audio-connection-kit-1.9.7  USE="32bit alsa dbus -debug -doc -freebob -ieee1394" 0 kB 

----------------------------------------------

The currently-installed copy of JACK is from the pro-audio overlay, using DBUS, but the issue has also been observed using the main repository.

----------------------------------------------

The emerge-info:

Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r2-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.0.3
Timestamp of tree: Tue, 23 Aug 2011 08:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2-r2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1::sabayon
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo proaudio pd-overlay roslin sunrise vdr-testing voyageur wavilen gnome java-overlay sabayon x-4Pane seden gamerlay-stable ikelos spring nikai ladi mpd x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=amdfam10 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pro-audio /var/lib/layman/pd-overlay /var/lib/layman/roslin /var/lib/layman/sunrise /var/lib/layman/vdr-testing /var/lib/layman/voyageur /var/lib/layman/wavilen /var/lib/layman/gnome /var/lib/layman/java-overlay /var/lib/layman/sabayon /var/lib/layman/4Pane /var/lib/layman/seden /var/lib/layman/gamerlay /var/lib/layman/ikelos /var/lib/layman/Spring /var/lib/layman/nikai /var/lib/layman/ladi /var/lib/layman/mpd /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acl acpi aim alsa amd64 analogtv ao atsc audiofile avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli cracklib crypt csound css cue cups curl curlwrappers cvs cxx dbus dga djvu dri dv dvb dvd dvdr encode examples exif faac faad fam ffmpeg fftw firefox flac fltk fluidsynth fortran gdbm gif gimp glut gnome gnutls gphoto2 gpm gsm gstreamer gtk gtk2 gtkhtml gzip hddtemp iconv icq icu id3 id3tag idn imagemagick imap imlib inotify ipv6 jabber jack java java6 javascript jbig jingle joystick jpeg jpeg2k kde kpathsea ladish ladspa lame lapack lash lastfmradio latex lcms libcaca libsamplerate libvisual lirc lm_sensors lua lv2 lzo mad midi mikmod mime mmx mng modplug modules mp3 mp4 mpd mpeg mpg123 msn mtp mudflap multilib musepack musicbrainz ncurses nls nntp nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oscar pam pcre pda pdf perl plugins png policykit ppds pppd python qt4 quicktime raw readline recode rss samba sasl scanner sdl session sharedmem sid sndfile sockets soundtouch sox speex spell sse sse2 ssl static-libs svg sysfs syslog systray taglib tcpd theora threads tidy tiff timidity truetype twolame udev unicode usb v4l v4l2 vcd vim-syntax vorbis wavpack webkit wildmidi win64codecs wmf wxwidgets x264 xcb xcomposite xft xinerama xml xmp xorg xosd xpm xscreensaver xv xvid yahoo zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau nv radeon v4l vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lampros Liontos 2011-08-25 03:42:37 UTC
Created attachment 284553 [details]
Backtrace Log

This is the backtrace for the issue.
Comment 2 Lampros Liontos 2011-08-25 03:49:43 UTC
Also noticed the QT items, so it seemed relevent to add the following:

[ebuild   R    ] x11-libs/qt-core-4.7.2-r1  USE="exceptions glib iconv jit qt3support ssl (-aqua) -debug -optimized-qmake -pch -private-headers" 0 kB
[ebuild   R    ] x11-libs/qt-gui-4.7.2  USE="accessibility cups dbus exceptions glib gtkstyle mng qt3support tiff xinerama (-aqua) -debug -egl -nas -nis -pch -private-headers -raster -trace" 0 kB
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-03-28 12:28:08 UTC
This is fixed in upstream SVN[1], but I can't identify the particular commit (there have been lots).

1. http://svn.linuxsampler.org/cgi-bin/viewvc.cgi/qsampler/trunk/
Comment 4 Eric F. GARIOUD 2012-04-18 14:28:58 UTC
The problem is that the qsampler 0.2.2 official version gets into trouble with qt-gui > 4.5 and as qt-gui 4.5 is no longer in Portage's tree, this ebuild is simply broken.

LinuxSampler did not release any new official version since but, as Michael wrote, did correct the bugs and made the new sources available in a svn repository.

But... since we are discouraged to suggest subversion ebuilds in Gentoo Portage, the only solution is... do it yourself.

If one needs help in this process, I wrote a simple howto here : http://forums.gentoo.org/viewtopic-t-920616-highlight-.html
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2012-05-02 17:28:05 UTC
(In reply to comment #4)

This means that qsampler has been broken for more than 2 years, i.e. since qt-gui-4.6.2 went stable in March 2010... and given that nobody in sound@g.o seems to care, I'd say to treeclean the package. Furthermore, it is blocking the removal of deprecated qt4.eclass.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-05-02 17:38:29 UTC
Feel free to treeclean it
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2012-05-02 21:05:23 UTC
Masked for removal in 30 days.
Comment 8 Eric F. GARIOUD 2012-05-07 07:18:46 UTC
(In reply to comment #7)
If, within the next 30 days, I were able to realize & post on bugs.gentoo.org :
- A patch to apply to the official 0.2.2 source distribution of qsampler and solving this compatibility problem with qt-gui 4.6 and 4.7 versions, (Cannot tell for 4.8 yet)
- A new ebuild based on the qt4-r2 eclass,
Would it prevent the removal ?
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2012-05-07 08:56:50 UTC
(In reply to comment #8)
> (In reply to comment #7)
> If, within the next 30 days, I were able to realize & post on
> bugs.gentoo.org :
> - A patch to apply to the official 0.2.2 source distribution of qsampler and
> solving this compatibility problem with qt-gui 4.6 and 4.7 versions, (Cannot
> tell for 4.8 yet)
> - A new ebuild based on the qt4-r2 eclass,
> Would it prevent the removal ?

In theory yes, but why would you want to do that since upstream does not care anymore?
Comment 10 Eric F. GARIOUD 2012-05-07 10:19:52 UTC
(In reply to comment #9)
1/ Because upstream, while apparently no longer taking care of issuing official releases, still takes care of the software. (Last modification was commited 3 weeks ago)
2/ Because as JSampler is not in Portage's tree, if QSampler disappears, LinuxSampler will be left frontend-less to gentooers, that is to say... useless.
3/ Because... hmm... I remember the first time I installed Linux, when I knew nothing about how to build softwares on Linux... I would certainly not have chosen Gentoo if the LinuxSampler suite had not been installable via Portage.

However,

I admit that considering the lack of interest from sound@gentoo.org, the fact that this bug did not collect any vote since its opening and that... my howto on Gentoo Forum did not trigger any comment... your question sounds actually sensible.
I might well be the only one to care.

In which case, sorry for the noise, feel free to proceed to the removal.
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2012-05-07 10:24:12 UTC
If you commit to maintaining the package and effectively become the new upstream, and can make sure it will work with Qt 4.8, then I see no objection to keeping this package in portage.
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2012-05-07 10:31:12 UTC
Yes, proxy maintainership would be a viable option. Please submit an updated ebuild (possibly based on a recent snapshot from upstream's VCS) which fixes all known issues.
Comment 13 nael 2012-05-10 20:22:45 UTC
Created attachment 311377 [details]
Ebuild based on subversion revision. Several bugs fixes, and updated to EAPI=4

Adapted and updated from the live-ebuild of pro-audio overlay.
Comment 14 nael 2012-05-10 20:26:15 UTC
Hi, 

I attached an ebuild using a specific revision of subversion. Is the last, but all the newer commits are bugfixes, so I guess it can be considered stable.

I'm using Qt 4.8.1.

I'm using also liblscp and libgig live ebuilds (patched by myself, the ones in the pro-audio overlay are outdated), but I guess it would work with older versions.

Nael
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2012-05-27 10:15:01 UTC
I have just committed a live subversion ebuild to the gentoo-multimedia overlay that addresses the problems and proposed fixes here and in bug #379663. If this ebuild seems to fix all issues, then we can make a snapshot ebuild based on that for the official tree.

Please test and let me know your results.
Comment 16 Ben de Groot (RETIRED) gentoo-dev 2012-05-30 13:48:44 UTC
Fixed in qsampler-0.2.2.2345 snapshot ebuild. Thanks for your contributions!
Comment 17 Markos Chandras (RETIRED) gentoo-dev 2012-05-31 08:08:08 UTC
The ebuild filename is wrong. Bad things can happen if upstream releases 0.2.2.1. Your snapshot will appear to be newer than the actual release. Please use _p instead.

See: http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=3&chap=1#doc_chap3