# Rive error

**URL:** <https://forum.defold.com/t/rive-error/79276>\
**Category:** Bugs\
**Created:** [December 26, 2024, 10:33pm UTC](https://forum.defold.com/t/rive-error/79276 "2024-12-26T22:33:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [December 26, 2024, 10:33pm UTC](https://forum.defold.com/t/rive-error/79276/1 "2024-12-26T22:33:13Z")

</div>

I would like to use Rive in my game. I just added the rive extension dependency, but the game now crashes with the following error:

> [mvk-error] VK\_ERROR\_INITIALIZATION\_FAILED: Render pipeline compile failed (Error code 2):  
> Link failed: The type of fragment input user(locn2) does not match the type of the corresponding vertex shader output.  
> ERROR:GRAPHICS: Vulkan Error (../src/vulkan/graphics\_vulkan.cpp:1615) VK\_ERROR\_INITIALIZATION\_FAILED  
> Assertion failed: (0), function GetOrCreatePipeline, file graphics\_vulkan.cpp, line 1615.

I am using a Mac, with Defold 1.9.6 and [https://github.com/defold/extension-rive/archive/main.zip](https://github.com/defold/extension-rive/archive/main.zip). I have also set OpenGL Version Hint to “Highest version available”.

Any help?

---

<div class="post-metadata">

**Author:** ![MasterMind](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mastermind/32/31839_2.png) [@MasterMind](https://forum.defold.com/u/MasterMind)\
**Post date:** [December 26, 2024, 10:55pm UTC](https://forum.defold.com/t/rive-error/79276/2 "2024-12-26T22:55:56Z")

</div>

Did you also set the Rive renderer in the game.project \> bootstrap \> render?

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [December 26, 2024, 10:57pm UTC](https://forum.defold.com/t/rive-error/79276/3 "2024-12-26T22:57:24Z")

</div>

No, I just added the Rive extension. I have no Rive contents, just my game as before.

Also, the Rive defold sample project works fine.

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [December 27, 2024, 9:33am UTC](https://forum.defold.com/t/rive-error/79276/4 "2024-12-27T09:33:55Z")

</div>

You have issues with your shaders, they are not compatible with metal/vulkan. The error says that the input and output doesn’t match. So check that your varyings are correct

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [December 27, 2024, 11:16am UTC](https://forum.defold.com/t/rive-error/79276/5 "2024-12-27T11:16:38Z")

</div>

Thansk @jhonny.goransson

I forced the use of Vulkan with an appmanifest and I get the same error without the Rive extension. I will try and find these mismatches in my shaders and report them here.

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [December 27, 2024, 11:35am UTC](https://forum.defold.com/t/rive-error/79276/6 "2024-12-27T11:35:08Z")

</div>

@jhonny.goransson  
I am now able to run the game with Vulkan BUT:

1. There was no mismatch in my shaders. I have just reordered the varyings in each .vp and .fp pair so that they are defined in the same order. (!)

2. My models are not showing anymore in the game… Note that some of them were already not showing in the editor.

What should I do?

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [December 27, 2024, 11:42am UTC](https://forum.defold.com/t/rive-error/79276/7 "2024-12-27T11:42:30Z")

</div>

Can you share the project or the shaders with me? I have no idea why it wouldn’t work

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [December 27, 2024, 11:44am UTC](https://forum.defold.com/t/rive-error/79276/8 "2024-12-27T11:44:03Z")

</div>

@jhonny.goransson Many many thanks!

I will prepare a minimal project with only a shader and a model and send it to you.
