PDA

View Full Version : DD on Debian Linux - Segmentation Fault


bungnugget
January 27th, 2005, 11:08 PM
Hi. I have compiled and copied all resource files and done everything mentioned in the COMPILING/README files respectively.

I have also installed the debian packages for sdlmixer and sdlmixer-dev and everything else as needed. I am launching the game with these parameters, as I have made a little bash script...

#!/bin/bash
~/Doom/jdoom/bin/doomsday -g jdoom -f ~/Doom/IWADS/doom.wad -ud ~/Doom/jdoom/ -savedir ~/Doom/jdoom/savegames -wnd -w 640 -h 480 -bpp 16

This is the error that I am recieving...
(everything goes fine until this point)

Sys_Init: Setting up machine state.
Sys_Init: Initializing keyboard, mouse and joystick.
Sys_InitTimer.
Sfx_Init: Initializing SDL_mixer...
DS_Load: Loading of libdssdlmixer failed.
Sfx_Init: Driver init failed. Sfx is disabled.
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

I have installed the sdlmixer libraries. I did searched the debian package cache, after updating it, for *libdssdlmixer* and did not find anything.

Here is a copy of my Doomsday.out file (I think its going to hold the same thing as I have pasted above, but here it is anyway)

Con_Init: Initializing the console.
SW_Init: Startup message window opened.
Executable: Version 1.8.6 Jan 28 2005 (DGL).
Memory zone: 32.0 Mb.
Parsing configuration files.
W_Init: Init WADfiles.
W_AddFile: /home/ajavid/Doom/IWADS/doom.wad
IWAD identification: 00cdce4c
W_AddFile: Data/Doomsday.wad
W_AddFile: Data/jDoom/jDoom.wad
IWAD identification: 00056533
W_AddFile: Data/jDoom/Auto/jDRP.pk3
(blah blah blah, it loads all the .pk3 files)
Reading definition file: Defs/Doomsday.ded
Reading definition file: Defs/jDoom/jDoom.ded
138 sprite names
974 states
140 things
8 lights
112 sound effects
68 songs
335 text strings
27 particle generators
22 animation groups
49 surface decorations
69 map infos
6 finales
Sys_Init: Setting up machine state.
Sys_Init: Initializing keyboard, mouse and joystick.
Sys_InitTimer.
Sfx_Init: Initializing SDL_mixer...
DS_Load: Loading of libdssdlmixer failed.
Sfx_Init: Driver init failed. Sfx is disabled.

Any kind of help would be appreciated, thank you very much.

lord-noctrun
January 28th, 2005, 07:49 AM
that are two different problems: first off if you run doomsday with the resource pack you are need to give more memory than 32 mb (default use the -maxzone parameter but note you need to add a m behind the number or it will use kbs and not mbs: -maxzone 128m, needless to say don't give doomsday all of your system ram or even more) that might rid you of the sdl paracute

second: sound is disabled as it doesn't find the sdl-lib, as for libsdlmixer, you're lucky that I am a fellow debian user: the name of package is libsdl-mixer1.2 (and libsdl-mixer1.2-dev if you want to compile yourself)

oh yeah please don't edit the doomsday.out file when posting it, I thought you had a annother problem regarding the the pk3 loading at first. I was expecting the long list of pk3s

bungnugget
January 28th, 2005, 07:46 PM
I might just be an idiot.
I have a 128mb RAM 866Mhz system, a sony vaio purchasedin 2001, and the video card is well, crappy.
Also the sdl mixer packages are installed.
I ran the game with -nosfx -nosound parameters and it loaded, the doom window came up but I was unable to get to the menu, the mouse stopped resonding, and it seemd like my pc froze up. so I was unable to play the game. I had to restart X in order to get my pc to be in a useable state.

I looked hard but I didn't find any System Req. for jdoom. Is my system not able to run this engine? With or without resource packs? Can I still run doom using this engine, and not use the 3-D models? If I want to just use this engine with sprites and no 3D models, how should I go about doing this?

Thank you very mucy for the response.

lord-noctrun
January 29th, 2005, 02:58 PM
I ran doomsday on a 400 mhz, 64 mb ram and a 32mb tnt2 gfx card without the resource pack (it worked but it was too slow for my taste)

doomsday does have one requirement that your system has to meet: opengl hardware acceleration, so it would be good to know what gfx card you have

njbair
July 25th, 2005, 11:23 PM
Wow, I haven't posted here in a long time. I am having the same libdssdlmixer problem. The log is identical. I'm running Gentoo and have installed all of the SDL packages. I can't figure out what the problem is and everybody else seems to not have this issue. The game runs great with -nosound, but what fun is that? Thanks in advance for help.

Yagisan
July 26th, 2005, 12:00 AM
Sorry not a Gentoo user,

Doesn't Gentoo have a ebuild that should set this up automatically ?
If you had Debian/Ubuntu there are packages available now that work fine.

BTW, instead of bumping a months old thread, perhaps a new thread with your output could be helpful.

njbair
July 26th, 2005, 12:16 AM
As I mentioned, the log output is identical (at least the error portion), and I just figured I'd do my part to keep the forum clean by replying to this thread. But I guess for kicks I'll share my stuff:

Command Line:
doomsday -g jdoom -f ~/Doomsday/data/jDoom/DOOM1.WAD -ud ~/Doomsday/data/jDoom
Doomsday.out:

Con_Init: Initializing the console.
SW_Init: Startup message window opened.
Executable: Version 1.8.6 Jul 1 2005 (DGL).
Memory zone: 32.0 Mb.
Parsing configuration files.
W_Init: Init WADfiles.
W_AddFile: /home/njbair/Doomsday/data/jDoom/DOOM1.WAD
IWAD identification: 00491f3f
W_AddFile: Data/Doomsday.wad
W_AddFile: Data/jDoom/jDoom.wad
IWAD identification: 00056533
Reading definition file: Defs/Doomsday.ded
Reading definition file: Defs/jDoom/jDoom.ded
138 sprite names
974 states
140 things
8 lights
112 sound effects
68 songs
335 text strings
27 particle generators
22 animation groups
49 surface decorations
69 map infos
6 finales
Sys_Init: Setting up machine state.
Sys_Init: Initializing keyboard, mouse and joystick.
Sys_InitTimer.
Sfx_Init: Initializing SDL_mixer...
DS_Load: Loading of libdssdlmixer failed.
Sfx_Init: Driver init failed. Sfx is disabled.

The very next line says:
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Gentoo calculates and installs dependencies, so when I install the Doomsday ebuild it automatically installs libsdl et. al. That's what's driving me crazy. The stuff is there, it's just not working. I'm not really familiar with SDL and how to troubleshoot it so I'm kind of stuck for now, since "loading failed" is not the most descriptive error ever.