Jump to content

Cakewalk on Windows 10 - Opening/Creating Project Hangs "Creating UI" - How I Fixed


Recommended Posts

First, let me say I have been a faithful Cakewalk user since about 2010, so I am not new to the product. I am an IT Professional with about 30 years experience, so not new to the concepts of software installation and troubleshooting. Also have been a developer so not new to the concept of applications should not swallow exceptions -- and I do think that is what is happening here. Lastly, applications should  provide feedback to the user, ideally a log file that users can use to troubleshoot and understand what conditions made the application go into a bad state. 

So I post this to help others who land here, and also hoping that the dev team considers making this product more supportable, e.g. through logging. Because that would have saved me literally about 10 hours. 

Just to mention: in troubleshooting this I found this: 


And a few others. 

At the end of the day, it wasn't board drivers, chipset INF's, video drivers, etc. It was due to having files on the desktop. Not files having to do with a cakewalk project, e.g. not loading a project from a folder on the desktop. Not, it was because I had a file related to software development  on my desktop. It was a zip file of material icons, and for whatever reason cakewalk was trying to do something with that file -- over and over and over and was stuck. 

Once I was able to see something that pointed me to this, it was an easy fix --- stop leaving junk on the desktop. But how much I had to do to be able to see what was happening, was entirely too much. This is where an application logfile would really have helped, because I'd have seen in that app log the attempt to open that zip file over and over. 

Lacking that, here is what I did:

1) Went to another computer and installed. I figured if it did the same thing, no sense looking further. But, if that were the cae there would be a lot of posts about the problem. So I did expect it to work, and it did. Problem is, I want it to work on my most powerful rig. 

2) I created a dump file of the task, and opening that with windbg gives me this:

00000000`001471d0 00007ff8`f812e5ac : 00000000`00147726 00000000`00147310 00000000`2160d170 00000000`00147310 : zipfldr!CEnumArchive::_DirExistsInEnumerator+0x48

SYMBOL_NAME: zipfldr!CEnumArchive::_DirExistsInEnumerator+48

MODULE_NAME: zipfldr

IMAGE_NAME: zipfldr.dll

FAILURE_BUCKET_ID: BREAKPOINT_80000003_zipfldr.dll!CEnumArchive::_DirExistsInEnumerator

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.19041.789

3) From this, it looks like an exception is thrown in the zip module within one of the C++/.Net assemblies. So off I went to ensure the c++ redist is right, etc. to No avail. 

If only I had a way of knowing what file the app was trying to zip or unzip.... again, an app log that shows things which are attempted but not successful would be a good thing. 

4) Next I tried to run cakewalk from another account on the computer. It worked! Ok, so just use another account for music production. Not a big deal. But the tech inside of me just couldn't leave it at that. 

5) Clearly, something about the user profile was the issue. So I went through the process of trying to rebuild the user profile and just make the account this app works under be the account I use for everything. But, once I got all the appdata and files migrated to the working user profile, now the app doesn't work under THAT profile. Interestingly, it now worked under the original profile. 

6) So clearly, it isn't the account or the registry of the account, but something in the files. So I migrated files back to the original account, and sure enough the original account no longer works and the other account works again. I wish I had a way of knowing what files the app was trying to open or create.... again, logging is your friend in 2021.

7) I spent some time trying to narrow down which files make the issue appear/disappear, but it is like a needle in a haystack. Finally, I used procmon64.  Since I knew the problem was file driven, not registry driven, I could filter out and just show files. Still, it was a lot of stuff to wade through. 

But I was able to find, after the point that "Creating UI" appears and the app hangs, I was able to find a lot of attempts to access that zip file on my desktop. So I copied all files on my desktop somewhere else, and now cakewalk works. And last, but not least, if I copy that file back to the desktop, it breaks cakewalk. 

What file was it? Material Design Icons: https://github.com/google/material-design-icons/releases/tag/4.0.0

It turns out, for whatever reason, if you click on that zip file in windows, windows explorer hangs trying to open it. 7zip opens it just fine. Thus, the underlying issue is this zip file somehow being incompatible with windows native libraries that apps use. 

If this was a zip file in my project directory, or in my content directory, or my VST folder(s) I would understand it, and would have honed in on that pretty much immediately. But without any logging information to go on, I would not think to consider zip files that are outside of those specific areas which this app should be using. 

