Crashes are an awesome thing when you got a debug log next to it.
Incredible stuff.
As you can see, the crashes happends on line 6087 in GenerateVendorItem, Line 1769 in ProcessRegenItem, Line 3133 in CreateItem and line 5099 in Process.
Either read the code and figure it out, or debug it...