glDrawArrays(GL_QUADS, 0, 4); crash

Not having an active GL context.
Enabled vertex attribute arrays that are not bound (or are bound incorrectly).
…all kinds of things.

You haven’t given us much to go on here.

Please read The Forum Posting Guidelines for tips in composing your post. This’ll increase the chance that you get useful feedback.