bpy.ops.transform.rotate cause Crash. Did I miss something?

How to work (in Blender 2.64):

http://bbs.blendercn.org/data/attachment/forum/201211/24/225027ieiia53ehgfslidn.gif

Bad news is “bpy.ops.transform.rotate” will cause Crash on Blender 2.65+(include 2.67.1)

Script:https://github.com/nirenyang/blender_mesh_match_align_with_pairs_points_yi

The crash codes in lines(221, 245, 293).

Any help will be Great thanks!

Original:
http://bbs.blendercn.org/forum.php?mod=viewthread&tid=657

Another Gif tutorial (2.64):

http://bbs.blendercn.org/data/attachment/forum/201211/30/131014jirap6p5uby26aur.gif

Have you read the Gotchas?
You may be operating upon stale data.

I think “bpy.ops.transform.rotate” is not a stale Function.
cuz This function is working right in console.
and “bpy.ops.transform.resize” is OK.
And if I remove them form the addon. Blender would not crash.

Based that I believe Something I’ve been missed When blender update.

I’ll read read the Gotchas

Thanks.

Addon is working in rev57336. Great Thanks for Sergey Sharybin!
So. I can put it into
Released Scripts and Themes

http://www.blenderartists.org/forum/showthread.php?296227-Parts-aligning-Points-pairs-match(align)&p=2397879#post2397879