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

Error creating stack #2521

Open
5 tasks done
sergeykahn opened this issue Jan 14, 2025 · 2 comments
Open
5 tasks done

Error creating stack #2521

sergeykahn opened this issue Jan 14, 2025 · 2 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Extension Commands Issues related to pyRevit extension commands [subsystem] Extensions Issues related to pyRevit extensions [subsystem]

Comments

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

One of our office computer's gets the following message when opening Revit (confirmed both Revit 2024 and 2023 versions). We tried uninstalling and reinstalling pyRevit, but that didn't work. The rest of the computers are all running the same build of Revit and pyRevit but don't have this error.

⌨ Error/Debug Message

ERROR [pyrevit.loader.uimaker] Error creating stack | Can not create stack of 5. Stack can only have 2 or 3 items.
Traceback:
 File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\uimaker.py", line 507, in _produce_ui_stacks
 parent_ui_panel.close_stack()
ERROR [pyrevit.loader.uimaker] Error creating stack | Can not create stack of 4. Stack can only have 2 or 3 items.
Traceback:
 File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\uimaker.py", line 507, in _produce_ui_stacks
 parent_ui_panel.close_stack()
ERROR [pyrevit.loader.uimaker] Error creating stack | Can not create stack of 4. Stack can only have 2 or 3 items.
Traceback:
 File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\uimaker.py", line 507, in _produce_ui_stacks
 parent_ui_panel.close_stack()
ERROR [pyrevit.loader.uimaker] Error creating stack | Can not create stack of 5. Stack can only have 2 or 3 items.
Traceback:
 File "C:\Program Files\pyRevit-Master\pyrevitlib\pyrevit\loader\uimaker.py", line 507, in _produce_ui_stacks
 parent_ui_panel.close_stack()

♻️ 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)
==> Attachments
Unknown | Product: "Autodesk Revit 2024" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2024\pyRevit.addin"
Unknown | Product: "2023.1.1" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2023\pyRevit.addin"
Unknown | Product: "2022.1.3" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2022\pyRevit.addin"
Unknown | Product: "2020.2.9" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2020\pyRevit.addin"
Unknown | Product: "2019.2 (Full Install)" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2019\pyRevit.addin"
Unknown | Product: "2015 Update Release 3" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2015\pyRevit.addin"
==> Installed Extensions
Brooks & Scarpa | Type: Unknown | Repo: "" | Installed: "Z:\BIM & GRAPHIC Standards\03_Revit\Revit Ribbon\Brooks & Scarpa.extension"
==> Default Extension Search Path
C:\Users\Brooks Scarpa\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
Z:\BIM & GRAPHIC Standards\03_Revit\Revit Ribbon
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2024 | Version: 24.3.10.22 | Build: 20241105_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
2023.1.1 | Version: 23.1.10.4 | Build: 20221122_1550(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
2022.1.3 | Version: 22.1.30.34 | Build: 20220520_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
2020.2.9 | Version: 20.2.90.12 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
2019.2 (Full Install) | Version: 19.2.1.1 | Build: 20190108_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019\"
2015 Update Release 3 | Version: 15.0.207.0 | Build: 20140606_1530(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2015\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages

Additional context

We have custom pyRevit extension that is used by the office. When one of the pushbuttons from the extension are pressed and then canceled out, Revit crashes. This only happens on the problem computer, while the other computers handle the extension without issue.

@sergeykahn sergeykahn added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Jan 14, 2025
@jmcouffin
Copy link
Contributor

Start by removing the custom extensions search path
It should work.
I think one of your extension .stack folder is malformed as the message says, 2 to 3 pushbutton per stack top.
Re enable your custom extensions path

Regarding the button that crashes upon exit, we would need the complete pushbutton folder to test it

@jmcouffin jmcouffin added Extensions Issues related to pyRevit extensions [subsystem] Extension Commands Issues related to pyRevit extension commands [subsystem] labels Jan 15, 2025
@sanzoghenzo
Copy link
Contributor

From your previous output we could't see the installed pyrevit version, one of the Registered Clones section should list the path to the pyRevit folder.

What version did you install and how (normal admin installer or via CLI)?

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] Extension Commands Issues related to pyRevit extension commands [subsystem] Extensions Issues related to pyRevit extensions [subsystem]
Projects
None yet
Development

No branches or pull requests

3 participants