And no, I wasn't storing the project on the desktop. Yes, I get that apps like this will "watch" the files/directories under the project folder so the app knows of external changes. There is no reason cakewalk should have been "watching" my desktop. 

So I guess in conclusion, I began thinking I was recommending the app implement logging, so users understand what might be going on when the app doesn't work as expected. 

But now, I am recommending the app developers look at this because whether it is intended or not, upon close examination the app does appear to be looking outside the bounds of the project folder, and raises brows from a security/privacy perspective. 

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

6 hours ago, Jeremy Oakes said:

I have no idea what you’re on about. 
J

There are several threads over the past few years of people having this issue. I experienced it, troubleshot it, and resolved it.  The TL;DR version is:

1) If the app provided logging it could have been solved in minutes. 

2) Why was the app even trying to unzip a zipfile that is not in the content directory or the project folder? 

Link to comment
Share on other sites

5 hours ago, Thomas S Carlisle said:

There are several threads over the past few years of people having this issue. I experienced it, troubleshot it, and resolved it.  The TL;DR version is:

1) If the app provided logging it could have been solved in minutes. 

2) Why was the app even trying to unzip a zipfile that is not in the content directory or the project folder? 

AFAIK there isn't any code within CbB that would be directly trying to unzip that file. 

The only thing (at a guess), it could be the CbB media browser tab, which is essentially a re-skinned Windows Explorer component.

[Edit] - confirmed, it's the MediaBrowser control which is basically Windows Explorer.   I can only repro if my project file is on the desktop, and the zip file you provided is also on the desktop, and I open the project by double clicking on it.

Normally this wouldn't be an issue, but Windows is having issues opening that zip file  (i.e. double clicking it outside of Cakewalk causes Windows Explorer to hang too).

As this is Windows Explorer that is hanging, I don't think there's not much we can do about it.   The answer is not to open a Cakewalk project file from a directory which has corrupt zip files in it.

  • Like 1
Link to comment
Share on other sites

On 12/8/2021 at 5:56 AM, msmcleod said:

AFAIK there isn't any code within CbB that would be directly trying to unzip that file. 

The only thing (at a guess), it could be the CbB media browser tab, which is essentially a re-skinned Windows Explorer component.

[Edit] - confirmed, it's the MediaBrowser control which is basically Windows Explorer.   I can only repro if my project file is on the desktop, and the zip file you provided is also on the desktop, and I open the project by double clicking on it.

Normally this wouldn't be an issue, but Windows is having issues opening that zip file  (i.e. double clicking it outside of Cakewalk causes Windows Explorer to hang too).

As this is Windows Explorer that is hanging, I don't think there's not much we can do about it.   The answer is not to open a Cakewalk project file from a directory which has corrupt zip files in it.

I think I made it clear in my post, that where I think there is room to improve is in providing logging -- or some other form of feedback -- so that troubleshooting something like this takes minutes instead of hours. 

Also, I want to clarify, I did not invoke cakewalks browser functionality to open this file, and cakewalk IS trying to open it -- for whatever reason -- when trying to create a new project. That alone is cause for serious concern since:

a) it raises privacy and security concerns
b) it is coded as a critical path element which hangs the entire app

And also want to clarify, this zip file was NOT in the folder that my project was in -- or was to be in . I am sure I made that clear. 

But since I am now able to create a project, I can confirm opening an existing project does not cause cakewalk to access zip files on the desktop. 

Bottom line, is this app is deciding on its own, when creating a new project,  to crawl files on my desktop and if it is a zipfile to unzip it. 

It is worth noting, the zip file is not malformed. For whatever reason windows chokes on it. I can't speak to why because it isn't my code.  If cakewalk depends upon zipfldr, then cakewalk needs to handle accordingly.... with feedback to the user and an option to terminate whatever task is trying to unzip the file. 

I just can't think of any good reason that creating a new project should need to open zip files on my desktop, so even if it doesn't stumble on a zipfldr issue, it still is something that should be looked at. 

Link to comment
Share on other sites

Just a quick follow-up. After continued testing of this, I can only arrive at the conclusion that this is a valid issue. I also  have since found this thread saying pretty much the same, nearly a year ago. Except, I think the issue has not only not been resolved but has worsened.  Here is why I say that:

1) I can confirm the "media browser" window is NOT pointing to "Desktop", yet any time one creates a new project, or opens an existing project, the application opens any zip files on the Desktop.  Thus the work around discussed in the below thread is no longer a work around. 

