[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame2 SDL_mixer segmentation fault



On Tue, Jan 19, 2010 at 2:42 AM, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
>
> On, Mon Jan 18, 2010, Evan Kroske wrote:
>
> > I'm running 64-bit Ubuntu Karmic Koala with Linux kernel version
> > 2.6.31-17-generic, and I get a segmentation fault when I call
> > pygame2.sdlmixer.init(). Has anybody else compiled the latest Pygame2 svn
> > revision and used sdlmixer on a 64-bit system? Here's the gdb output:
> >
> [...]
>
> I can't recreate that behaviour. Can you send me an example, which
> produces that error along with the Python version used? Did you ensure
> that SDL_mixer has version 1.2.11? - The dependency waas recently
> updated.
>
> Regards
> Marcus

Here's the stripped-down code. This code worked fine in my last Pygame2 installation (alpha version one or two; I can't remember which).

import pygame2.sdlmixer as sdlmixer

def main():

    sdlmixer.init()
    sdlmixer.open_audio(22050, 0x8010, 2, 256)
   

if __name__ == "__main__":
    main()

I'm using Python 2.6.4, and I installed the newest version of SDL_mixer (1.2.11) from source, so I know it's current.

--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.