MAME current can do funny things unless the core is set to use “alternate renderer”, depending on the game you are trying to run.
What game were you trying to load?
Forever is kind of vague. The shader has a lot going on and, unlike Retroarch in general, can have some beefy system requirements. The Advanced presets, even on a fast computer, will take longer to load than you might expect.
This isn’t unusual, other shaders with a lot of parameters, like Royale, can take some time to compile.