pyrevitlabs / pyRevit

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

Revit Crashes Loading pyRevit - SentinelOne Related #1055

Closed zeepauls closed 2 years ago

zeepauls commented 3 years ago

Hello, I have tried installing for the first time today the following version of pyRevit. 4.8.2, 4.7.6, 4.6.24.

When I started Revit 2019, I have had two scenarios. Either the Revit splash page appears and then Revit crashed, with no error message. Or, the pyRevit sequence appears, then the Revit screen where I can select a project to open is displayed followed by Revit crashing with no error message.

I have attached my error logs below. Thank you for your advice.

pyRevit_2019_22916_runtime.log pyRevit_2019_681c8dbeb6c6d8a3_PyRevitLabs.PyRevit.Runtime.log

mmcgowen23 commented 3 years ago

I am still having this issue as well. I haven't had any luck on any versions since 4.7.5. Revit load screen appears and then disappears after 15-20s.

mmcgowen23 commented 3 years ago

My previous issue was #884

eirannejad commented 3 years ago

Would you mind sending a screenshot of the tabs you have on Revit UI? pyRevit seems to fail while trying to load the UI. I'm trying to see if there is any tab with special characters in the name maybe

mmcgowen23 commented 3 years ago

image

eirannejad commented 3 years ago

I think the culprit is Enscape™ Would you mind disabling enscape and see if pyRevit loads?

mmcgowen23 commented 3 years ago

No, it still didn't load.

eirannejad commented 3 years ago

@mmcgowen23 Wait so in the screenshot I can see the pyRevit tabs on the end. You mean they're empty?!

karim070505 commented 3 years ago

Similar issue I am facing for Revit 2020, Revit opens originally after opening a project revit crashes. I have no issue for Revit 2019 and 2021. I installed V4.8.4 but still now luck. 2020-12-04 16_51_50-Autodesk Revit 2020 2 -  RAC_basic_sample_project rvt - Sheet_ A001 - Title Shee

eirannejad commented 3 years ago

Would you mind closing all Revits and running pyrevit caches clear --all on the command line? this will clear pyRevit caches and then run Revit 2020 again

eirannejad commented 3 years ago

v4.8.5 is published. Would you mind testing this? If it didn't work try attaching pyRevit using the custom IronPython engine pyrevit attach master default --installed

karim070505 commented 3 years ago

I installed v4.8.5 and now it crashes all revit versions. and I do not know the other methode of installation. Is there any instruction on how to attach pyRevit using the custom IronPythone engine?

eirannejad commented 3 years ago

Hmm. Is there any error popups? or crashes with no errors? You can use the pyrevit attach master default --installed on the command line to re-attach pyRevit using the new custom engine

karim070505 commented 3 years ago

No error message or popups. right away after the revit load it crashes. and even do not let me open a project.

On Thu, 11 Feb 2021 at 10:52, Ehsan Iran-Nejad notifications@github.com wrote:

Hmm. Is there any error popups? or crashes with no errors? You can use the pyrevit attach master default --installed on the command line to re-attach pyRevit using the new custom engine

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1055#issuecomment-777595314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMZYFPBNH6BUOICMSIWOGLS6P4MXANCNFSM4TNCSFTQ .

eirannejad commented 3 years ago

Do you see any log files under %APPDATA%/pyRevit/20XX ? If yes would you mind sharing?

karim070505 commented 3 years ago

In order to work, I uninstalled pyRevit from my computer completely. I do not see any log file. I can reinstall PyRevit and send you the log file this afternoon or tomorrow.

On Thu, 11 Feb 2021 at 12:28, Ehsan Iran-Nejad notifications@github.com wrote:

Do you see any log files under %APPDATA%/pyRevit/20XX ? If yes would you mind sharing?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1055#issuecomment-777660882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMZYFJERL32LGH7NFIMQJDS6QHURANCNFSM4TNCSFTQ .

