Hang opening projects when files are unavailable

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Ron Klimaszewski
Posts: 6
Last visit: Tue Nov 05, 2024 3:35 am

Hang opening projects when files are unavailable

Post by Ron Klimaszewski »

Product, version and build: PowerShell Studio v5.8.224
Operating system: Windows 10 22H2
PowerShell version(s): 5, 7

When opening a project where the folder has moved, or if on a cloud drive (OneDrive) and the service is not running, PowerShell Studio sort of hangs.

When clicking on the window to put it in focus, it simply dings. You cannot ALT-F4 to exit. You cannot right-click on it in the taskbar and close. It is like there is a hidden modal window which is not visible even with ALT-TAB. Even if you start the OneDrive service, it does not recover. It can only be closed with end task.
Attachments
Project was moved to another location (on OneDrive)
Project was moved to another location (on OneDrive)
PowerShellStudio Hang 2.jpg (19.47 KiB) Viewed 1208 times
OneDrive is not running
OneDrive is not running
PowerShellStudio Hang 1.jpg (7.94 KiB) Viewed 1208 times
User avatar
brittneyr
Site Admin
Posts: 1807
Last visit: Wed Nov 13, 2024 7:37 am
Answers: 44
Been upvoted: 34 times

Re: Hang opening projects when files are unavailable

Post by brittneyr »

There is not much that we can do if OneDrive is causing the product to hang. When did you receive these error messages? Was it before or after the product hangs? Does PowerShell Studio ever recover after attempting to open a project?
Brittney
SAPIEN Technologies, Inc.
User avatar
Ron Klimaszewski
Posts: 6
Last visit: Tue Nov 05, 2024 3:35 am

Re: Hang opening projects when files are unavailable

Post by Ron Klimaszewski »

It is not OneDrive causing the hang, as this happened trying to open another project where it was previously moved.

When did you receive these error messages?
- File menu, and select from Recent Projects.
Was it before or after the product hangs?
- The error message appears in the Output window on the bottom after selecting from Recent Projects and project that no longer exists or is on OneDrive.
Does PowerShell Studio ever recover after attempting to open a project?
- No. Anytime you click on the window you get the System Notification sound. You have to end task to close. If the project was relocated, you can use Open Project and select from the new location.

I was able to repeat this.
User avatar
brittneyr
Site Admin
Posts: 1807
Last visit: Wed Nov 13, 2024 7:37 am
Answers: 44
Been upvoted: 34 times

Re: Hang opening projects when files are unavailable

Post by brittneyr »

The first error message you are seeing should be followed by a dialog prompting to remove the project from the list:
SPS_RecentProjectsRemoveFromListDialog.png
SPS_RecentProjectsRemoveFromListDialog.png (5.54 KiB) Viewed 1194 times
I have not been to reproduce the hanging behavior by moving a project in the latest build of PowerShell Studio.

Please try updating to the latest build (5.8.248) and let me know if you are still having these issues.
Brittney
SAPIEN Technologies, Inc.
User avatar
Ron Klimaszewski
Posts: 6
Last visit: Tue Nov 05, 2024 3:35 am

Re: Hang opening projects when files are unavailable

Post by Ron Klimaszewski »

It is a modal message box which is hidden. I took a video and was able to capture it. It is behind the main window and no way to access. It may have to do with multiple displays. My desktop is extended across three monitors, and this is on monitor 1.

Edit: I did update to the latest build.
Attachments
Hidden modal message box
Hidden modal message box
PowerShellStudio Hang - modal msg box.png (65.44 KiB) Viewed 1189 times
User avatar
brittneyr
Site Admin
Posts: 1807
Last visit: Wed Nov 13, 2024 7:37 am
Answers: 44
Been upvoted: 34 times

Re: Hang opening projects when files are unavailable

Post by brittneyr »

A change has been made in order to address the behavior with the message box. This will be released with the next service release. I do not have an ETA.

As for the other error message, is there also a hidden message box?
Brittney
SAPIEN Technologies, Inc.
User avatar
Ron Klimaszewski
Posts: 6
Last visit: Tue Nov 05, 2024 3:35 am

Re: Hang opening projects when files are unavailable

Post by Ron Klimaszewski »

I believe they are related. The output window is relating the actual error (not found, OneDrive not running, etc.). The real issue is this prompt not always on top.

Thank you. I'll look out for the fix.
User avatar
brittneyr
Site Admin
Posts: 1807
Last visit: Wed Nov 13, 2024 7:37 am
Answers: 44
Been upvoted: 34 times

Re: Hang opening projects when files are unavailable

Post by brittneyr »

Please try service build 5.8.249 and let me know if you still experiencing any issues.
Brittney
SAPIEN Technologies, Inc.
User avatar
Ron Klimaszewski
Posts: 6
Last visit: Tue Nov 05, 2024 3:35 am

Re: Hang opening projects when files are unavailable

Post by Ron Klimaszewski »

I can confirm the issue has been resolved.

Upon startup, the output window now shows "The cloud file provider is not running", but I still able to work. If I try to open a project, I get the "selected file is current not accessible, Remove from list?" prompt. It may be a good idea to elaborate on this message when the cloud service is not available to prevent an accidental removal from the list.

Thank you for fixing this.