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

pyRevit 4.6.24 CPython execution hangs #683

Closed
htlcnn opened this issue Sep 8, 2019 · 6 comments
Closed

pyRevit 4.6.24 CPython execution hangs #683

htlcnn opened this issue Sep 8, 2019 · 6 comments
Labels
Python 3 Issues related to cpython engines [subsystem]

Comments

@htlcnn
Copy link
Contributor

htlcnn commented Sep 8, 2019

I'm testing my script to run with CPython 3.7.2. The script run was not stable. I ran the same command several times, after about 2-4 times the output window hangs and so did Revit window.

I've recorded my screen to show how my CPython script made Revit hangs. It happened randomly (or because I haven't find out the cause).

Screencap:
https://www.youtube.com/watch?v=Suvu1tojxQ4

Desktop:

  • OS: Windows 7 x64 and Windows 10 x64
  • pyRevit Version 4.6.24
  • pyRevit Environment:
C:\Users\HTL>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.6.24" | Path: "C:\Users\HTL\AppData\Roaming\pyRevit-Mast
==> Attachments
master | Product: "Autodesk Revit 2018 First Customer Ship" | Engine: 277 | Path: "C:\Users\HTL\AppData\Roaming\pyRevit
HTL\AppData\Roaming\Autodesk\Revit\Addins\2018\pyRevit.addin"
==> Installed Extensions
htl | Type: Unknown | Repo: "git@gitlab.com:hoangthanhlong/pyrevitscripts.git" | Installed: "E:\Setup\UCE\Autodesk\Revi
ion"
==> Default Extension Search Path
C:\Users\HTL\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
E:\Setup\UCE\Autodesk\Revit\pyRevit extensions
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2018 First Customer Ship | Version: 18.0.0.420 | Build: 20170223_1515(x64) | Language: 1033 | Path: "C:\
18"
==> Running Revit Instances
PID: 12316 | Autodesk Revit 2018 First Customer Ship | Version: 18.0.0.420 | Build: 20170223_1515(x64) | Language: 0 |
k\Revit 2018"
PID: 11820 | Autodesk Revit 2018 First Customer Ship | Version: 18.0.0.420 | Build: 20170223_1515(x64) | Language: 0 |
k\Revit 2018"
==> User Environment
Microsoft Windows 7 [Version 6.1.7601]
Executing User: HTL-PC\HTL
Active User: HTL-PC\HTL
Adming Access: Yes
%APPDATA%: "C:\Users\HTL\AppData\Roaming"
Latest Installed .Net Framework: 4.8
Installed .Net Target Packs: v3.5 v4.0 v4.5 v4.5.1 v4.5.2 v4.6 v4.6.1 v4.7.1 v4.7.2 v4.X
Installed .Net-Core Target Packs: v2.2.203 v3.0.100-preview8-013656
pyRevit CLI 0.13.0.0
@eirannejad
Copy link
Collaborator

Test using the new pyRevit 4.7-beta 2 please. CPython is still being tested in pyRevit.

@eirannejad eirannejad added Python 3 Issues related to cpython engines [subsystem] Under Review labels Sep 8, 2019
@htlcnn
Copy link
Contributor Author

htlcnn commented Sep 9, 2019

I have uninstalled pyRevit 4.6.24 and installed pyRevit 4.7-beta 2. Unfortunately I still had this issue. Do you have any way to debug this?

My current pyRevit env:

C:\Users\HTL>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.7-beta2" | Path: "C:\Users\HTL\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "2018 First Customer Ship" | Engine: 277 | Path: "C:\Users\HTL\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\HTL\AppData\Roa
ming\Autodesk\Revit\Addins\2018\pyRevit.addin"
==> Installed Extensions
htl | Type: Unknown | Repo: "git@gitlab.com:hoangthanhlong/pyrevitscripts.git" | Installed: "E:\Setup\UCE\Autodesk\Revit\pyRevit extensions\htl.extens
ion"
==> Default Extension Search Path
C:\Users\HTL\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
E:\Setup\UCE\Autodesk\Revit\pyRevit extensions
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2018 First Customer Ship | Version: 18.0.0.420 | Build: 20170223_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2018"
==> Running Revit Instances
PID: 3040 | 2018 First Customer Ship | Version: 18.0.0.420 | Build: 20170223_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2018"
==> User Environment
Microsoft Windows 7 [Version 6.1.7601]
Executing User: HTL-PC\HTL
Active User: HTL-PC\HTL
Adming Access: Yes
%APPDATA%: "C:\Users\HTL\AppData\Roaming"
Latest Installed .Net Framework: 4.8
Installed .Net Target Packs: v3.5 v4.0 v4.5 v4.5.1 v4.5.2 v4.6 v4.6.1 v4.7.1 v4.7.2 v4.X
Installed .Net-Core Target Packs: v2.2.203 v3.0.100-preview8-013656
pyRevit CLI 0.14.0.0

@eirannejad
Copy link
Collaborator

Would you be able to share the script so I can test?

eirannejad added a commit that referenced this issue Sep 9, 2019
@eirannejad
Copy link
Collaborator

I was able to replicate some cpyhon issues. Made a few modifications and will publish tonight

@htlcnn
Copy link
Contributor Author

htlcnn commented Sep 10, 2019

My script involves in exporting family image, so I sent you both my test project and my script via email. Please check your email (I've resent it).

@eirannejad
Copy link
Collaborator

Fixed in 4.7beta3 and will be published soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python 3 Issues related to cpython engines [subsystem]
Projects
None yet
Development

No branches or pull requests

2 participants