mmcgowen23 commented 3 years ago

Sorry we have been swamped lately, I’ll try and get in and test pyrevit next week.

Thanks

Matt McGowen Project Coordinator

Schwarz Hanson Architects 2570 River Park Plaza #100 Fort Worth, TX 76116 817.377.3600

NOTICE: In response to CDC guidelines regarding COVID-19, Schwarz-Hanson staff may be working remotely. We will continue to meet on site as needed. If I am unavailable at the main office phone I will still be available via email during normal office hours.

From: Ehsan Iran-Nejad notifications@github.com Sent: Thursday, February 11, 2021 11:29 AM To: eirannejad/pyRevit pyRevit@noreply.github.com Cc: Matt McGowen matt@schwarz-hanson.com; Mention mention@noreply.github.com Subject: Re: [External] [eirannejad/pyRevit] Cannot Load pyRevit - Revit Crashes on Startup (#1055)

Do you see any log files under %APPDATA%/pyRevit/20XX ? If yes would you mind sharing?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eirannejad_pyRevit_issues_1055-23issuecomment-2D777660882&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=wVADjXLugOmbcFCjVdr8TDQ0R0OwdKBsXWh3H_N6c6A&m=E-z6PjcvQlD6rub5y77Qt5IcW9Ul2cJM0JihoRtQwCM&s=d8YWPFOzl5Kw5UQIE-PzGoirFVJ3-Dpf6qY0yBga4EM&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_APJBAPDLWXL5Z6WQSUXR6ATS6QHURANCNFSM4TNCSFTQ&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=wVADjXLugOmbcFCjVdr8TDQ0R0OwdKBsXWh3H_N6c6A&m=E-z6PjcvQlD6rub5y77Qt5IcW9Ul2cJM0JihoRtQwCM&s=ePl1IJeOWrkWzA6ZbeR_Yf_BlGbk9erWT7vun5hNPw0&e=.

ChrisCrosley commented 3 years ago

I am also having this issue with all versions of Revit with v4.8.5. This is my first install of pyRevit on this machine. I have run pyrevit attach master default --installed as suggested above.

I also have no log files in appdata

ChrisCrosley commented 3 years ago

One potentially relevant difference between my machine and a co-worker who has successfully installed pyRevit, is that I have Python 3.8 installed.

karim070505 commented 3 years ago

Hello Ehsan,

I just installed pyRevit 4.8.6 and have the same issue with all revit versions. Please find attached the log file.

Regards,

On Thu, 25 Feb 2021 at 10:49, Chris Crosley @.***> wrote:

One potentially relevant difference between my machine and a co-worker who has successfully installed pyRevit, is that I have Python 3.8 installed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1055#issuecomment-786001195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMZYFO3CW3SRRWFSUKMLF3TAZWSLANCNFSM4TNCSFTQ .

n8mulder commented 3 years ago

I've had this issue since 4.7.5 (issue 884). 4.7.5 is the only version that works. any release after 4.7.6 makes Revit crash on open without error (Revit 2021-2018)

eirannejad commented 3 years ago

@n8mulder Would you mind running Revit with pyRevit 4.8.6 and let it crash. Then send me the journal file for the last session?

n8mulder commented 3 years ago

Journal file attached. I'm seeing API Errors/assembly conflicts...I'll let you interpret the meaning. Thanks! journal.0146.txt

eirannejad commented 3 years ago

Ok great. Thanks. I published 4.8.7 yesterday with some runtime changes. It might be worth checking that one out as well.

n8mulder commented 3 years ago

I just tried 4.8.7...no change :(

journal.0148.txt

mmcgowen23 commented 3 years ago

Latest Log after trying 4.8.7. Tried it after running pyrevit attach master default --installed, still crashed. Also tried it after installing python as well to no avail.

pyRevit_2019_73f7d9a4dfca75b5_PyRevitLabs.PyRevit.Runtime.log

pyRevit_2019_c3034da718573c09_PyRevitLabs.PyRevit.Runtime.log

ChrisCrosley commented 3 years ago

I can confirm Revit 2021 still crashes on loading with v4.8.8 installed. Even after running pyrevit attach master default --installed

Here are the journal file and pyRevit log

pyRevit_2021_901b565023656557_PyRevitLabs.PyRevit.Runtime.log

journal.0301.txt

Here's where things appear to go south in the log

' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.WindowsAPICodePack assembly
'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System.Windows.Forms of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System.Core of version 3.5.0.0 conflicts with same preloaded module of version 4.0.0.0 } 
' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.WindowsAPICodePack.Shell assembly
'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System.Windows.Forms of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module PresentationFramework of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module WindowsBase of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module PresentationCore of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System.Drawing of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System.Core of version 3.5.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module WindowsFormsIntegration of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0 } 
' 0:< API_ERROR { : Assembly version conflict in some references in MadMilkman.Ini assembly
'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0
'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 } 
' 0:< ::41:: Delta VM: Avail -28 -> 134211335 MB, Used +2 -> 413 MB; RAM: Avail -4 -> 18028 MB, Used +3 -> 627 MB, Peak +1 -> 630 MB 
' 0:< GUI Resource Usage GDI: Avail 9808, Used 192, User: Used 191 
' 0:< API_ERROR { : Assembly version conflict in some references in System.Reflection.Metadata assembly
'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } 
' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis assembly
'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } 
' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis.CSharp assembly
'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } 
' 0:< ::41:: Delta VM: Avail -11 -> 134211325 MB, Used +2 -> 415 MB; RAM: Avail -4 -> 18024 MB, Used +4 -> 632 MB, Peak +2 -> 632 MB 
' 0:< GUI Resource Usage GDI: Avail 9808, Used 192, User: Used 191 
' 0:< API_ERROR { : Assembly version conflict in some references in pyRevitLabs.Common assembly
'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } 
' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis.VisualBasic assembly
'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } 
n8mulder commented 3 years ago

Same here. I keep trying every release...but only 4.7.6 continues to work.

On Wed, May 19, 2021 at 3:13 PM Chris Crosley @.***> wrote:

I can confirm Revit 2021 still crashes on loading with v4.8.8 installed. Even after running pyrevit attach master default --installed

Here are the journal file and pyRevit log

pyRevit_2021_901b565023656557_PyRevitLabs.PyRevit.Runtime.log https://github.com/eirannejad/pyRevit/files/6511305/pyRevit_2021_901b565023656557_PyRevitLabs.PyRevit.Runtime.log

journal.0301.txt https://github.com/eirannejad/pyRevit/files/6511295/journal.0301.txt

Here's where things appear to go south in the log

' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.WindowsAPICodePack assembly 'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System.Windows.Forms of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System.Core of version 3.5.0.0 conflicts with same preloaded module of version 4.0.0.0 } ' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.WindowsAPICodePack.Shell assembly 'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System.Windows.Forms of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module PresentationFramework of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module WindowsBase of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module PresentationCore of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System.Drawing of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System.Core of version 3.5.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module WindowsFormsIntegration of version 3.0.0.0 conflicts with same preloaded module of version 4.0.0.0 } ' 0:< API_ERROR { : Assembly version conflict in some references in MadMilkman.Ini assembly 'Addin's module mscorlib of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 'Addin's module System of version 2.0.0.0 conflicts with same preloaded module of version 4.0.0.0 } ' 0:< ::41:: Delta VM: Avail -28 -> 134211335 MB, Used +2 -> 413 MB; RAM: Avail -4 -> 18028 MB, Used +3 -> 627 MB, Peak +1 -> 630 MB ' 0:< GUI Resource Usage GDI: Avail 9808, Used 192, User: Used 191 ' 0:< API_ERROR { : Assembly version conflict in some references in System.Reflection.Metadata assembly 'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } ' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis assembly 'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } ' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis.CSharp assembly 'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } ' 0:< ::41:: Delta VM: Avail -11 -> 134211325 MB, Used +2 -> 415 MB; RAM: Avail -4 -> 18024 MB, Used +4 -> 632 MB, Peak +2 -> 632 MB ' 0:< GUI Resource Usage GDI: Avail 9808, Used 192, User: Used 191 ' 0:< API_ERROR { : Assembly version conflict in some references in pyRevitLabs.Common assembly 'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 } ' 0:< API_ERROR { : Assembly version conflict in some references in Microsoft.CodeAnalysis.VisualBasic assembly 'Addin's module System.Collections.Immutable of version 1.2.3.0 conflicts with same preloaded module of version 1.2.2.0 }

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1055#issuecomment-844436017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI247SNDZFQT3BU5UZS7GWDTOQLV3ANCNFSM4TNCSFTQ .

franchevich commented 3 years ago

Installing pyrevit 4.8.8 will crash all my revit versions installed (r22 and r20) any news on these crashings?

franchevich commented 3 years ago

The journal from %appdata%pyrevit/2022 Define: REVIT2022;REVIT2022_0 Reference: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0b77a5c561934e089\System.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0b77a5c561934e089\System.Core.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0b77a5c561934e089\System.Xaml.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Web.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0b77a5c561934e089\System.Xml.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0b77a5c561934e089\System.Numerics.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Drawing.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0b77a5c561934e089\System.Windows.Forms.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.031bf3856ad364e35\System.Web.Extensions.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.031bf3856ad364e35\PresentationCore.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.031bf3856ad364e35\PresentationFramework.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.031bf3856ad364e35\WindowsBase.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsFormsIntegration\v4.0_4.0.0.031bf3856ad364e35\WindowsFormsIntegration.dll Reference: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0b03f5f7f11d50a3a\Microsoft.CSharp.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\IPY277\Microsoft.Dynamic.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\IPY277\Microsoft.Scripting.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\IPY277\IronPython.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\IPY277\IronPython.Modules.dll Reference: C:\Program Files\Autodesk\Revit 2022\RevitAPI.dll Reference: C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll Reference: C:\Program Files\Autodesk\Revit 2022\AdWindows.dll Reference: C:\Program Files\Autodesk\Revit 2022\UIFramework.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\IPY277\pyRevitLoader.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.Common.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.CommonWPF.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.MahAppsMetro.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.NLog.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.TargetApps.Revit.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.PyRevit.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\pyRevitLabs.Emojis.dll Reference: C:\Program Files\Autodesk\Revit 2022\Xceed.Wpf.AvalonDock.dll Reference: C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\bin\engines\CPY385\pyRevitLabs.PythonNet.dll C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\ScriptConsoleUtils.cs(68,50): warning CS0618: 'IndependentTag.TaggedLocalElementId' is obsolete: 'This property is deprecated in Revit 2022 and will be removed in a later version of Revit. We suggest you use the GetTaggedLocalElementIds() method instead.' C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\EventTelemetry.cs(137,27): warning CS0618: 'PrintParameters.UserDefinedMarginX' is obsolete: 'This property is obsolete. Use OriginOffsetX instead.' C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\EventTelemetry.cs(138,27): warning CS0618: 'PrintParameters.UserDefinedMarginY' is obsolete: 'This property is obsolete. Use OriginOffsetY instead.' C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\UpdaterListener.cs(3,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\UpdaterListener.cs(4,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\UpdaterListener.cs(5,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\ScriptIO.cs(4,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\CLREngine.cs(10,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\CLREngine.cs(19,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\CLREngine.cs(11,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\EventHandling.cs(2,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\EventTelemetry.cs(7,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\EventHandling.cs(11,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\ScriptTelemetry.cs(4,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\UpdaterListener.cs(2,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\UpdaterListener.cs(8,1): hidden CS8019: Unnecessary using directive. C:\Users\JuanCarlosf\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\runtime\ScriptTelemetry.cs(6,1): hidden CS8019: Unnecessary using directive.

franchevich commented 3 years ago

journal.0042.txt journal.0042.worker1.log

franchevich commented 3 years ago

Revit will run again after removing pyrevit...

ChrisCrosley commented 3 years ago

On my machine, I think that this bug may be caused by SentinelOne terminating Revit when it's trying to load the pyRevit add-in.

I'm going to try to get IT to look at it this week and I'll post an update.

We just had a very similar issue with Ladybug components crashing Rhino/Grasshopper - which also uses Python and runs from a local user folder - that was resolved by whitelisting them in SentinelOne.

franchevich commented 3 years ago

I'm trying in another computer w/o SentinelOne and is up and running, thanks for the tip Chris...!!!

ChrisCrosley commented 3 years ago

Update: whitelisting Revit and pyRevit with SentinelOne did resolve the issue!

n8mulder commented 3 years ago

This is promising news. Our IT uses SentinelOne. pyRevit was added as an exclusion and the file hash extracted (pyRevit 4.8.8). However, Revit continues to crash/close on open with pyRevit installed. Can you provide detailed instructions on what you did to get it fixed? Do both pyRevit and Revit need to be excluded/whitelisted?

Thanks!

On Mon, Jun 21, 2021 at 8:27 PM Chris Crosley @.***> wrote:

Update: whitelisting Revit and pyRevit with SentinelOne did resolve the issue!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1055#issuecomment-865452330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI247SLAKQTRL36FY4S3BFDTT7RHRANCNFSM4TNCSFTQ .

ChrisCrosley commented 3 years ago

Yes, we also had to add all versions of Revit as well.

n8mulder commented 3 years ago

Great news! SentinelOne was the issue for us as well! Interestingly it was not generating alerts that it was blocking it so presumably it went undetected this whole time. We excluded the paths for pyRevit and all Revit versions.

Thanks @ChrisCrosley!

eirannejad commented 3 years ago

Great to know! Thank you!

Should this be closed?

unevenload commented 3 years ago

Chris or n8mulder- Can you share the paths you whitelisted? @ChrisCrosley @n8mulder

ChrisCrosley commented 3 years ago

you need all Revit versions and the pyRevit AppData folder, so:

C:\Program Files\Autodesk\Revit 2020\Revit.exe C:\Program Files\Autodesk\Revit 2021\Revit.exe [user]\AppData\Roaming\pyRevit\

unevenload commented 3 years ago

Thanks so much! @ChrisCrosley

guidelagui commented 1 year ago

Currently testing SentinelOne, InProcessClient64.dll look like not working with some software. I think whitelisting folder is not a good idea, this can be a king of precise attack for AEC firms. Software hash is better but need to be maintain for each update. No go for us.

SinnwellR commented 1 year ago

Can anyone give me some specific instructions on whitelisting pyRevit in SentinelOne? Because it doesn't create an Incident or Alert, I can't easily add an exception for it. I don't want to exclude entire folders, I need to be able to create a hash exception and then I will limit that to the group of folks who run pyRevit. I also opened a bug report with pyRevit just in case something can be done to change whatever the suspect behavior SentinelOne doesn't like. My guess is that other EDR/XDR products might also have issues with it so that might be a better fix if it is reasonable.

guidelagui commented 1 year ago

We test different solution and because sentinel one interfer with pyrevit interfer with other product that use specific function is the graphic card we select a different solution named crowdstrike. Work really well.

You can whitelist a folder, only sale people will tell you that, never a good thing do do in security especially if it’s the main production software it can be specifically target in AEC. Too much folder to do. You can whitelist the application hash manually for all software interacting with pyrevit and Revit but hard to maintain for each patch autodesk release…

Message ID: @.***>