OnItemAdded, OnItemRemoved, and "suspended stacks"

Post » Tue Dec 11, 2012 8:46 pm

To those who use the events OnItemAdded () and OnItemRemoved () on the player...
How do you work around the problem of "suspended stacks" when ALL of your inventory is removed IN ONE GO or when A WHOLE STACK of items are added IN ONE GO?

What happens in my mods:
When you lose all your inventory (e.g. Delphine removes all your inventory before you infiltrate the Thalmor),
I get these errors in my logs. Here is my log from line 80580. And these errors appear to the end at about line 94904 - when I quit the game:
Spoiler
[12/12/2012 - 01:23:53AM] Suspended stack count is over our warning threshold, dumping stacks:[12/12/2012 - 01:23:53AM] VM is freezing...[12/12/2012 - 01:23:53AM] VM is frozen[12/12/2012 - 01:23:53AM] Dumping stack 3788739:[12/12/2012 - 01:23:53AM] 	Frame count: 0 (Page count: 0)[12/12/2012 - 01:23:53AM] 	State: Waiting on other stack for call (Freeze state: Freezing)[12/12/2012 - 01:23:53AM] 	Type: Normal[12/12/2012 - 01:23:53AM] 	Return register: None[12/12/2012 - 01:23:53AM] 	Has stack callback: No[12/12/2012 - 01:23:53AM] 	Stack trace:[12/12/2012 - 01:23:53AM] 		[ (0010742E)].FXCameraAttachScript.OnTriggerLeave() - (requested call)[12/12/2012 - 01:23:53AM] 			[param 0]: [ObjectReference < (00000014)>][12/12/2012 - 01:23:53AM] Dumping stack 3789048:[12/12/2012 - 01:23:53AM] 	Frame count: 0 (Page count: 0)[12/12/2012 - 01:23:53AM] 	State: Waiting on other stack for call (Freeze state: Freezing)[12/12/2012 - 01:23:53AM] 	Type: Normal[12/12/2012 - 01:23:53AM] 	Return register: None[12/12/2012 - 01:23:53AM] 	Has stack callback: No[12/12/2012 - 01:23:53AM] 	Stack trace:[12/12/2012 - 01:23:53AM] 		[ (0010742E)].FXCameraAttachScript.OnTriggerEnter() - (requested call)[12/12/2012 - 01:23:53AM] 			[param 0]: [ObjectReference < (00000014)>][12/12/2012 - 01:23:53AM] Dumping stack 3789264:[12/12/2012 - 01:23:53AM] 	Frame count: 0 (Page count: 0)[12/12/2012 - 01:23:53AM] 	State: Waiting on other stack for call (Freeze state: Freezing)[12/12/2012 - 01:23:53AM] 	Type: Normal[12/12/2012 - 01:23:53AM] 	Return register: None[12/12/2012 - 01:23:53AM] 	Has stack callback: No[12/12/2012 - 01:23:53AM] 	Stack trace:[12/12/2012 - 01:23:53AM] 		[ (0010742E)].FXCameraAttachScript.OnTriggerLeave() - (requested call)[12/12/2012 - 01:23:53AM] 			[param 0]: [ObjectReference < (00000014)>]...
User avatar
naome duncan
 
Posts: 3459
Joined: Tue Feb 06, 2007 12:36 am

Post » Wed Dec 12, 2012 3:02 am

I just noticed AddInventoryEventFilter, RemoveAllInventoryEventFilters and RemoveInventoryEventFilter.
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am


Return to V - Skyrim