Hi. From what yu said, nothing crashes but music pauses when the lock screen is on. Let me know which device you are using together with the android version and spotify version and I'll suggest the settings you need to adjust to stop this happening.
Hey there you,
Yeah, you! 😁
Welcome - we're glad you joined the Spotify Community!
While you here, let's have a fun game…