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]: pyRevit Crashing Revit When Edited by Multiple Users #2388

Open
5 tasks done
HollyK15 opened this issue Sep 4, 2024 · 3 comments
Open
5 tasks done

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

HollyK15 opened this issue Sep 4, 2024 · 3 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Heisenbug Bug that is very hard to find [class] Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem]

Comments

@HollyK15
Copy link

HollyK15 commented Sep 4, 2024

✈ 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

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.

  • User 1 opened Manage Keynotes and edits (ex) # 101
  • User 2 opens Manage Keynotes and also edits # 101
  • Either User 1 or User 2 closes MK to place # 101
  • User that closed MK will receive Revit pop-up stating other user owns the TXT and can either Place Request or Cancel.
  • If user chooses CANCEL, Revit 2024 will crash.

⏲️ 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

@HollyK15 HollyK15 added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Sep 4, 2024
@jmcouffin
Copy link
Contributor

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.

@jmcouffin jmcouffin added Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem] Heisenbug Bug that is very hard to find [class] needs-more-info Issue required to follow the bug report template. Triggered by the stale issue workflow labels Sep 12, 2024
@HollyK15
Copy link
Author

HollyK15 commented Oct 1, 2024

@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.

@github-actions github-actions bot removed the needs-more-info Issue required to follow the bug report template. Triggered by the stale issue workflow label Oct 1, 2024
@jmcouffin
Copy link
Contributor

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

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] Heisenbug Bug that is very hard to find [class] Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem]
Projects
None yet
Development

No branches or pull requests

2 participants