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]: List Family Size error. crashes on Revit 2024 #2283

Open
5 tasks done
TugboatBen opened this issue Jun 5, 2024 · 1 comment
Open
5 tasks done

[Bug]: List Family Size error. crashes on Revit 2024 #2283

TugboatBen opened this issue Jun 5, 2024 · 1 comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] needs-more-info Issue required to follow the bug report template. Triggered by the stale issue workflow

Comments

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

Tools starts as it should, but stops part way through the scan with this error.
ERROR [pyrevit.revit] Error in ErrorSwallower Context. | <type 'exceptions.Exception'>:Saving failed.

⌨ Error/Debug Message

IronPython Traceback:
Traceback (most recent call last):
 File "C:\Users\xxxxxxx\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Analysis.panel\Tools.stack\Inspect.pulldown\ListFamilySizeCreator.pushbutton\ListFamilySizeCreator_script.py", line 113, in <module>
Exception: Saving failed.


Script Executor Traceback:
Autodesk.Revit.Exceptions.InvalidOperationException: Saving failed.
 at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception)
 at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception)
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
 at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

♻️ To Reproduce

No response

⏲️ Expected behavior

No response

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

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.14.24016+1909" | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "24.2" | Engine: IPY277 (277) | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
master | Product: "23.1.3" | Engine: IPY277 (277) | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
master | Product: "2022.1.5" | Engine: IPY277 (277) | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
master | Product: "2021.1.9" | Engine: IPY277 (277) | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
master | Product: "2020.2.9" | Engine: IPY277 (277) | Path: "C:\Users\bhunter\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
DC_Tools | Type: Unknown | Repo: "" | Installed: "C:\Users\bhunter\AppData\Roaming\Autodesk\Revit\Addins\LCI Addins\Extensions\DC_Tools.extension"
==> Default Extension Search Path
C:\Users\bhunter\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\Users\bhunter\AppData\Roaming\Autodesk\Revit\Addins\LCI Addins\Extensions
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
23.1.3 | Version: 23.1.30.97 | Build: 20230828_1515(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\"
2021.1.9 | Version: 21.1.90.15 | Build: 20230907_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
2020.2.9 | Version: 20.2.90.12 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
==> Running Revit Instances
PID: 32924 | 24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2024"
PID: 37248 | 24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2024"
==> User Environment
Microsoft Windows 10 [Version 10.0.19045]
Executing User: LCI\bhunter
Active User: LCI\bhunter
Admin Access: No
%APPDATA%: "C:\Users\bhunter\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.14.24016+1909.ee814ee2f686d23db8bb6ff80d8bb918ff9adc99

Additional context

No response

@TugboatBen TugboatBen added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Jun 5, 2024
@sanzoghenzo
Copy link
Contributor

Hi @TugboatBen, sorry for the delay...
Can you please try to run the command with debug enabled (hold ctrl while clicking on the button)?
It might give you more information about the family that can't be saved (the script saves the families that don't have a path to a temporary folder in order to calculate its size).

Does this happen regardless of the model that you run the command in?

@sanzoghenzo sanzoghenzo added the needs-more-info Issue required to follow the bug report template. Triggered by the stale issue workflow label Jun 18, 2024
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] needs-more-info Issue required to follow the bug report template. Triggered by the stale issue workflow
Projects
None yet
Development

No branches or pull requests

2 participants