Nu-refinement can not work

Continuing the discussion from Non-Uniform Refinement crashes after several iterations:

Continuing the discussion from Mask for refinement:

Anyone could apply some suggestions for me?
Thanks