2) It is not a "corrupted zip file". While it is true that winfldr.dll chokes on it, it is not a malformed zip file. But, it is a zip file that has a lot of objects and takes considerable time to uncompress.  However, the cakewalk application never completes this operation, and it crashes but doesn't close the application window and any processes it launched. It is not a matter of waiting -- this will never complete and it does result in a hung application. 

3) Even if it did not lead to an application hang, this behavior would certainly raise brows from a security and privacy perspective.  One reasonably expects cakewalk to limit its access of user files to only the directories that are relevant to the users work. This behavior -- opening zip file son the users desktop -- occurs regardless of where the project folder is located, etc. 

4) I would guess the reason the application is scanning and opening zip files, is to make it easier for non-tech savvy users to work with loops and other content they have in compressed form. If that is the case, and this functionality needs to continue, there really should be something in the pop-up (where its says "Creating UI") that informs the user what zip file it is attempting to open. Because this is a critical path operation which has the potential to run long, or in this case crash the app, it is just a good practice to clue the user in on what was being attempted. 

Cakewalk is, in my opinion, an extremely complex piece of software which amazingly runs very solidly. I know because I was a paying customer since Sonar 7.  I believe that addressing this issue will result in an even better "out of the box" experience, and close off what many would consider to be a privacy concern. 
 

 

Edited by Thomas S Carlisle
  • Like 1
Link to comment
Share on other sites

@Thomas S Carlisle Good troubleshooting.
The application doesn’t explicitly look at files on your desktop. However the browser uses a shell component that we have no control over that may be enumerating files in the file system. I wouldn’t worry about privacy concerns. Its not cakewalk looking at the zip file, its the windows shell :) Windows in some cases can enumerate files within zip’s since it allows browsing into them.
Creating or opening project files themselves do no attempt to look at any other folder other than the project folder. However if the project opens an instance of the browser (as most templates save with the browser open) the windows browser shell component will to enumerate files. 
I will double check again but AFIK it should not explicitly be referencing your desktop unless the project was saved pointing to the desktop folder. Perhaps you can post a screenshot of your browser view showing the file browser. Perhaps you can send us a link to the corrupt zip file since it will make it easier to reproduce the issue.

Regarding logging, we do have logging but its primarily intended for beta builds and even so you have to know what to log. We certainly wouldn’t be logging hangs in Windows components.

Link to comment
Share on other sites

  • 2 months later...
On 12/8/2021 at 12:45 AM, Thomas S Carlisle said:

First, let me say I have been a faithful Cakewalk user since about 2010, so I am not new to the product. I am an IT Professional with about 30 years experience, so not new to the concepts of software installation and troubleshooting. Also have been a developer so not new to the concept of applications should not swallow exceptions -- and I do think that is what is happening here. Lastly, applications should  provide feedback to the user, ideally a log file that users can use to troubleshoot and understand what conditions made the application go into a bad state. 

So I post this to help others who land here, and also hoping that the dev team considers making this product more supportable, e.g. through logging. Because that would have saved me literally about 10 hours. 

Just to mention: in troubleshooting this I found this: 


And a few others. 

At the end of the day, it wasn't board drivers, chipset INF's, video drivers, etc. It was due to having files on the desktop. Not files having to do with a cakewalk project, e.g. not loading a project from a folder on the desktop. Not, it was because I had a file related to software development  on my desktop. It was a zip file of material icons, and for whatever reason cakewalk was trying to do something with that file -- over and over and over and was stuck. 

Once I was able to see something that pointed me to this, it was an easy fix --- stop leaving junk on the desktop. But how much I had to do to be able to see what was happening, was entirely too much. This is where an application logfile would really have helped, because I'd have seen in that app log the attempt to open that zip file over and over. 

Lacking that, here is what I did:

1) Went to another computer and installed. I figured if it did the same thing, no sense looking further. But, if that were the cae there would be a lot of posts about the problem. So I did expect it to work, and it did. Problem is, I want it to work on my most powerful rig. 

2) I created a dump file of the task, and opening that with windbg gives me this:

00000000`001471d0 00007ff8`f812e5ac : 00000000`00147726 00000000`00147310 00000000`2160d170 00000000`00147310 : zipfldr!CEnumArchive::_DirExistsInEnumerator+0x48

