There are some medical conditions which may predispose you to avn.
Also, it may be related to medication. Oa is developmental and probably independent from avn. Medication may give symptomatic relief, but at some point you may be facing surgery since both problems are progressive. Get a medical checkup assess your current health status and guide you through the process.