Bug#364524: mocp crashes w/ assertion failure (iface_set_mixer_value)

2006-04-28 Thread Damian Pietras
On Sun, Apr 23, 2006 at 08:46:35PM -0400, Ryan Richter wrote:
 When I start mocp, it crashes saying:
 
 mocp: interface_elements.c:3267: iface_set_mixer_value: Assertion `value = 0 
  value = 100' failed.

The attached patch should prevent the crash but you will be probably not
able to use one or both mixer channels from moc.

-- 
Damian Pietras
Index: interface.c
===
--- interface.c (revision 1899)
+++ interface.c (working copy)
@@ -424,7 +424,9 @@
 
 static void update_mixer_value ()
 {
-   iface_set_mixer_value (get_mixer_value());
+   int val = get_mixer_value ();
+   
+   iface_set_mixer_value (val = 0 ? val : 0);
 }
 
 static void update_mixer_name ()


signature.asc
Description: Digital signature


Bug#364524: mocp crashes w/ assertion failure (iface_set_mixer_value)

2006-04-25 Thread Ryan Richter
On Mon, Apr 24, 2006 at 08:41:37PM +0200, Elimar Riesebieter wrote:
 On Sun, 23 Apr 2006 the mental interface of
 Ryan Richter told:
 
  Subject: mocp crashes w/ assertion failure (iface_set_mixer_value)
  Package: moc
  Version: 2.4.0-1
  Severity: normal
  
  When I start mocp, it crashes saying:
  
  mocp: interface_elements.c:3267: iface_set_mixer_value: Assertion
  `value = 0  value = 100' failed.
  
  This happens even if I remove my .moc directory.
  
  
  -- System Information:
  Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
  Architecture: amd64 (x86_64)
 
 Does your mixer application work with other sound apps?
 Does ALSA work on your amd64? If you have OSS available please try:
 
 SoundDriver = ALSA
 and
 SoundDriver = OSS
 
 in your ~/.moc/config and tell the difference.

Alsamixer works fine with other programs, including moc_2.3.3-1.  That
version also works fine with ALSA in general (I'm using it for now).

Putting either of those statements in ~/.moc/config results in the same
assertion failure.  With OSS it's presumably using ALSA's OSS emulation.

Thanks,
-ryan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364524: mocp crashes w/ assertion failure (iface_set_mixer_value)

2006-04-25 Thread Elimar Riesebieter
forwarded 364524 [EMAIL PROTECTED]
stop

On Tue, 25 Apr 2006 the mental interface of
Ryan Richter told:

 On Mon, Apr 24, 2006 at 08:41:37PM +0200, Elimar Riesebieter wrote:
[...]
  Does your mixer application work with other sound apps?
  Does ALSA work on your amd64? If you have OSS available please try:
  
  SoundDriver = ALSA
  and
  SoundDriver = OSS
  
  in your ~/.moc/config and tell the difference.
 
 Alsamixer works fine with other programs, including moc_2.3.3-1.  That
 version also works fine with ALSA in general (I'm using it for now).
 
 Putting either of those statements in ~/.moc/config results in the same
 assertion failure.  With OSS it's presumably using ALSA's OSS emulation.

OK, at this point we need Damian, please.

Elimar
-- 
  Numeric stability is probably not all that 
  important when you're guessing;-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364524: mocp crashes w/ assertion failure (iface_set_mixer_value)

2006-04-24 Thread Elimar Riesebieter
On Sun, 23 Apr 2006 the mental interface of
Ryan Richter told:

 Subject: mocp crashes w/ assertion failure (iface_set_mixer_value)
 Package: moc
 Version: 2.4.0-1
 Severity: normal
 
 When I start mocp, it crashes saying:
 
 mocp: interface_elements.c:3267: iface_set_mixer_value: Assertion
 `value = 0  value = 100' failed.
 
 This happens even if I remove my .moc directory.
 
 
 -- System Information:
 Debian Release: testing/unstable
   APT prefers unstable
   APT policy: (500, 'unstable')
 Architecture: amd64 (x86_64)

Does your mixer application work with other sound apps?
Does ALSA work on your amd64? If you have OSS available please try:

SoundDriver = ALSA
and
SoundDriver = OSS

in your ~/.moc/config and tell the difference.

THX
Elimar


-- 
  Learned men are the cisterns of knowledge, 
  not the fountainheads ;-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364524: mocp crashes w/ assertion failure (iface_set_mixer_value)

2006-04-23 Thread Ryan Richter
Subject: mocp crashes w/ assertion failure (iface_set_mixer_value)
Package: moc
Version: 2.4.0-1
Severity: normal

When I start mocp, it crashes saying:

mocp: interface_elements.c:3267: iface_set_mixer_value: Assertion `value = 0 
 value = 100' failed.

This happens even if I remove my .moc directory.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.9
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages moc depends on:
ii  libasound21.0.10-2   ALSA library
ii  libc6 2.3.6-7GNU C Library: Shared libraries
ii  libcomerr21.38+1.39-WIP-2006.04.09-1 common error description library
ii  libcurl3-gnut 7.15.3-1   Multi-protocol file transfer libra
ii  libflac7  1.1.2-3.1  Free Lossless Audio Codec - runtim
ii  libgnutls12   1.2.9-2+b1 the GNU TLS library - runtime libr
ii  libid3tag00.15.1b-8  ID3 tag reading library from the M
ii  libidn11  0.5.18-2   GNU libidn library, implementation
ii  libjack0.100. 0.101.1-1  JACK Audio Connection Kit (librari
ii  libkrb53  1.4.3-6MIT Kerberos runtime libraries
ii  libmad0   0.15.1b-2.1MPEG audio decoder library
ii  libmpcdec31.2.2-1Musepack (MPC) format library
ii  libncursesw5  5.5-1.1Shared libraries for terminal hand
ii  libogg0   1.1.3-2Ogg Bitstream Library
ii  libsamplerate 0.1.2-2audio rate conversion library
ii  libsndfile1   1.0.15-2   Library for reading/writing audio 
ii  libspeex1 1.1.12-1   The Speex Speech Codec
ii  libtagc0  1.4-3  TagLib Audio Meta-Data Library (C 
ii  libvorbis0a   1.1.2-1The Vorbis General Audio Compressi
ii  libvorbisfile 1.1.2-1The Vorbis General Audio Compressi
ii  zlib1g1:1.2.3-11 compression library - runtime

moc recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]