Call an immigration attorney (or Canada's Equivilant or call Canadian Immigration) in Canada, instead of relying on a bunch of pilots on a web forum.
Having said that: 1. you were not convicted, no problem (my opinion). 2. These Canadian laws you're thinking of only relate to felonies, I doubt that trespassing is a felony.