This sounds like a bug, but since there are plans to deprecate text backend maybe you should just pickle the trace instead.