Re: [Pykaraoke-discuss] Welcome to the Pykaraoke-discuss mailing list
The biggest hint I see in the backtrace is: /lib/libSDL_mixer-1.2.so.0(Mix_OpenAudio+0x8d)[0x3af1e09b8d] you can see that function here: http://sdl.beuc.net/sdl.wiki/Mix_OpenAudio I'm not really familiar with any of this, but I'd guess the wrong audio output is being opened, or it is being opened with the wrong format. Basically, I'd check if your audio output device is configured correctly. On Tue, May 28, 2013 at 12:32 PM, Conor Dowdall conordowdallm...@gmail.comwrote: No luck there Kelvin.. thanks for the suggestion. I see it starts with libc in the backtrace and moves on to libSDL_mixer... did I somehow mess up the SDL install with mp3 support???... I'm not too familiar with how backtraces work! Conor. *** glibc detected *** python: double free or corruption (out): 0x021f6800 *** === Backtrace: = /lib64/libc.so.6[0x355ac7ca8e] /lib/libSDL_mixer-1.2.so.0[0x3af1e0cc13] /lib/libSDL_mixer-1.2.so.0[0x3af1e0b2a9] /lib/libSDL_mixer-1.2.so.0(Mix_OpenAudio+0x8d)[0x3af1e09b8d] /usr/lib64/python2.7/site-packages/pygame/mixer.so(+0x3050)[0x7fcf48be0050] /usr/lib64/python2.7/site-packages/pygame/mixer.so(+0x31d6)[0x7fcf48be01d6] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4a80)[0x35794dc370] -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] Filename encoding on Linux
I've got an iso-8859-1 encoded filename on linux that has characters above 127. When pykaraoke tries to scan it, it borks because the filename can't be encoded in python's default filesystem encoding. Basically, the problem comes down to a combination of: 1) I believe you can either install wxPython with unicode set or non-unicode. I have unicode set, so all wx* functions return unicode objects. 2) Due to #1, the directories to be scanned are unicode objects, and when listdir() is called on a unicode, it attempts to decode all filenames that are returned using the filesystem's default encoding, but this causes an exception which currently goes unhandled and just crashes pykaraoke. I have attached a patch which converts all directory names to str objects before scanning them. It makes thing work here. I have not tested it out on other platforms, but I believe since I remain with str objects, all encoding issues should be effectively bypassed, so it should work everywhere. -Matt diff -U4 -r -x '*pyc' pykaraoke-0.7.3/pykdb.py pykaraoke-0.7.3-patched/pykdb.py --- pykaraoke-0.7.3/pykdb.py 2010-05-11 16:15:18.0 -0400 +++ pykaraoke-0.7.3-patched/pykdb.py 2010-12-04 00:52:02.235129110 -0500 @@ -1326,9 +1326,12 @@ self.lastBusyUpdate = time.time() self.filesByFullpath = {} for i in range(len(fileList)): -root_path = fileList[i] +# Make sure root_path is a str and not a unicode or bad +# things happen on if any filename can't be encoded in the +# default python filesystem encoding. +root_path = str(fileList[i]) # Assemble a stack of progress amounts through the various # directory levels. This way we can update a progress bar # without knowing exactly how many directories we are -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss