Soft Crashes on DeleteObj() command calls

33 views
Skip to first unread message

Alok Gandhi

unread,
May 14, 2012, 4:33:38 PM5/14/12
to soft...@listproc.autodesk.com
It has been a long time since I am dealing with this bug. Sometimes, when I call the Application.DeleteObj() command in python (though not sure for Java or VB), it crashes. This is not a consistent behaviour and is hence it is not easy to repro.  Has anyone else dealt with this issue before ?

--

Xavier Lapointe

unread,
May 14, 2012, 4:40:34 PM5/14/12
to soft...@listproc.autodesk.com
Not really helping, but i remember we had this issue 1 or 2 years ago. Mostly happens on big selections right?

If you can reproduce the crash consistently over a set of objects, maybe you could try the following approaches:
  • Loop over the selection and delete them one by one
  • Slice the selection in group of N objects
  • xsi.Desktop.RedrawUI() or xsi.SceneRefresh()
    • These 2 are wild guesses, but I remember solving a consistent scene crashes while doing batch operations and those solved it.

Good luck (And hopefully they can solve this.)


 

2012/5/14 Alok Gandhi <alok.ga...@gmail.com>

It has been a long time since I am dealing with this bug. Sometimes, when I call the Application.DeleteObj() command in python (though not sure for Java or VB), it crashes. This is not a consistent behaviour and is hence it is not easy to repro.  Has anyone else dealt with this issue before ?

--




--
Xavier

Alok Gandhi

unread,
May 14, 2012, 4:52:14 PM5/14/12
to soft...@listproc.autodesk.com
It is not because of a big selection. For me it usually happens with a model selected. Of course there is a lot of stuff under the model itself. In this particular case the model has a camera and few properties.

Alok Gandhi

unread,
May 14, 2012, 4:52:55 PM5/14/12
to soft...@listproc.autodesk.com
I will try xsi.Desktop.RedrawUI() or xsi.SceneRefresh() thanks Mr. X

Xavier Lapointe

unread,
May 14, 2012, 4:54:54 PM5/14/12
to soft...@listproc.autodesk.com
Also, are these referenced or local models? Might be a delta issue ..

2012/5/14 Alok Gandhi <alok.ga...@gmail.com>

I will try xsi.Desktop.RedrawUI() or xsi.SceneRefresh() thanks Mr. X



--
Xavier

Alok Gandhi

unread,
May 14, 2012, 4:56:57 PM5/14/12
to soft...@listproc.autodesk.com
All local Models, but hey xsi.Desktop.RedrawUI() seems to work ! yay ! just need to do run this quite a few times to actually know it is working, thanks again !

Xavier Lapointe

unread,
May 14, 2012, 4:59:51 PM5/14/12
to soft...@listproc.autodesk.com
Holy crap. Touching wood.

I'm wondering why RedrawUI is necessary in such cases (if it actually helps and this is not a coincidence). The other time was something with exporting Render Archive ..

Meh.


2012/5/14 Alok Gandhi <alok.ga...@gmail.com>

All local Models, but hey xsi.Desktop.RedrawUI() seems to work ! yay ! just need to do run this quite a few times to actually know it is working, thanks again !



--
Xavier

Alok Gandhi

unread,
May 14, 2012, 5:03:47 PM5/14/12
to soft...@listproc.autodesk.com
I guess the redrawUI somehow cleans the internal scene graph as well (weird though)
Reply all
Reply to author
Forward
0 new messages