Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Segmentation fault [ Reply ]
By: Matthias Wacker on 2011-04-28 14:13

i am not sure if i can help you because i dont use the matlab code. I use the lib from c++. Anyway i had segmentation faults if the size of an atom is larger than the signal itself.

You could try to configure the dictionary config file from scratch (comment out all but a small atom and see if works ... )

Best regrads

RE: Segmentation fault [ Reply ]
By: Ronan Le Boulch on 2011-04-28 14:05
Dear Mathew,

Thanks to your message we have been able to recreate this error, but unfortunately we won't be able to correct it rapidly.
We are sorry for the inconvenience and will manage to correct it as soon as possible.

Segmentation fault [ Reply ]
By: mathew mathew on 2011-04-28 13:37
As part of my project work i came across the matching pursuit technique.I have installed mptk toolkit.I am using windows64 OS.I installed MPTK-binary-0.5.9-x86_64-Windows.exe. i am doing my project in matlab. I would like to use mdct bases of 2 scales ie window length of 256 and 2048. i changed the dic_mdct_two_scales.xml given in the toolkit according to my requirement. I didnt make anyother changes. The matlab command i used are
>> [sig sampleRate]=sigread('violin.wav');
>> dict=dictread('C:\Program Files\MPTK\mptk\reference\dictionary\dic_mdct_two_scales.xml');
>> [book residual decay]=mpdecomp(sig,sampleRate,dict,100);

I could decompose the signal using mpdecomp. But while using mprecons i am getting the error message as given below...Please do help me.....Do i have to make anyother changes. Also i cant plot the book..how can i create a book according to my signal and requirement? There is no problem using the default book given alongwith the kit. I can create the book. But on using that book for mp reconstruction segmentation fault occurs. This occurs for any wavefile i m using. I am using MATLAB 2008a. I am attaching wave file i used also with this. Given below is the message i m getting on using my book for reconstruction. Please help me...I dont know how to proceed.
Segmentation violation detected at Thu Apr 21 23:20:15 2011

MATLAB Version: (R2008a)
MATLAB License: 161051
Operating System: Microsoft Windows Vista
Window System: Version 6.1 (Build 7600)
Processor ID: x86 Family 6 Model 5 Stepping 2, GenuineIntel
Virtual Machine: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252

Fault Count: 1

Register State:
EAX = 2450e640 EBX = 2450e640
ECX = 783889a0 EDX = f6ec8b55
ESI = 23c10048 EDI = 2435f1c0
EBP = 00d3e4d8 ESP = 00d3e484
EIP = 043716b7 FLG = 00010206

Stack Trace:
[0] MDCT_ATOM.dll:0x043716b7(0, 0x2435f1c0, 0x2435f1c0, 0x244b3600)

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:

The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to segv@mathworks.com with the following file attached:

If the problem is reproducible, please submit a Service Request via:

A technical support engineer might contact you with further information.

Thank you for your help. MATLAB may attempt to recover, but even if recovery appears successful,
we recommend that you save your workspace and restart MATLAB as soon as possible.