Re: [Freewheeling-user] fweelin quitting abrutly
Status: Beta
Brought to you by:
jpmercury
From: barmin <ba...@bl...> - 2009-12-07 15:20:27
|
Hello again, Some more details about my own post. Here's a backtrace of fweelin after the bad_alloc (gdb) backtrace #0 0x00fd6422 in __kernel_vsyscall () #1 0x0070b4d1 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x0070e932 in *__GI_abort () at abort.c:92 #3 0x005e54df in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6 #4 0x005e3415 in ?? () from /usr/lib/libstdc++.so.6 #5 0x005e3452 in std::terminate() () from /usr/lib/libstdc++.so.6 #6 0x005e3591 in __cxa_throw () from /usr/lib/libstdc++.so.6 #7 0x005e3c0f in operator new(unsigned int) () from /usr/lib/libstdc++.so.6 #8 0x005e3ced in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6 #9 0x080b7271 in AudioBlock (this=0xb7c79420) at fweelin_block.cc:817 #10 AudioBlock::NewInstance (this=0xb7c79420) at fweelin_block.h:163 #11 0x080af44b in PreallocatedType::GoPreallocate (this=0xb7c8ccd8) at fweelin_mem.cc:617 #12 0x080afb39 in MemoryManager::run_mgr_thread (ptr=0x81109a8) at fweelin_mem.cc:189 #13 0x00e3980e in start_thread (arg=0xb7ea8b70) at pthread_create.c:300 #14 0x007ad7ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 The process uses around 30Mb of RAM at that moment, so there's definitely some more memory available. There might be a bug causing fweelin to try and allocate a ridiculously large amount of memory at that point. I tried to activate some debugging messages in the source, but I could not see anything strange. Further investigation would probably take me much more time than I can afford. Any idea anybody? Thanks, Matthieu barmin a écrit : > Hello, > > This is my first post to this list. I discovered freewheeling some time ago and find this is a very interesting approach to looping. > Today I decided to have a try myself. > > I'm working on a Dell laptop with Ubuntu 9.10, real-time kernel, jackd 0.116.1. > Ubuntu's version of freewheeling does not even start. It complains about some problem with color depth in display. I don't remember the exact message. > So I downloaded and compiled version 0.6. Works better but... > After slightly more than 20 secs of loop recording, fweelin quits with a bad alloc: > > terminate called after throwing an instance of 'std::bad_alloc' > what(): std::bad_alloc > > This seems to be directly linked to the total length of recorded music. I mean, I can record a 10secs loop, play it several minutes, add a 5secs loop, play more, and when I want to add a 3rd one it quits. But if I try to record one long loop, it quits after about 20 secs. > > This happens with my laptop's internal soundcard as well as with an external USB one. > > Any idea what could be happening? fweelin seems really nice, I'd love it to work for me too! > > Thanks for your help, > > Matthieu > > PS: Also, sometimes it starts and doesn't accept any input from the keyboard. Simply nothing happens. > I have to "kill -9" the process and start it again. Sometimes it does the same, and only removing ~/.fweelin does the trick. > Whether this is linked or not to the first problem, I've got no idea... |