Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

External Command Causing revit to crash

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Charles.Stokes
987 Views, 3 Replies

External Command Causing revit to crash

Hello

Working on my first app that can really do something, when I was trying to activate the command in revit it gave me a massive exception and the whole of revit terminated. I grapped part of the Jrn file where I executed the command. Can anyone translate what went wrong, or at least most likely scenario?

 

 Jrn.RibbonEvent "Execute external command:9b849945-ca24-425d-a266-643c74e5c19d:SheetCreatorApp.SheetCreatorApp"
' 1:< TaskDialog "Please select the Excel sheet: "
'CommonButtons : Cancel
'Command Links:
'1001 : Browse
'DefaultButton : 1001 
'  1.314886!!! 2:!!!BIG_GAP API External Command Time 
' 1:< ::33:: Delta VM: Avail -6 -> 134182610 MB, Used +1 -> 726 MB, Peak +54 -> 786 MB; RAM: Avail +6 -> 9320 MB, Used +3 -> 823 MB, Peak +48 -> 871 MB 
' 1:< Exception occurred 
'C 20-Jan-2017 14:51:18.451;   1:< ExceptionCode=0xc0000005 ExceptionFlags=0x00000000 ExceptionAddress=0000000066E56A20 
' 1:<   System (MB) [Available /  Total ]  [Revit Memory Usage (MB)   ] 
' 1:< RAM Statistics:     9320 /    16325       823=InUse      871=Peak  
' 1:< VM  Statistics: 134182611 / 134217727       726=InUse      786=Peak  
'  5.553091!!! 2:!!!BIG_GAP API External Command Time 
' 0:< [00002514]QueueMinder stopped 
' 2:< ::33:: Delta VM: Avail +1 -> 134182611 MB, Used 726 MB; RAM: Avail +126 -> 9447 MB, Used 823 MB 
'C 20-Jan-2017 14:51:19.259;   2:< OMICRON finished virtualization services  
'C 20-Jan-2017 14:51:19.259;   2:< OMICRON finished worker services  
'C 20-Jan-2017 14:51:19.260;   2:< OMICRON erased queues  
'  0.804686    2:<<<Terminating Slave Processes 
' 1:< Unconverted MessageBox "An unrecoverable error has occurred.  The program will now be terminated.  All of your data has been recently saved, so there is no need to create recovery files." 
' 1:< ::33:: Delta VM: Avail -21 -> 134182591 MB, Used 726 MB; RAM: Avail -10 -> 9437 MB, Used 823 MB 
'C 20-Jan-2017 14:51:26.672;   1:< program terminated 

 

 

 

Anything is appreciated, thanks.

3 REPLIES 3
Message 2 of 4

I do not think anyone will be able to tell much from this info.

 

If this is your first app, I would suggest ditching it and starting fresh from scratch with your second app.

 

Follow best practices.

 

Follow the 100+ SDK samples provides.

 

Work through the getting started material:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

The most effective way to get started programming with the Revit API is to work through the step-by-step instructions provided by the DevTV and My First Revit Plugin video tutorials.

 

Do not crash!

 

There is no need for that whatsoever.

 

Just follow the rules and all will be well.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Okay thanks a lot
Message 4 of 4
longt61
in reply to: Charles.Stokes

I have encountered the same problem with a description "BIG_GAP API External Command Time" at the end of the Journal file. I just created an External command to automatically create dimension for beam, column, grid... in a certain views. and this always happens in a particular section view. 

Except from 4 CAD references that con not be found in the project, there is nothing that seems to be out of place. And my logic is kind of straight forward:

1. show UI for options

2. open all required views

3. get  planar face references and create dimensions

4. close all opened views

No tricks, no external events, idling events.... The command just executed for about 2 mins using nearly 2Gb of RAM (I still have almost 20GB of RAM left) then Revit exited. What is possibly the cause here? 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community