matlab just quitting mid-function

2 views (last 30 days)
Becky V
Becky V on 20 May 2020
Commented: Steven Lord on 20 May 2020
Hi All,
I am having a problem where matlab is quitting unexpectedly mid-function.
The function processes 32-channel audio data. The audio is 12 seconds long (I have tried this with a shorter 5s sample too) and it gets through about 1.1 seconds worth before the program just quits.
It doesn't give any error message, or open a dialog box or anything, it just quits. There is also no crash dump.
I am running matlab 2020a on mac catalina.
I read somewhere that it might be a java problem?? But I have just installed java and it's the same.
Any help much appreciated! Many thanks in advance!
  3 Comments
Becky V
Becky V on 20 May 2020
I can't really show the code sorry. It's fairly computation-heavy, with matrix inversions etc. It worked fine before (with 4-channel audio), so the only different thing is that it now has 32-channels.
So covariance matrices etc are now 32^2 x no. timeframes x no. frequency bins rather than 4^2 x no. timeframes x no. frequency bins.
Is it possibly a memory problem? I tried to run the code with about 3 minutes of audio before and it gave an error straight away saying the maximum matrix size had been exceeded.
Steven Lord
Steven Lord on 20 May 2020
Without the code it's going to be difficult to determine the cause of MATLAB exiting.
Are you perhaps calling a MEX-file in your computation process? If so that would probably be the first place I'd investigate, to determine if it's trying to access memory if it shouldn't ("walking off the end of the array" for example.)

Sign in to comment.

Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!