# \[X\] WAV file cannot be opened for writing

**URL:** https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857
**Category:** No Bugs
**Created:** [April 17, 2016, 12:44am UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857 "2016-04-17T00:44:39Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 12:44am UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/1 "2016-04-17T00:44:39Z")

</div>

Thank you very much, once again for .wav tag support!

After thoroughly testing v2.76, I found repeated occurrences of this error:

![](https://community.mp3tag.de/uploads/default/original/1X/fc2f73682cdb98c321bdfc864efc7ee2b30256d1.png)

If you open the folder with this file and simply Right click on Test.wav \> Extend Tags... \> OK :

[Test.zip](https://community.mp3tag.de/uploads/default/original/1X/2beefff1ec55a464b08fe5f6e6f7c5bf3ee6a77d.zip) (65.8 KB)

If you figure out the bug, could you release a new Beta with it fixed?

![](https://community.mp3tag.de/uploads/default/original/1X/fc2f73682cdb98c321bdfc864efc7ee2b30256d1.png)

[Test.zip](https://community.mp3tag.de/uploads/default/original/1X/2beefff1ec55a464b08fe5f6e6f7c5bf3ee6a77d.zip) (65.8 KB)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 17, 2016, 6:20am UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/2 "2016-04-17T06:20:13Z")

</div>

> [@c627627](#):
>
> ...  
> If you figure out the bug, could you release a new Beta with it fixed?

I tested it with your file and did not get the message.

See this thread on the "Cannot be opened for writing" message.  
[Another "file cannot be opened for writing" issue](https://community.mp3tag.de/t/14967/5)  
It should be a problem with your setup.

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 2:15pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/3 "2016-04-17T14:15:12Z")

</div>

Very well, thank you for posting that this problem is not universal.

Here's what I did to further test this and this eliminates some previous assumptions about the source of this bug:

First I used this program to add a random tag to the problem .wav file  
[http://www.softpointer.com/AudioShell.htm](http://www.softpointer.com/AudioShell.htm)

This somehow changed the file tag - _allowing_ it now be manipulated in Mp3tag 2.76 thereafter.

If this information helps you then great... But I have multiple individual files where this happens but not the others. Once tags on those files are changed by AudioShell program, this enables those files to be manipulated by Mp3tag as well.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 17, 2016, 3:59pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/4 "2016-04-17T15:59:34Z")

</div>

> [@c627627](#):
>
> ...Once tags on those files are changed by AudioShell program, this enables those files to be manipulated by Mp3tag as well.

Could access rights be an issue? Perhaps the other program reads the files and re-writes them with a different owner? Whereas MP3tag does not rewrite the files as padding is sufficient?  
Just an idea.

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 7:04pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/5 "2016-04-17T19:04:10Z")

</div>

> [@ohrenkino](#):
>
> Could access rights be an issue? Perhaps the other program reads the files and re-writes them with a different owner? Whereas MP3tag does not rewrite the files as padding is sufficient?  
> Just an idea.

The thread topic is not universal, but it is not unique either.  
Since Mp3tag is the best editor, it would be nice to have it incorporate a workaround.

If you'd like me to test this, you can post how, and I would do it.

But if another program can edit a tag on a .wav file, then Mp3tag should as well.  
I suppose whatever the other program does - makes the tag editable in Mp3tag, it makes Mp3tag work with all files on all systems (presumably) so finding out what changes would be a first step...

How would you determine the 'owner'?  
And what other suggestions are there as far as what the other program might be doing to the tag to make it readable by Mp3tag?

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 7:20pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/6 "2016-04-17T19:20:45Z")

</div>

Okay, this zip file contains Before.wav and After.wav

Edit: see attachment in next post

Find out what is different about them and you will find out why After.wav can be edited in Mp3tag and Before.wav cannot, on some systems.

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 7:45pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/7 "2016-04-17T19:45:31Z")

</div>

Actually, this is a better example since both files in it appear to have no tag but Before.wav cannot be edited and After.wav can be:

[Before\_After.zip](https://community.mp3tag.de/uploads/default/original/2X/4/49ebf218a10d48e2aebc5f541faf0d612ffad042.zip) (131 KB)

[Before\_After.zip](https://community.mp3tag.de/uploads/default/original/2X/4/49ebf218a10d48e2aebc5f541faf0d612ffad042.zip) (131 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 17, 2016, 8:01pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/8 "2016-04-17T20:01:03Z")

</div>

Hi there,

thanks for taking the time to report this and providing test data. This is really helpful.

I've analyzed the original file you've sent and want to shed some light in this thread. It's a valid WAV file with a broken ID3v2 tag. This tag contains a title frame, but the size of this frame is reported as being 1128556902 bytes in size – you can do the math 🙂

**Edit:** It's the same with Before.wav. After.wav has no tags.

If Mp3tag encounters something like this for MP3, it usually reports the tag as "!BAD ID3v2" in the tag column, and I think I'll add something similar for WAV to the next release.

You can remove the tag and write a new and valid one with Mp3tag.

Kind regards  
– Florian

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 10:18pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/9 "2016-04-17T22:18:30Z")

</div>

Thank you.  
Yes, that would be a perfect solution.

Now if a bad tag is there, Mp3tag simply displays an error.  
So instead: it would first automatically remove the bad tag and then immediately execute whatever tag action the user tries to implement, without displaying an error. This would be a great solution.

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 11:08pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/10 "2016-04-17T23:08:20Z")

</div>

Additional note: I have at least one .wav file which displays the same "cannot be opened for writing" error when I try to get Mp3tag to _Remove tag_ from it.

It is 44MB in size, I cannot attach it because unlike others, as soon as I cut the file down to a few seconds, the problem cannot be replicated in Mp3tag any more.

It can only be replicated on the original 44MB .wav file. I can upload it elsewhere if you'd like, if it's necessary?

Removing the tag then executing the command would work for other files but with this file, it displays the same error for Removing the tag as well as trying to execute a tag command.

So for that one, I am forced to use the other program to remove the tag from it before it can be used in Mp3tag.  
Since another program can remove the tag from it, perhaps Mp3tag could be made to as well.

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 17, 2016, 11:39pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/11 "2016-04-17T23:39:58Z")

</div>

Here is the file, please let me know when you get it so I can remove it.

CannotRemoveTag.wav

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 18, 2016, 12:17am UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/12 "2016-04-18T00:17:24Z")

</div>

And separately, I have files from which tags _can_ be removed, yet still display the same error afterwards:

TagRemoved.wav

So for this file, you can remove the tag in Mp3tag but you cannot execute a tag command even after you remove tags inside Mp3tag.

Please also let me know when you get this one so I can remove it too.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 18, 2016, 2:39am UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/13 "2016-04-18T02:39:11Z")

</div>

I've downloaded the files, so you can remove them from your server.

Kind regards  
– Florian

---

<div class="post-metadata">

### Author: ![c627627](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/50afbb/32.png) [@c627627](https://community.mp3tag.de/u/c627627)
#### Post date: [April 24, 2016, 5:16pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/14 "2016-04-24T17:16:51Z")

</div>

There seems to be a pattern.  
A wave file that M3tag 2.77 cannot handle under any circumstances can be generated by converting a .flac file to a .wav file using v3.1 of this program: [http://www.wav-mp3.com/](http://www.wav-mp3.com/)

You cannot remove tag from it or edit it in any way.

You are forced to use this freeware to assign a random tag,  
[http://www.softpointer.com/AudioShell.htm](http://www.softpointer.com/AudioShell.htm)  
which then makes the file editable by Mp3tag.  
Interestingly, using AudioShell freeware to just remove the tag does not make it editable in Mp3tag.

You have to actually assign a random tag to the wave file which then becomes editable in Mp3tag.

Obviously this is just about finding a reliable way to make wave files which do not work with Mp3tag for test purposes... I hope you can maybe figure out how AudioShell assigns tags to these files so the same approach could be used by Mp3tag for wider compatibility.

---

<div class="post-metadata">

### Author: ![Freonpsandoz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/f475e1/32.png) [@Freonpsandoz](https://community.mp3tag.de/u/Freonpsandoz)
#### Post date: [April 28, 2016, 5:50pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/15 "2016-04-28T17:50:42Z")

</div>

I have reproduced this problem by editing a WAV file containing album art with the WAV editor Cool Edit Pro 2.1. Editing the tag in the WAV file with Mp3tag produces the error message "cannot be opened for writing." The tag fields are subsequently displayed as blank by Mp3tag. Editing a copy of the Cool Edit Pro output with Mp3tag reveals that, contrary to the error message, the file IS modified by Mp3tag and differs from the original. The tag fields in the file produced by Mp3tag are still displayed correctly by dpPowerAmp. The file can be fixed by converting it to FLAC and back to WAV with dbPowerAmp. The album art alone exceeds 200k, so there is no way I can upload the file, but I can email it on request (It's just under 4MB and was produced by converting a free MP3 to WAV with dbPowerAmp, so there should be no copyright issues.)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 30, 2016, 12:46pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/16 "2016-04-30T12:46:34Z")

</div>

Hi Loren,

> [@Freonpsandoz](#):
>
> [...] but I can email it on request [...]

I'm interested in having a look at this file. Can you send it to my [contact email address](http://www.mp3tag.de/en/contact.html)?

Thanks!

– Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 13, 2016, 4:01pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/17 "2016-05-13T16:01:09Z")

</div>

OK, no update here. I'm closing this as "No Bug" as long as there is no new data to reproduce this.

Kind regards  
– Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:37pm UTC](https://community.mp3tag.de/t/x-wav-file-cannot-be-opened-for-writing/17857/18 "2018-12-28T14:37:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
