question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not a WAVE file - no WAVE header

See original GitHub issue

#Error Report

Application: Spytify
Version: 1.6.0.0
Region:
Date: 4/30/2020
Time: 11:37 PM

Error Message: Not a WAVE file - no WAVE header

##Stack Traces

Top-level Exception
Type:    System.FormatException
Message: Not a WAVE file - no WAVE header
Source:  NAudio
Stack Trace: at NAudio.FileFormats.Wav.WaveFileChunkReader.ReadWaveHeader(Stream stream)
   at NAudio.Wave.WaveFileReader..ctor(Stream inputStream, Boolean ownInput)
   at EspionSpotify.Recorder.<WriteStreamOutputToFileBasedOnNumberOfChannels>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EspionSpotify.Recorder.<WaveIn_RecordingStopped>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
 

##Assembly References

  • ExceptionReporter.NET, Version=4.0.2.0
  • MetroFramework, Version=1.4.0.0
  • mscorlib, Version=4.0.0.0
  • NAudio, Version=1.9.0.0
  • NAudio.Lame, Version=1.0.9.26885
  • Newtonsoft.Json, Version=12.0.0.0
  • PCLWebUtility, Version=1.0.0.0
  • SpotifyAPI.Web, Version=1.0.0.0
  • SpotifyAPI.Web.Auth, Version=1.0.0.0
  • Spytify, Version=1.6.0.0
  • System, Version=4.0.0.0
  • System.Core, Version=4.0.0.0
  • System.Drawing, Version=4.0.0.0
  • System.IO.Abstractions, Version=7.0.0.0
  • System.Net.Http, Version=4.0.0.0
  • System.Windows.Forms, Version=4.0.0.0
  • System.Xml, Version=4.0.0.0
  • taglib-sharp, Version=2.1.0.0

##System Info

Operating System
-Microsoft Windows 10 Pro
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = -360
--FreePhysicalMemory = 12562464
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.18362

Machine
-VIPERSPC
--Manufacturer = System manufacturer
--Model = System Product Name
--TotalPhysicalMemory = 17116495872


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
niknak101commented, May 7, 2020

This latest one (spytify-reset-position-without-flush.zip) is working fine for me. Managed to record about 10 songs without error messages, using the same settings as my previous post.

Offtopic: I finished the spanish translation for future versions.

1reaction
niknak101commented, May 7, 2020

Hi jwallet, first thanks for your work on this app. I’ll contribute with a translation soon.

I’m receiving the same WAVE header error message.

  • Windows 10 Pro, up to date
  • F-Secure AV (no false positives received while using the app)
  • Spotify Premium
  • using an external USB Focusrite Scarlett audio interface (haven’t installed the VB virtual cable driver)
  • Running app as administrator, on a path with no spaces just in case.
  • Version 1.5 was working without issues, but I heard pops & clicks on the recordings.

I tried just now using the “spytify-audio-writer” debug version you posted above, and receive the following error message on the log (output path has been blurred):

Error while recording: Unknown exception: tempFile used: F:\Users\username\AppData\Local\Temp\tmp84F9.tmp, track used: Zhavia Ward - All I Am, The byte stream type of the given URL is unsupported. (Exception from HRESULT: 0xC00D36C4)

image

image

Instead of a TEMP file, a failed MP3 output was created in the output folder. See attachment.

output.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

`Not a WAVE file - no RIFF header` locks file
Try using a stream: using(var inputStream = new FileStream(audioFileLocation, FileMode.Open, FileAccess.Write, FileShare.
Read more >
[Solved]-`Not a WAVE file - no RIFF header` locks file-C#
Try using a stream: using(var inputStream = new FileStream(audioFileLocation, FileMode.Open, FileAccess.Write, FileShare.ReadWrite)) { using (var reader ...
Read more >
Wav File Header Data not being created properly
I have written a simple audio Application that generates a sin wave and then stores it in a .wav file I create. My...
Read more >
"WAV file header does not contain RIFF/WAV/fmt/data"?
When I try to load the wav file in the other program, it complains that "this file's header does not contain RIFF/WAVE/fmt/data!
Read more >
wave — Read and write WAV files
The wave module provides a convenient interface to the Waveform Audio “WAVE” (or “WAV”) file format. Only files using WAVE_FORMAT_PCM are supported. Note...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found