libmikmod mis-renders ImpulseTracker (.it) files on amd64

Bug #194916 reported by Graham C
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Extreme Tux Racer
Invalid
Medium
Christian Picon
libmikmod (Debian)
New
Undecided
Unassigned
libmikmod (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

On my system, the in-game music in Extreme Tux Racer sounds wrong (lots of missing notes)

This is with 0.4-0ubuntu1 (Ubuntu Hardy)

My machine is an Athlon XP 1900+, ATI Radeon 9700 Pro and Soundblaster Live! Value (perhaps not the most recent in the world, but was still perfectly adept at running [Tux|PlanetPenguin] Racer)

Revision history for this message
Graham C (chckens) wrote :
Revision history for this message
Christian Picon (cpicon92) wrote :

That is very weird, it seems to selectively play only certain notes of certain instruments. Most of the music in the next version will be in ogg format though, so the problem shouldn't happen then.

Revision history for this message
Paweł Drewniak (woody) wrote :

This is a hard guess, but since ETRacer eats a lot of CPU time, it could be the cause - I had a similar problem with Timidity++ (software MIDI sequencer) on a P3 800 MHz.

Revision history for this message
Hew (hew) wrote :

I've just installed Extreme Tux Racer and immediately noticed the same issue. Menu music as well as in game. Listening to the audio sample above, I can confirm it is the exact same notes being played/missed on my system. Core 2 Duo E6400, Nvidia Geforce 7600GT, ASUS P5B onboard sound. Also running 0.4-0ubuntu1 on latest Ubuntu Hardy.

Revision history for this message
Christian Picon (cpicon92) wrote :

It'll be fixed in the next version, we're gonna start using oggs instead of midis, that'll fix the problem.

Changed in etracer:
assignee: nobody → cpicon92
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Hew (hew) wrote :

I have confirmed this bug to occur in Extreme Tux Racer, PlanetPenguin Racer, and Pingus on Ubuntu Hardy, so it's not an etracer issue. My best guess at the guilty package (by looking at shared dependencies) is libsdl1.2 since it handles sound.

Changed in etracer:
status: In Progress → Invalid
Revision history for this message
Paweł Drewniak (woody) wrote :

Yes, it is probably either libsdl1.2-sound or libmikmod (against which libsdl links), which is responsible of handling IT files.

Revision history for this message
J.P. (mackdieselx27) wrote :

Confirmed with Planet Penguin Racer in Hardy. Both menu and gameplay soundtrack (exactly as heard in the ogg sample).

Hew (hew)
Changed in libsdl1.2:
status: New → Confirmed
Revision history for this message
Yotam Benshalom (benshalom) wrote :

Happens on my planetpenguin-racer as well, on hardy with core-duo t2500 and 2 gb memory. Happens with and without pulseaudio enabled.

Revision history for this message
Hew (hew) wrote :

Problem has disappeared with Intrepid. Seemed to be Hardy specific.

Changed in libsdl1.2:
importance: Undecided → Low
status: Confirmed → Invalid
Revision history for this message
J.P. (mackdieselx27) wrote :

So, given the low priority of this bug, what can we do to fix this problem ourselves without upgrading to Ibex?

Revision history for this message
Hew (hew) wrote :

You could try upgrading only the libsdl packages to the Intrepid version. Note that we don't know exactly where the bug/fix is (which is why it's invalid and not fix released), so it's really just trial and error. No guarantees that it will work, or that it won't break your sound either.

1) Change your sources.list to use intrepid instead of hardy
2) Update libsdl1.2debian (1.2.13-2ubuntu1), which should also include libsdl1.2debian-alsa (please don't update your whole system)
3) Change your sources.list back to using hardy

Only try this If you're comfortable with modifying your sources.list and you understand the implications of having non-hardy packages installed. Let me know if this fixes the problem.

Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

Preloading libmikmod.so.2.0.4 built from libmikmod-3.1.12 fixes this issue. The Ubuntu version of libmikmod2 (3.1.11-a-6.1 in Lucid) is either too ancient or broken.

affects: libsdl1.2 (Ubuntu) → libmikmod (Ubuntu)
Changed in libmikmod (Ubuntu):
status: Invalid → New
Revision history for this message
Ilja Sekler (ilja-sekler-) wrote :

The issue is caused by "CVE-2007-6720.patch" Debian patch for libmikmod2.

Revision history for this message
Christian Picon (cpicon92) wrote :

Somebody should really report this upstream to Debian. I can't really figure out how, though.

Revision history for this message
Paweł Drewniak (woody) wrote :

This should be a helpful one: http://www.debian.org/Bugs/Reporting

Revision history for this message
Christian Picon (cpicon92) wrote :

That's pretty much what I was looking for, thanks.

summary: - background music doesn't play correctly
+ libmikmod mis-renders ImpulseTracker (.it) files on amd64
Revision history for this message
Darsey Litzenberger (dlitz) wrote :

There's a good sample here: (fallacius_gear.it): http://modarchive.org/module.php?41179

The melody plays fine on i686, but gets completely butchered on amd64.

Deleting debian/patches/CVE-2007-6720.patch and rebuilding libmikmod2 makes the problem go away, but obviously that's not what we want.

Revision history for this message
Darsey Litzenberger (dlitz) wrote :

And the butchered version...

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

I've compiled a fixed version for Debian, if someone would try I published preliminary packages:

http://ctu.iuculano.it/libmikmod/

Feedbacks are appreciated

Giuseppe.

Revision history for this message
Alexander Shishenko (gamepad64) wrote :

Giuseppe Iuculano,
Your version works well on amd64. Can you send it to upstream?

Revision history for this message
max (maxozilla) wrote :

Not sure if this ties in with https://bugs.launchpad.net/etracer/+bug/694802 . I thought the missing notes were deliberate! - though not particularly nice - and I'm not on amd64. Will try the fixed packages.

Revision history for this message
Travis Whitaker (pi-boy-travis) wrote :

This happens in Ubuntu 11.04 as well.

Revision history for this message
Gabriel Rota (gabriel-rota) wrote :

the fix of Giuseppe Iuculano working for me.
I've tested by
prevu http://ctu.iuculano.it/libmikmod/i386/libmikmod_3.1.11-6.4~1.gbpf83cbd.dsc
on maverick amd64 and natty i386 with pingus.
does anyone know how to test the cve?
does anyone know how to promote the upstream?
I think of include it in my ppa for fix https://bugs.launchpad.net/pingus/+bug/575319 is good idea?

Revision history for this message
Lukáš Chmela (lukaschmela) wrote :

I can confirm this bug in Ubuntu 11.04 too.

I have tried the package from Giuseppe Iuculano and I think that the sound is better when racing (maybe correct), however, it still sounds very weird in the main menu and even more in the Audio menu.

Changed in libmikmod (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libmikmod - 3.1.11-6.4

---------------
libmikmod (3.1.11-6.4) unstable; urgency=low

  * Non-maintainer upload.
  * Fixed regression introduced by CVE-2007-6720.patch
    (Closes: #631009)(LP: #194916)
 -- Michael Bienia <email address hidden> Tue, 09 Aug 2011 00:10:54 +0000

Changed in libmikmod (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Darsey Litzenberger (dlitz) wrote :

Works for me now (built from source on natty). Thanks, everyone!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.