QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
52 stars 12 forks source link

Crash on mono #78

Closed atruskie closed 6 years ago

atruskie commented 8 years ago

File uuid: d9b0778e-adcd-4f29-882c-4cc32839d1ea

Results directory: /home/ubuntu/bioacoustics/qcif_storage_nfs/data_prod/analysis_results/system/d9/d9b0778e-adcd-4f29-882c-4cc32839d1ea

Stacktrace:

System.Double[] doesn't implement interface System.Collections.Generic.IEnumerable<System.Int32>

        Standard Error: Stacktrace:

  at <unknown> <0xffffffff>
  at System.Linq.Enumerable.Count<int> (System.Collections.Generic.IEnumerable`1<int>,System.Func`2<int, bool>) <0x00045>
  at TowseyLibrary.DataTools.Entropy_normalised (int[]) <0x000e3>
  at AudioAnalysisTools.AcousticEntropy.CalculateEntropyOfSpectralPeaks (double[2],int,int) <0x0009b>
  at AudioAnalysisTools.Indices.IndexCalculate.Analysis (AudioAnalysisTools.WavTools.AudioRecording,AnalysisBase.AnalysisSettings,System.TimeSpan,System.TimeSpan,System.TimeSpan,System.IO.FileInfo) <0x018df>
  at AnalysisPrograms.Acoustic.Analyze (AnalysisBase.AnalysisSettings) <0x008b7>
  at AnalysisBase.AnalysisCoordinator.PrepareFileAndRunAnalysis (AnalysisBase.FileSegment,AnalysisBase.IAnalyser2,AnalysisBase.AnalysisSettings,bool) <0x0089b>
  at AnalysisBase.AnalysisCoordinator.ProcessItem (AnalysisBase.FileSegment,AnalysisBase.IAnalyser2,AnalysisBase.AnalysisSettings,bool) <0x0009f>
  at AnalysisBase.AnalysisCoordinator/<>c__DisplayClass26_0.<RunParallel>b__0 (AnalysisBase.FileSegment,System.Threading.Tasks.ParallelLoopState,long) <0x0007f>
  at System.Threading.Tasks.Parallel/<ForEachWorker>c__AnonStorey6`2.<>m__2 (int,System.Threading.Tasks.ParallelLoopState) <0x0006c>
  at System.Threading.Tasks.Parallel/<ForWorker>c__AnonStorey3`1.<>m__1 () <0x003b5>
  at System.Threading.Tasks.Task.InnerInvoke () <0x0004f>
  at System.Threading.Tasks.Task.InnerInvokeWithArg (System.Threading.Tasks.Task) <0x00013>
  at System.Threading.Tasks.Task/<ExecuteSelfReplicating>c__AnonStorey0.<>m__0 (object) <0x001bf>
  at System.Threading.Tasks.Task.InnerInvoke () <0x00088>
  at System.Threading.Tasks.Task.Execute () <0x00046>
  at System.Threading.Tasks.Task.ExecutionContextCallback (object) <0x00055>
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x0009b>
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00016>
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) <0x00109>
  at System.Threading.Tasks.Task.ExecuteEntry (bool) <0x000ec>
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x0000e>
  at System.Threading.ThreadPool.<UnsafeQueueCustomWorkItem>m__0 (object) <0x000b4>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono() [0x4b23dc]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f3dea3c8340]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f3dea026cc9]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f3dea02a0d8]
        mono() [0x629869]
        mono() [0x629a77]
        mono() [0x629b22]
        mono() [0x4b43ff]
        mono() [0x4b4c13]
        [0x41cfe046]

Debug info from gdb:

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
atruskie commented 6 years ago

This bug no longer occurs. We're using updated versions of the .NET Framework and Mono which seem to not trigger the problem. Root cause never found.