There is not enough information on the problem.

The operation should succeed on the private member vector as well.

Check or post the backtrace of the crash.

Cheers,
_