Export to GitHub

fofix - issue #1281

Multiple oggs cause game crash


Posted on Oct 15, 2012 by Massive Bear

When loading "old" songs in FoFiX 3.121, the game crashes while trying to initialize the song (floating point exception) : Fatal Python error: (pygame parachute) Floating Point Exception

Steps to recreate the problem : 1 Try to load any song with more than "guitar.ogg" in its folder 2 Can be reproduced with any difficulty 3 Removing the "song.ogg" from the corresponding song folder bypasses the problem (but results in guitar-only sounds)

FoFiX version 3.121 final Python version 2.7 Gentoo Linux on amd64

FoFix built from source and run via python FoFiX.py

Log and ini attached

Attachments

Comment #1

Posted on Oct 15, 2012 by Helpful Lion

Comment deleted

Comment #2

Posted on Oct 15, 2012 by Massive Bear

Aditionnal info : I am using pyogg 1.3 and pyvorbis 1.4, as any previous version is unavailable (hosting site seems to be down)

Comment #3

Posted on Dec 22, 2012 by Swift Bear

I have been through several different versions of pyogg and pyvorbis with the same problem. The latter seems to be the issue, but I still can't seem to get it to work. At one point I was able to launch songs without them crashing, but I wasn't able to hear all the tracks. Another noteworthy thing is that practice mode works perfectly. I had this working about a year ago, but obviously something is different now.

Comment #4

Posted on Mar 11, 2013 by Helpful Rabbit

I am having this issue as well still, on Ubuntu 12.10 amd64 running the repo 3.121 final build as well as on source 3.121. I haven't tried 4.000 yet because Ubuntu won't let me install the dev version of one of the libs to compile because I have an extras version of another lib and don't feel like uninstalling programs dependent on extras just to test it quick. I can provide more specific info when I get on my PC if needed.

Comment #5

Posted on Mar 11, 2013 by Massive Bear

To those of you having the problem still, I fixed it on my system (Gentoo x64) by compiling the latest version of pyvorbis

It seems fofix has a known compatibility issue with pyvorbis 1.4 Some people claim downgrading to 1.3 works too, but it didn't work for me

Anyway, pyvorbis 1.5 fixed it for me

Cheers

Comment #6

Posted on Mar 11, 2013 by Happy Bear

This is fixed in git; audio tracks are played using a custom module written in C (MixStream) now, rather than using pyvorbis and friends.

Comment #7

Posted on Mar 11, 2013 by Helpful Rabbit

Comment deleted

Attachments

Comment #8

Posted on Mar 11, 2013 by Helpful Rabbit

Oh, okay thank you. I guess I'll just have to bite the bullet and uninstall extras so I can compile source. Thanks to both of you.

Comment #9

Posted on Mar 11, 2013 by Helpful Rabbit

Comment deleted

Comment #10

Posted on Mar 11, 2013 by Helpful Rabbit

Alright, well the song starts via the git clone at least. Now we're just crashing as soon as music starts because 'NoneType' object has no attribute 'setVolume'. Progress!

Status: Fixed

Labels:
Priority-Low