Sound does not play in koules due to removal of OSS API

Bug #921896 reported by Martin Jackson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
koules (Ubuntu)
New
Undecided
Unassigned

Bug Description

The OSS API was removed from the Ubuntu kernel.

Koules was written a long time ago, and still depends on the presence of /dev/dsp. It works perfectly well with the padsp wrapper, e.g. "padsp koules". However, the start menu in Unity at least does not start the program this way.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: koules 1.4-18
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 014d169fc2d78562c156088c6ab6adc0
CheckboxSystem: c69722ecac764861be52925fa50b4dcc
Date: Wed Jan 25 19:51:31 2012
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
 PATH=(custom, user)
SourcePackage: koules
UpgradeStatus: Upgraded to oneiric on 2011-10-09 (108 days ago)

Revision history for this message
Martin Jackson (mhjacks) wrote :
Revision history for this message
Ruben Garcia (rubengarciahernandez) wrote :

I just tested koules on Ubuntu 18.04.6 LTS

Running
```
sudo apt install koules
koules
```
gives
```
X: Screen doesn't support PseudoColor!
Shm mode seems to be possible
Allocating palette
X Error of failed request: BadName (named color or font does not exist)
  Major opcode of failed request: 45 (X_OpenFont)
  Serial number of failed request: 13
  Current serial number in output stream: 19
32- 2
koules.sndsrv: shutting down
```
It seems there is a missing font which should be a dependency of the package.

Revision history for this message
Ruben Garcia (rubengarciahernandez) wrote (last edit ):

I ran it with gdb, the line causing the issue is
setcustompalette (0, 1);
specifically
if (setcustompalette1 (ncolor))
which calls
if (!useprivate && !XAllocColor (dp, colormap, &color))
with colormap = 32

Revision history for this message
Ruben Garcia (rubengarciahernandez) wrote :

I also ran it within
Xephyr -screen 800x600x8 :1
to ensure PseudoColor was available:
```
X4GW 1.21.21 professional
Copyright(c)1991,1992,1993,1994,1995 Jan Hubicka(JAHUSOFT)
Initializing sound server...
Autoprobing hardware
Initializing joystick driver
Joystick driver not avaiable(recompile koules with JOYSTICK enabled )
Connecting X server
Shm mode seems to be possible
Allocating pallette
X Error of failed request: BadName (named color or font does not exist)
  Major opcode of failed request: 45 (X_OpenFont)
  Serial number of failed request: 12
  Current serial number in output stream: 18
32-2
koules.sndsrv: shutting down
```

Even thought the Pseudocolor error disappears, the XAllocColor remains.

Revision history for this message
Ruben Garcia (rubengarciahernandez) wrote :

Some more information: The error in the messages above are from a machine with Intel Graphics: Intel Corporation HD Graphics 620 (rev 02).

I also tested it in a machine with an nVidia card, and the game runs correctly there. I think the issue is Intel not supporting 8-bit color modes correctly.

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

Other bug subscribers

Remote bug watches

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