Jokosher crashes when loading large audio file

Bug #116883 reported by Luke Akins
2
Affects Status Importance Assigned to Milestone
Jokosher
Incomplete
Undecided
Laszlo Pandy

Bug Description

Click "Add Audio File", select a 9.3M .wav file, no problems.
Do the same with a 267M .wav file and jokosher crashes with the following error:

The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 19169 error_code 11 request_code 53 minor_code 0)

Revision history for this message
Laszlo Pandy (laszlok) wrote :

What version of Jokosher are you using? Is there anymore to that error? I'm pretty sure its an X error but I just want to make sure.

Revision history for this message
Luke Akins (luke-chice) wrote :

It's version 0.9, installed from the package on the jokosher website. I'm running AMD64, but I had the same problem with earlier versions of jokosher when I was running i386.
The full error is:

The program 'jokosher' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 12823 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Revision history for this message
Laszlo Pandy (laszlok) wrote :

I can't reproduce this using a 700mb wav file. It might be that you are on AMD64, or that the file I tested it with was the same volume all the way through (cause it was a constant tone) and there was much less complexity in my waveform. I'll have to convert some really long song to wav and try it again.

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

 How much memory do you both have? Based on the error I'd guess that it was running out of memory when caching the waveform.

Revision history for this message
Luke Akins (luke-chice) wrote :

I have 2Gb RAM, plus about 5Gb swap.

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Yeah i didn't think low memory was the problem. Jokosher uses a caching system so that the largest image it will ever allocate will be 3 times the width of the Jokosher window. Maybe you have a seriously wide screen, in which case it might be worth while making it a lot smaller and trying to import again.

Revision history for this message
Luke Akins (luke-chice) wrote :

My screen resolution is 1280x1024, and the jokosher window was at the size it opened at (about 900px I think).

Jono Bacon (jonobacon)
Changed in jokosher:
status: New → Incomplete
Laszlo Pandy (laszlok)
Changed in jokosher:
assignee: nobody → laszlok
milestone: none → 0.12
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.