Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: UI Freeze after script has completed running #2609

Open
5 tasks done
datcomputerguy opened this issue Mar 12, 2025 · 1 comment
Open
5 tasks done

[Bug]: UI Freeze after script has completed running #2609

datcomputerguy opened this issue Mar 12, 2025 · 1 comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]

Comments

@datcomputerguy
Copy link

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

This script has worked for a couple years without issues. in the past couple weeks this began on my computer and is now happening on the other computers that I have tested this on. I re-wrote the script a couple different ways in an attempt to make it work but the same error occurs. it seems to only be scripts that run and Revit has a popup or some kind of UI hang up.
When running the script, the script appears to execute correctly and without error. at the very end, it seems like the UI for Revit as a whole just stops accepting input. But it does not appear to be a frozen process.

⌨ Error/Debug Message

There is no error message.  I do not see an error message in the pyrevit logs files (enabled debugging to file).  I have also checked the revit journal file and do not see anything that would explain the hang up either.  it seems like it is just waiting for me to do something.

I did a screen recording to show the behavior since I don't really have an error message: https://youtu.be/lXRJF0GCMjs

♻️ To Reproduce

I can provide the exact code I am running if desired, please let me know and I would gladly email or whatever.

I modified the pyrevit load families script to restrict it to a set folder with various filters of what I wanted to allow the users to load.
Also modified it to be capable of loading the selected families into multiple open models.

⏲️ Expected behavior

Expected behavior is for the UI to remain functional after executing the script

🖥️ Hardware and Software Setup (please complete the following information)

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Branch: "master" | Version: "5.0.1.25051+1239" | Path: "C:\Program Files\pyRevit-Master"
==> Attachments
master | Product: "2025 First Customer Ship" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
master | Product: "2024.2.1" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
master | Product: "2023.1.4" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
master | Product: "2022.1.5" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
master | Product: "Autodesk Revit 2021" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
master | Product: "2020.2.1 (New Install)" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
==> Installed Extensions
PatricksExtension | Type: Unknown | Repo: "" | Installed: "C:\Users\patrickm\OneDrive - R&N Systems Design\pyRevit\PatricksExtension.extension"
==> Default Extension Search Path
C:\Users\patrickm\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\Users\patrickm\OneDrive - R&N Systems Design\pyRevit
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2025 First Customer Ship | Version: 25.0.2.419 | Build: 20240307_1300(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2025\"
2024.2.1 | Version: 24.2.10.64 | Build: 20240408_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
2023.1.4 | Version: 23.1.40.56 | Build: 20240411_0945(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
2022.1.5 | Version: 22.1.50.17 | Build: 20230915_1530(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
Autodesk Revit 2021 | Version: 21.1.1.109 | Build: 20200715_1022(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
2020.2.1 (New Install) | Version: 20.2.12.1 | Build: 20200210_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
==> Running Revit Instances
PID: 19196 | 2024.2.1 | Version: 24.2.10.64 | Build: 20240408_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2024"
==> User Environment
Microsoft Windows 10 [Version 10.0.26100]
Executing User: AzureAD\PatrickMcGinnis
Active User: AzureAD\PatrickMcGinnis
Admin Access: No
%APPDATA%: "C:\Users\patrickm\AppData\Roaming"
Latest Installed .Net Framework: 8.0.14
No .Net Target Packs are installed.
No .Net-Core Target Packs are installed.
pyRevit CLI v5.0.1.25051+1239.a19f9a76cf00d7256cf522f5ec874fea9dd0baa8

Additional context

No response

@datcomputerguy datcomputerguy added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Mar 12, 2025
@jmcouffin
Copy link
Contributor

jmcouffin commented Mar 12, 2025

Not a pyrevit issue per se, most probably a bug in your code.
I suggest you close this issue and make a post in the forum including your code for people to reproduce.
There is a good chance this is a transaction that did not commit/close properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Projects
None yet
Development

No branches or pull requests

2 participants