Sprite.Create is not working

void OnPostprocessTexture(Texture2D texture)
{
GameObject go = new GameObject(“TEST”);
SpriteRenderer sr = go.AddComponent();

	sr.sprite = Sprite.Create(texture, new Rect(0,0,500,500), new Vector2 (0.5f, 0.0f));
}

The above sample code does not work properly. The sprite does not point to any Sprite texture. The SpriteRenderer’s sprite points to none in the Inspector. However it seems like the data was valid while walking through the code. What is the problem here?

Rect rect = new Rect(0, 0, 8, 8); ==>> use 8x8 or as in ur error like 64x64 then
Rect rect = new Rect(0, 0, 64, 64);
ArgumentException: Could not create sprite (0.000000, 0.000000, 64.000000, 64.000000) from a 8x8 texture.

fbpic.sprite = Sprite.Create(result.Texture, rect, new Vector2(0f, 0f), 125);