hello my understanding is that you have a valid permit but expired visa. Right? If you have a valid permit, you can apply for a visa at any time. It does not matter if the visa is already expired. To maintain your legal stay in Canada, you need a valid permit. Visa is only for re-entry.