06-16-2022, 05:57 PM
|
#1 |
|
Human being with feelings
Join Date: Dec 2010
Location: Hampstead, NC
Posts: 318
|
Bad form when recording and not catching it will result in wav files that won't be found when the project is reopened.
Bad Form? Working with tracks that have no names.
This may be a long unnecessary repro (sorry - this is how I hit it) Maybe it's as simple as any WAV files that have a space as the first character of the filename can't be opened which these steps will set up. Easy to avoid. Always name tracks SOMETHING. But, the bug is that Reaper can and will save out files with filenames it can't open later.
__________________
Experienced enough to know - Too old to care https://www.thefartones.com https://www.phootoons.com |
|
|
06-16-2022, 06:08 PM
|
#2 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,824
|
What OS is this? I can't reproduce any problem following these steps, or generally opening a file named " - stem.wav" on Windows.
|
|
|
06-16-2022, 06:49 PM
|
#3 |
|
Human being with feelings
Join Date: Dec 2010
Location: Hampstead, NC
Posts: 318
|
Windows 10.
A filename with a leading space is perfectly acceptable in Windows. The issue seems to be specific to cold opening a project that has references these files. I copied the whole project folder, all files, from the desktop to the laptop and the laptop Reaper barfed on those files. All files are in the folder. Browsing for the files and selecting them one at a time WILL allow them to open. Heck, it's debatable what the bug is. Reaper can't find them when the project is opened. Browsing for them works, so you are correct that the file names are legal. Is there a bug in the initial file opening code? Is something in there stripping the space, looking for the correct file if that space is removed? (Trivial to test and I will.) Maybe, but the track itself references the filename with the space. Testing will let us know what happens if the initial load works but the filename referenced is different. Is the bug that creating a stem track from an unnamed track results in a track that is named with a leading space? That's the root of the repro. There's nothing wrong with a leading space on a track if nothing else depends on it. But, in spite of that, a naming convention to blindly uses the track name as-is and appends "-glued" may be a potential bug, as it doesn't check for leading spaces in the track name. Changing this would fix the problem. Just pondering what-ifs.
__________________
Experienced enough to know - Too old to care https://www.thefartones.com https://www.phootoons.com |
|
|
06-16-2022, 07:00 PM
|
#4 |
|
Human being with feelings
Join Date: Dec 2010
Location: Hampstead, NC
Posts: 318
|
AH AH AH!!!!!!
FOUND A PROBLEM! (the?) Reaper is NOT saving the glued files with leading spaces. Reaper IS saving them with NO leading space but when the project is saved and reopened it is looking for the file WITH the leading space. Full path reference in the project: "C:\reaper_default\phoo_three\phoo_22_06_12\ - stem-glued.wav" Full path to the files in the project folder: "C:\reaper_default\phoo_three\phoo_22_06_12\- stem-glued.wav"
__________________
Experienced enough to know - Too old to care https://www.thefartones.com https://www.phootoons.com |
|
|
06-17-2022, 04:59 AM
|
#5 |
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,810
|
How are you transferring the files from system to system?
Can you follow the minimal steps to reproduce, and when you go to copy the files from the source machine make a zip of the directory, and include a copy of your reaper.ini? Then email a copy of that zip to support at cockos dot com? thanks! Last edited by Justin; 06-17-2022 at 05:39 AM. |
|
|
06-17-2022, 08:56 AM
|
#6 | |
|
Human being with feelings
Join Date: Dec 2018
Posts: 37
|
Quote:
But wait! There’s more! If you use the undocumented function NtCreateFile() in NtDll.dll to create the file then you can do all kinds of weird shit - including creating files that begin with 0x20. You can also create files that begins with ascii null (0x00), and those file will be invisible. https://docs.microsoft.com/en-us/tro...ace-characters https://docs.microsoft.com/en-us/win...l-ntcreatefile |
|
|
|
06-17-2022, 11:43 AM
|
#7 | |
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,810
|
Ah, Windows removes the leading spaces if you copy the file via explorer. We'll make REAPER automatically not create files with leading spaces on Windows.
Quote:
Last edited by Justin; 06-17-2022 at 12:05 PM. |
|
|
|
06-17-2022, 02:07 PM
|
#8 |
|
Human being with feelings
Join Date: Dec 2010
Location: Hampstead, NC
Posts: 318
|
YES, YES and YES.....
Thanks for getting to this before I did. It is in fact the "copy from system to system" step that horked the project. The steps to create an unnamed track, stem, and glue, did create a referenced WAV what had what looked like a leading space, regardless of what that character is under the hood. Reaper is happy with that file, as-is. Copy that project on Windows 10 and the leading space (that non-printable character) on the filename gets stripped off. At that point Reaper can't find it because Windows renamed it to something else. Well...duh! That was a totally unexpected behavior when moving projects from the desktop in the studio to the laptop. Let me know if a project is still needed. I assume not. THANK YOU!!!
__________________
Experienced enough to know - Too old to care https://www.thefartones.com https://www.phootoons.com |
|
|
06-18-2022, 08:26 AM
|
#9 | |
|
Human being with feelings
Join Date: Dec 2018
Posts: 37
|
Quote:
Fwiw I learned about NtCreateFile() years ago when writing a DirectShow filter to read Sound Designer II files. It allows you read the dot-underscore side-car files that hold the resource fork metadata. |
|
|
|
06-18-2022, 09:10 AM
|
#10 |
|
Human being with feelings
Join Date: Dec 2010
Location: Hampstead, NC
Posts: 318
|
I'll leave y'all alone to discuss after this (and this is nothing terribly useful and yes, I am being redundant)
That's a lot simpler than originally thought, even if getting there is a bit out there. Knowing these three things will make it easy to avoid, and will make fixing the projects easier if it happens again (if I forget to name a track again, and I know I will at some point). THANKS for getting to the bottom of this so quickly.
__________________
Experienced enough to know - Too old to care https://www.thefartones.com https://www.phootoons.com |
|
|
![]() |
| Thread Tools | |
|
|