My addin is causing "External component has thrown an exception" when opening workshared models in Revit 2023

My addin is causing "External component has thrown an exception" when opening workshared models in Revit 2023

Andekan
Participant Participant
1,582 Views
4 Replies
Message 1 of 5

My addin is causing "External component has thrown an exception" when opening workshared models in Revit 2023

Andekan
Participant
Participant
 

When my addin is loaded and I try to open a workshared model from the recent files splash screen and I choose to overwrite the current file I sometimes get this error: "External component has thrown an exception"

212299869-ec60c1f1-e95c-49fd-8c0e-76a45c101fe2[1].png

 

I get no exceptions while debugging and I only have this in the journal, with no other information:

 

 

18/01/2023 16:07:54.685 Dialog TaskDialog_Confirm_Create_New_Local
18/01/2023 16:07:56.713 Dialog TaskDialog_File_Name_In_Use
18/01/2023 16:07:59.052 Dialog 

 

 

 

I disabled every single other addin, even the built-in ones and the problem still happens, I tried with older versions of Revit and the problem does not occur, on Revit 2023 it doesn't occur all the time but out of 10 tries it will happen at least once or twice.

 

I have no idea how to debug this, I tried to suppress the DocumentOpening and DocumentOpened events from the addin and it still happens

 

The only information I found about this problem is this knowledge base article
which doesn't offer any useful information.

 

Any idea on how to find out more about this error?

 

1,583 Views
4 Replies
Replies (4)
Message 2 of 5

caroline.gitonga
Autodesk
Autodesk

Hi @Andekan

I see on the the article  suggests 2 solutions: Disabling addins and clean uninstallation and installation of Revit. Would you try the latter maybe and see if this issue could get resolved? A similar concern has been shared with us before and logged with Dev team. Meanwhile, I will re-log the issue again and see if there is an update or any insights as to why this is happening.

Carol Gitonga, Developer Advocacy and Support, ADN Open
Message 3 of 5

Andekan
Participant
Participant

I tried a fresh installation, following These instructions  and the problem still happened.

This was tried on various machines and all exhibit this problem.

Is there anything at all that can be done to find out what is crashing exactly?

Message 4 of 5

caroline.gitonga
Autodesk
Autodesk

Hi,

Could you please provide us with the detailed Revit journal file for a closer look ?
https://knowledge.autodesk.com/support/revit/troubleshooting/caas/sfdcarticles/sfdcarticles/Location... 
Revit journal files may contain some of your confidential information.
So please send the journal file to me via private message.

Carol Gitonga, Developer Advocacy and Support, ADN Open
Message 5 of 5

caroline.gitonga
Autodesk
Autodesk

Hi @Andekan,

I got responses from the dev team.
1. The journal excerpt posted below and the dialog image makes it look like the dialog is triggered by the LoadAutodeskFamily add-in, not the user's add-in. Specifically, this line:" ' [Jrn.ExternalEventExecution] Rvt.Attr.AddInId: 87a72273-3ab1-404e-b6fd-ee0f60ba0e1b Rvt.Attr.AddInName: Application LoadAutodeskFamily Rvt.Attr.AddInVersion: 23.0.11.19 Rvt.Attr.ExternalEventName: CEFRevitUtils.ExternalEventHandler Rvt.Attr.VendorDescription: Autodesk, www.autodesk.com Rvt.Attr.VendorId: ADSK' ".
You may try to disable this addin or further look into it.

2. This same issue was also reported during system testing and logged for further observation under REVIT-201446
Error "External component has thrown an exception" when attempting to create a new local and choosin... but was closed as we could not find a way to reproduce it and the reporter couldn't reproduce it either.

3. The issue have been reopened for further dig in.

I have not been able to reproduce this on my end too. I would request you to share a minimum reproducible case preferably source code  we could use as a hint to reproducing the exception. You may share through private messaging.

Carol Gitonga, Developer Advocacy and Support, ADN Open