pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.3k stars 332 forks source link

pyRevit 4.6.24 CPython execution hangs #683

Closed htlcnn closed 5 years ago

htlcnn commented 5 years ago

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:

eirannejad commented 5 years ago

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

htlcnn commented 5 years ago

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 commented 5 years ago

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

eirannejad commented 5 years ago

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

htlcnn commented 5 years ago

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 commented 5 years ago

Fixed in 4.7beta3 and will be published soon