wav2letter icon indicating copy to clipboard operation
wav2letter copied to clipboard

How to enable log to debug: what(): loadSound: unknown format or could not open stream

Open omprakashsonie opened this issue 5 years ago • 5 comments

I also faced same issue but it is not getting resolved by rebuilding libsndfiles with opus and rebuilding wav2letter again.

how do I access log to see which file is giving error?

terminate called after throwing an instance of 'std::runtime_error' what(): loadSound: unknown format or could not open stream *** Aborted at 1594410591 (unix time) try "date -d @1594410591" if you are using GNU date *** PC: @ 0x7f88f57a2e97 gsignal *** SIGABRT (@0xa120) received by PID 41248 (TID 0x7f893b072380) from PID 41248; stack trace: *** @ 0x7f8939f4a890 (unknown) @ 0x7f88f57a2e97 gsignal @ 0x7f88f57a4801 abort @ 0x7f88f6197957 (unknown) @ 0x7f88f619dab6 (unknown) @ 0x7f88f619daf1 std::terminate() @ 0x7f88f619daaa std::rethrow_exception() @ 0x562b1c112803 w2l::W2lDataset::getFeatureDataAndPrefetch() @ 0x562b1c112a4e w2l::W2lDataset::get() @ 0x562b1bf455f6 _ZZ4mainENKUlSt10shared_ptrIN2fl6ModuleEES_IN3w2l17SequenceCriterionEES_INS3_10W2lDatasetEES_INS0_19FirstOrderOptimizerEES9_ddblE3_clES2_S5_S7_S9_S9_ddbl @ 0x562b1bee05e8 main @ 0x7f88f5785b97 __libc_start_main @ 0x562b1bf4035a _start *** Aborted at 1594410592 (unix time) try "date -d @1594410592" if you are using GNU date *** PC: @ 0x7ffec5b6ab6d ([vdso]+0xb6c) *** SIGTERM (@0x7ffec5a44840) received by PID 41247 (TID 0x7f32e0abf380) from PID 18446744072730462272; stack trace: *** @ 0x7f329b1eff20 (unknown) @ 0x7ffec5b6ab6d ([vdso]+0xb6c) @ 0x7f329b2e1ea6 __clock_gettime @ 0x7f328126f37e (unknown) @ 0x7f32813334f7 (unknown) @ 0x7f32812574ac (unknown) @ 0x7f3281257609 (unknown) @ 0x7f328115716d (unknown) @ 0x7f32812de739 cuStreamSynchronize @ 0x7f32bd51de04 cudart::cudaApiStreamSynchronize() @ 0x7f32bd55c13d cudaStreamSynchronize @ 0x7f32bb453509 cuda::sync() @ 0x7f32bbb80acf af_sync @ 0x7f32bbe56af7 af::sync() @ 0x56502224ef1f _ZZ4mainENKUlSt10shared_ptrIN2fl6ModuleEES_IN3w2l17SequenceCriterionEES_INS3_10W2lDatasetEES_INS0_19FirstOrderOptimizerEES9_ddblE3_clES2_S5_S7_S9_S9_ddbl

omprakashsonie avatar Jul 10 '20 19:07 omprakashsonie

The wvalid command in wav2train filters bad audio clips from a lst file.

lunixbochs avatar Jul 10 '20 23:07 lunixbochs

Thanks will try and get back.

It will still be good to print msg when w2l finds a bad file.

omprakashsonie avatar Jul 11 '20 17:07 omprakashsonie

Hi Ryan, I am running into issue with wav2train. I have submitted issue there.

omprakashsonie avatar Jul 11 '20 19:07 omprakashsonie

The problem could be that you didn't install all system libs too (I faced this when we were switching to Ubuntu 18.04). Be sure that you installed all things like here (example for Ubuntu 18.04) https://github.com/facebookresearch/wav2letter/blob/master/Dockerfile-CPU-Base#L18.

tlikhomanenko avatar Jul 12 '20 06:07 tlikhomanenko

Thanks a lot Tatiana. Will check.

omprakashsonie avatar Jul 12 '20 06:07 omprakashsonie