SYMBOL_NAME: zipfldr!CEnumArchive::_DirExistsInEnumerator+48

MODULE_NAME: zipfldr

IMAGE_NAME: zipfldr.dll

FAILURE_BUCKET_ID: BREAKPOINT_80000003_zipfldr.dll!CEnumArchive::_DirExistsInEnumerator

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.19041.789

3) From this, it looks like an exception is thrown in the zip module within one of the C++/.Net assemblies. So off I went to ensure the c++ redist is right, etc. to No avail. 

If only I had a way of knowing what file the app was trying to zip or unzip.... again, an app log that shows things which are attempted but not successful would be a good thing. 

4) Next I tried to run cakewalk from another account on the computer. It worked! Ok, so just use another account for music production. Not a big deal. But the tech inside of me just couldn't leave it at that. 

5) Clearly, something about the user profile was the issue. So I went through the process of trying to rebuild the user profile and just make the account this app works under be the account I use for everything. But, once I got all the appdata and files migrated to the working user profile, now the app doesn't work under THAT profile. Interestingly, it now worked under the original profile. 

6) So clearly, it isn't the account or the registry of the account, but something in the files. So I migrated files back to the original account, and sure enough the original account no longer works and the other account works again. I wish I had a way of knowing what files the app was trying to open or create.... again, logging is your friend in 2021.

7) I spent some time trying to narrow down which files make the issue appear/disappear, but it is like a needle in a haystack. Finally, I used procmon64.  Since I knew the problem was file driven, not registry driven, I could filter out and just show files. Still, it was a lot of stuff to wade through. 

But I was able to find, after the point that "Creating UI" appears and the app hangs, I was able to find a lot of attempts to access that zip file on my desktop. So I copied all files on my desktop somewhere else, and now cakewalk works. And last, but not least, if I copy that file back to the desktop, it breaks cakewalk. 

What file was it? Material Design Icons: https://github.com/google/material-design-icons/releases/tag/4.0.0

It turns out, for whatever reason, if you click on that zip file in windows, windows explorer hangs trying to open it. 7zip opens it just fine. Thus, the underlying issue is this zip file somehow being incompatible with windows native libraries that apps use. 

If this was a zip file in my project directory, or in my content directory, or my VST folder(s) I would understand it, and would have honed in on that pretty much immediately. But without any logging information to go on, I would not think to consider zip files that are outside of those specific areas which this app should be using. 

And no, I wasn't storing the project on the desktop. Yes, I get that apps like this will "watch" the files/directories under the project folder so the app knows of external changes. There is no reason cakewalk should have been "watching" my desktop. 

So I guess in conclusion, I began thinking I was recommending the app implement logging, so users understand what might be going on when the app doesn't work as expected. 

But now, I am recommending the app developers look at this because whether it is intended or not, upon close examination the app does appear to be looking outside the bounds of the project folder, and raises brows from a security/privacy perspective. 

Thanks a lot!!!!    I've been troubled by this problem for a long time!!!

Because of your conclusion, I remember that I created a huge zip file at  "D:/mydata.zip" not long ago. Extracting it will take 20 minutes more.

So I opened any project in cakewalk and hang at "creating UI" for 20 minutes .

I removed the D:/mydata.zip and all projects were loaded faster!

Link to comment
Share on other sites

  • 10 months later...
On 12/7/2021 at 10:45 AM, Thomas S Carlisle said:

First, let me say I have been a faithful Cakewalk user since about 2010, so I am not new to the product. I am an IT Professional with about 30 years experience, so not new to the concepts of software installation and troubleshooting. Also have been a developer so not new to the concept of applications should not swallow exceptions -- and I do think that is what is happening here. Lastly, applications should  provide feedback to the user, ideally a log file that users can use to troubleshoot and understand what conditions made the application go into a bad state. 

So I post this to help others who land here, and also hoping that the dev team considers making this product more supportable, e.g. through logging. Because that would have saved me literally about 10 hours. 

Just to mention: in troubleshooting this I found this: 


And a few others. 

At the end of the day, it wasn't board drivers, chipset INF's, video drivers, etc. It was due to having files on the desktop. Not files having to do with a cakewalk project, e.g. not loading a project from a folder on the desktop. Not, it was because I had a file related to software development  on my desktop. It was a zip file of material icons, and for whatever reason cakewalk was trying to do something with that file -- over and over and over and was stuck. 

