pyrevitlabs / pyRevit

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

[Bug]: pyRevit Crashing Revit When Edited by Multiple Users #2388

Open HollyK15 opened 2 months ago

HollyK15 commented 2 months ago

✈ Pre-Flight checks

🐞 Describe the bug

We have done extensive internal testing, as well as presented this issue to Eshan and worked with Autodesk on a resolution. Autodesk has determined the issue is on the pyRevit side, and are willing to collaborate on a solution via the ADN. Here is the issue:

We've tried this on pyRevit v4.8.13, 15 and now 16. We've seen this in multiple versions of Revit, but notably the crashes seem to be only in 2024. We've also tried hosting the TXT file in different locations, ACC vs local server, with the same behavior. What happens is that when more than one person edits the same keynote WHILE another person has the editor open as well, upon trying to place that keynote, they will receive the pop-up from Revit saying "X owns the element" with the option to Place Request or Cancel. Choosing Cancel on this pop-up crashes Revit 2024. In Revit 2023, choosing Cancel forces both parties to sync before anything else can be done in keynotes.

There are inconsistent indicators that the particular keynote is being edited, but when this does show, it's works well because it prevents anyone from touching that keynote. It just rarely shows that info.

⌨ Error/Debug Message

If the "editing" note shown on an individual keynote would show consistently on all notes being touched, it would be helpful.  Ultimately though, pyRevit needs ot properly relinquish the TXT back so that Revit does not encounter the ownership error that leads to the crash.

♻️ To Reproduce

2 users need to be working in the same project using Manage Keynotes.

⏲️ Expected behavior

Either the note indictaing a keynote has/is edited, or non-crashing when ownership error is encountered.

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

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
==> Attachments
Unknown | Product: "Autodesk Revit 2024" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2024\pyRevit.addin"
Unknown | Product: "Autodesk Revit 2023" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2023\pyRevit.addin"
Unknown | Product: "Autodesk Revit 2022" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2022\pyRevit.addin"
Unknown | Product: "Autodesk Revit 2021" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2021\pyRevit.addin"
Unknown | Product: "2020.2.0" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2020\pyRevit.addin"
Unknown | Product: "2019.2.6" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2019\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\h.kramer\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2024 | Version: 24.2.20.41 | Build: 20240814_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
Autodesk Revit 2023 | Version: 23.1.30.97 | Build: 20230828_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
Autodesk Revit 2022 | Version: 22.1.70.9 | Build: 20240704_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
Autodesk Revit 2021 | Version: 21.1.90.15 | Build: 20230907_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
2020.2.0 | Version: 20.2.90.12 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
2019.2.6 | Version: 19.2.60.3 | Build: 20220224_1700(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019\"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.19045]
Executing User: IA\h.kramer
Active User: IA\h.kramer
Admin Access: No
%APPDATA%: "C:\Users\h.kramer\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.13.23182+2215

Additional context

No response

jmcouffin commented 2 months ago

Autodesk has determined the issue is on the pyRevit side, and are willing to collaborate on a solution via the ADN

Any communication with Autodesk related to the issue would be appreciated. That would help find the right person to talk too.

HollyK15 commented 1 month ago

@jmcouffin Andrew Milner and Sam Skurkovich were my main contacts. Andrew on the technical side. They asked that you reach out via the ADN network. They have this issue flagged and are aware, but want the coordination to go through those channels.

Also, I came here to do some more bug searching and will probably end up making a new issue report. We're seeing many tools with version 4.8.16 that crash Revit. We're mostly in Revit 2024.2 and have updated our firm to Desktop Connector 16.8.

jmcouffin commented 1 month ago

Andrew Milner and Sam Skurkovich were my main contacts. Andrew on the technical side. They asked that you reach out via the ADN network. They have this issue flagged and are aware, but want the coordination to go through those channels

Good they want us to reach out through the ADN network. That's 1750 a year. No way we will spend the donation money on that unless they give us access for free, like we do. They can contact me @ jmcouffin at gmail Unless they consider us as a uni or a startup image