Hey there! I'm also just starting to write homebrew for 3DS and i used an old example that doesn't work with newer versions of ctrulib. It was a problem with the initialzation of the framebuffers.
I guess you are using gfxInit(some format, some format, bool) in your main() function. Unless...