Once I was able to see something that pointed me to this, it was an easy fix --- stop leaving junk on the desktop. But how much I had to do to be able to see what was happening, was entirely too much. This is where an application logfile would really have helped, because I'd have seen in that app log the attempt to open that zip file over and over. 

Lacking that, here is what I did:

1) Went to another computer and installed. I figured if it did the same thing, no sense looking further. But, if that were the cae there would be a lot of posts about the problem. So I did expect it to work, and it did. Problem is, I want it to work on my most powerful rig. 

2) I created a dump file of the task, and opening that with windbg gives me this:

00000000`001471d0 00007ff8`f812e5ac : 00000000`00147726 00000000`00147310 00000000`2160d170 00000000`00147310 : zipfldr!CEnumArchive::_DirExistsInEnumerator+0x48

SYMBOL_NAME: zipfldr!CEnumArchive::_DirExistsInEnumerator+48

MODULE_NAME: zipfldr

IMAGE_NAME: zipfldr.dll

FAILURE_BUCKET_ID: BREAKPOINT_80000003_zipfldr.dll!CEnumArchive::_DirExistsInEnumerator

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.19041.789

3) From this, it looks like an exception is thrown in the zip module within one of the C++/.Net assemblies. So off I went to ensure the c++ redist is right, etc. to No avail. 

If only I had a way of knowing what file the app was trying to zip or unzip.... again, an app log that shows things which are attempted but not successful would be a good thing. 

4) Next I tried to run cakewalk from another account on the computer. It worked! Ok, so just use another account for music production. Not a big deal. But the tech inside of me just couldn't leave it at that. 

5) Clearly, something about the user profile was the issue. So I went through the process of trying to rebuild the user profile and just make the account this app works under be the account I use for everything. But, once I got all the appdata and files migrated to the working user profile, now the app doesn't work under THAT profile. Interestingly, it now worked under the original profile. 

6) So clearly, it isn't the account or the registry of the account, but something in the files. So I migrated files back to the original account, and sure enough the original account no longer works and the other account works again. I wish I had a way of knowing what files the app was trying to open or create.... again, logging is your friend in 2021.

7) I spent some time trying to narrow down which files make the issue appear/disappear, but it is like a needle in a haystack. Finally, I used procmon64.  Since I knew the problem was file driven, not registry driven, I could filter out and just show files. Still, it was a lot of stuff to wade through. 

But I was able to find, after the point that "Creating UI" appears and the app hangs, I was able to find a lot of attempts to access that zip file on my desktop. So I copied all files on my desktop somewhere else, and now cakewalk works. And last, but not least, if I copy that file back to the desktop, it breaks cakewalk. 

What file was it? Material Design Icons: https://github.com/google/material-design-icons/releases/tag/4.0.0

It turns out, for whatever reason, if you click on that zip file in windows, windows explorer hangs trying to open it. 7zip opens it just fine. Thus, the underlying issue is this zip file somehow being incompatible with windows native libraries that apps use. 

If this was a zip file in my project directory, or in my content directory, or my VST folder(s) I would understand it, and would have honed in on that pretty much immediately. But without any logging information to go on, I would not think to consider zip files that are outside of those specific areas which this app should be using. 

And no, I wasn't storing the project on the desktop. Yes, I get that apps like this will "watch" the files/directories under the project folder so the app knows of external changes. There is no reason cakewalk should have been "watching" my desktop. 

So I guess in conclusion, I began thinking I was recommending the app implement logging, so users understand what might be going on when the app doesn't work as expected. 

But now, I am recommending the app developers look at this because whether it is intended or not, upon close examination the app does appear to be looking outside the bounds of the project folder, and raises brows from a security/privacy perspective. 

Thanks  so  much, I spent 2 days messing with drivers and all kinds of crap before I saw  your thread.  I had some midi files in folder on my desktop, but deleted those.  It wasnt until I moved the zip file to another location that it quit hanging.  I never accessed them there through Bandlab though.  I just unzipped them there and then moved the folder and files to C:, Cakewalk Content, MIDI Library.  

Link to comment
Share on other sites

  • 9 months later...

They're talking about zip files they created themselves for various reasons. I ran into this issue a few years ago when I was moving files to an SSD and zipped up my Projects folder and didn't immediately remove the archive file after unzipping it in the new location.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...