# \[SOLVED\] Error executing Rive animation

**URL:** <https://forum.defold.com/t/solved-error-executing-rive-animation/77155>\
**Category:** Questions\
**Created:** [June 7, 2024, 6:57pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155 "2024-06-07T18:57:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_Rosati](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/matteo_rosati/32/36291_2.png) [@Matteo\_Rosati](https://forum.defold.com/u/Matteo_Rosati)\
**Post date:** [June 7, 2024, 6:57pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/1 "2024-06-07T18:57:32Z")

</div>

Hello there,  
I’m trying Rive so I have just created a blank project to do some tests.  
The Rive model i’m using is forked from [here](https://rive.app/community/files/10526-20090-college-student/), it’s a community file I’m using just for test.  
The version of the Rive extension I’m using is 2.2.0 and the Defold engine version I’m running is 1.8.1.  
The project is mostly empty, what I do have is:

- The main collection
- The main collection has a game object
- The game object has a rive model, and a script.

 ![immagine](https://forum-defold.b-cdn.net/uploads/default/original/3X/3/8/3868d8cc7ef3a63f9cf4a1f0b17683697b3a5f9c.png)

This is how the Rive model is configured.

Also, I am using the render script provided bu the Rive extension, as explained in the official doc.

The script only has an init function which starts the playback of the animation:

```lua
    function init(self)
    	local options = {
    		offset = 0.2, -- start 20% into the animation
    		playback_rate = 1.5, -- play the animation at 150% speed
    	}
    	
    	rive.play_anim("#rivemodel", "Timeline 1", go.PLAYBACK_ONCE_PINGPONG, options, function(self, message_id, message, sender)
    		print("Hello")
    	end)
    end

```

The code is pretty much copy-pasta from the guide.

I think it’s all correct, there should be no other steps from the guide, however when I try to run I get a fatal error:

```lua
ERROR:CRASH: CALL STACK:
    ERROR:CRASH: 0 0x7FF65B8BE560 dmCrash::GenerateCallstack D:\a\defold\defold\engine\crash\src\backtrace_win32.cpp:144
    ERROR:CRASH: 1 0x7FF65BCB6214 raise /tmp/job13365814682286171450/minkernel/crts/ucrt/src/appcrt/misc/signal.cpp:547
    ERROR:CRASH: 2 0x7FF65BCA601C abort /tmp/job13365814682286171450/minkernel/crts/ucrt/src/appcrt/startup/abort.cpp:71
    ERROR:CRASH: 3 0x7FF65BCA527C common_assert_to_stderr<wchar_t> /tmp/job13365814682286171450/minkernel/crts/ucrt/src/appcrt/startup/assert.cpp:186
    ERROR:CRASH: 4 0x7FF65BCA4D94 _wassert /tmp/job13365814682286171450/minkernel/crts/ucrt/src/appcrt/startup/assert.cpp:443
    ERROR:CRASH: 5 0x7FF65B6F21C0 dmRive::CompRiveGetComponent /tmp/job13365814682286171450/upload/defold-rive/src/comp_rive.cpp:190
    ERROR:CRASH: 6 0x7FF65B923650 dmGameObject::GetComponentUserDataFromLua D:\a\defold\defold\engine\gameobject\src\gameobject\gameobject_script.cpp:512
    ERROR:CRASH: 7 0x7FF65B992540 dmScript::GetComponentFromLua D:\a\defold\defold\engine\gamesys\src\gamesys\gamesys_script.cpp:114
    ERROR:CRASH: 8 0x7FF65B716550 dmRive::RiveComp_PlayAnim /tmp/job13365814682286171450/upload/defold-rive/src/script_rive.cpp:57
    ERROR:CRASH: 9 0x7FF65B718ADE lj_BC_FUNCC <unknown>:0
    ERROR:CRASH: 10 0x7FF65B8B5A90 lua_pcall <unknown>:0
    ERROR:CRASH: 11 0x7FF65B8E7A60 dmScript::PCallInternal D:\a\defold\defold\engine\script\src\script.cpp:1401
    ERROR:CRASH: 12 0x7FF65B94B130 dmGameObject::RunScript D:\a\defold\defold\engine\gameobject\src\gameobject\comp_script.cpp:142
    ERROR:CRASH: 13 0x7FF65B9499D0 dmGameObject::CompScriptInit D:\a\defold\defold\engine\gameobject\src\gameobject\comp_script.cpp:183
    ERROR:CRASH: 14 0x7FF65B91C480 dmGameObject::InitComponents D:\a\defold\defold\engine\gameobject\src\gameobject\gameobject.cpp:1704
    ERROR:CRASH: 15 0x7FF65B918CE0 dmGameObject::InitCollection D:\a\defold\defold\engine\gameobject\src\gameobject\gameobject.cpp:1773
    ERROR:CRASH: 16 0x7FF65B9A4890 dmEngine::Init D:\a\defold\defold\engine\engine\src\engine.cpp:1348
    ERROR:CRASH: 17 0x7FF65B9A37D0 dmEngineCreate D:\a\defold\defold\engine\engine\src\engine.cpp:2160
    ERROR:CRASH: 18 0x7FF65B9A94F0 dmEngine::RunLoop D:\a\defold\defold\engine\engine\src\engine_loop.cpp:68
    ERROR:CRASH: 19 0x7FF65B8ABCB0 engine_main D:\a\defold\defold\engine\engine\src\engine_main.cpp:152
    ERROR:CRASH: 20 0x7FF65BC5B244 __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    ERROR:CRASH: 21 0x7FF8799C2560 BaseThreadInitThunk <unknown>:0
    ERROR:CRASH: 22 0x7FF87A34AA20 RtlUserThreadStart <unknown>:0
    ERROR:CRASH: Lua Callstack:
    ERROR:CRASH: main/start_rive.script:7: in function <main/start_rive.script:1>
    ERROR:CRASH:

```

which I’m unable to decypher…

I have a crash dump file also, but it’s binary and I have no idea how to open it.

The Rive model is rendering good in the editor however:

 ![immagine](https://forum-defold.b-cdn.net/uploads/default/original/3X/0/8/08bea152ab6b7d7174fa8be12894fc1b72d8c70e.png)

Any idea??  
Thanks!!!

Matteo

---

<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:** [June 7, 2024, 7:08pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/2 "2024-06-07T19:08:43Z")

</div>

Could you share the project? 🤔

---

<div class="post-metadata">

**Author:** ![Matteo\_Rosati](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/matteo_rosati/32/36291_2.png) [@Matteo\_Rosati](https://forum.defold.com/u/Matteo_Rosati)\
**Post date:** [June 7, 2024, 7:25pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/3 "2024-06-07T19:25:55Z")

</div>

ah sure! it’s indeed easier with the code 😃

[https://gitlab.com/mrosati/defold-rive-test](https://gitlab.com/mrosati/defold-rive-test)

Thanks

---

<div class="post-metadata">

**Author:** ![Matteo\_Rosati](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/matteo_rosati/32/36291_2.png) [@Matteo\_Rosati](https://forum.defold.com/u/Matteo_Rosati)\
**Post date:** [June 18, 2024, 12:32pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/4 "2024-06-18T12:32:32Z")

</div>

hey, did anyone have a chance to test this? I have tried also different versions of the extension, none seem to work, on both windows and mac os. The guide to include rive is incredibly easy, i don’t understand if i’m doing something wrong.

Consider that i get build error even if i build the project completely empty, with no rive scenes/models imported.

Are there dependencies i need to consider? like having a c++ compiler on the machine? a particular JVM version?

Am i the only one that is uncapable of getting this to run? 😃

---

<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:** [June 19, 2024, 12:00pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/5 "2024-06-19T12:00:15Z")

</div>

Hi, there was a small issue with the extension due to recent updates in the vulkan renderer, but I’ve now gotten it to work again with some smaller changes in the extension:

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/c/8/c8b2122dfc53785b232930fc7359760111e2e1f9.png)

NOTE: You need to use Defold 1.9.0+ together with the latest released version 2.3.1:  
[https://github.com/defold/extension-rive/archive/refs/tags/2.3.1.zip](https://github.com/defold/extension-rive/archive/refs/tags/2.3.1.zip)

To get 1.9.0, you can use the beta version of Defold or the latest alpha version of Defold (or wait until it has become a stable release)

---

<div class="post-metadata">

**Author:** ![Matteo\_Rosati](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/matteo_rosati/32/36291_2.png) [@Matteo\_Rosati](https://forum.defold.com/u/Matteo_Rosati)\
**Post date:** [June 24, 2024, 5:56pm UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/6 "2024-06-24T17:56:15Z")

</div>

That’s fantastic news Johnny! i’ll wait for 1.9.0 to become stable then, thank you!

---

<div class="post-metadata">

**Author:** ![Jack\_Smith](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jack_smith/32/22869_2.png) [@Jack\_Smith](https://forum.defold.com/u/Jack_Smith)\
**Post date:** [August 26, 2024, 7:41am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/7 "2024-08-26T07:41:01Z")

</div>

I have a very minimal Rive project (just for testing that I can get Rive/Defold to work).  
It builds and runs successfully with Defold 1.9.0 and Rive extension 2.3.1, but with 1.9.2 and 2.5.1 (currently the latest versions), the build gives:

 ![rive_error](https://forum-defold.b-cdn.net/uploads/default/original/3X/0/b/0b464ca95c756e959236d6bc510523e5cf9a5163.jpeg)

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 26, 2024, 8:13am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/8 "2024-08-26T08:13:57Z")

</div>

Thanks for the report!  
There’s a “\_crash.dmp” file you attach, that we can use for debugging.  
(Also, the screenshot does not contain the full callstack, which we cannot determine any info from)

---

<div class="post-metadata">

**Author:** ![Jack\_Smith](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jack_smith/32/22869_2.png) [@Jack\_Smith](https://forum.defold.com/u/Jack_Smith)\
**Post date:** [August 26, 2024, 9:06am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/9 "2024-08-26T09:06:03Z")

</div>

Sorry! Hope these are helpful. I couldn’t attach the “\_crash.dmp” file directly, so I opened it in Microsoft Visual Studio, and copied the summary to a txt file.  
[\_crash.txt](https://forum.defold.com/uploads/short-url/lrgOEL7heVpkj2br6sYAx9bhOXf.txt) (50.0 KB)  
[\_crash\_dump.txt](https://forum.defold.com/uploads/short-url/91TXiGGnjetC9NuyNVVGfWfHDV1.txt) (7.1 KB)  
[call\_stack.txt](https://forum.defold.com/uploads/short-url/qfEhoAtlCFd2ET36YPcd1YHOywj.txt) (8.0 KB)

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 26, 2024, 9:36am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/10 "2024-08-26T09:36:28Z")

</div>

> [@Jack\_Smith](#):
>
> I couldn’t attach the “\_crash.dmp” file directly

Well, it’s useful for us to have. Perhaps try renaming it or zipping it?

---

<div class="post-metadata">

**Author:** ![Jack\_Smith](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jack_smith/32/22869_2.png) [@Jack\_Smith](https://forum.defold.com/u/Jack_Smith)\
**Post date:** [August 26, 2024, 9:39am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/11 "2024-08-26T09:39:09Z")

</div>

I’ve just given it a txt extension to get round the forum limitation.  
[\_crash.dmp.txt](https://forum.defold.com/uploads/short-url/usYhcM2AgqKvLCrQFWLXKfONrPb.txt) (154.6 KB)

---

<div class="post-metadata">

**Author:** ![Jack\_Smith](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jack_smith/32/22869_2.png) [@Jack\_Smith](https://forum.defold.com/u/Jack_Smith)\
**Post date:** [August 27, 2024, 5:53am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/12 "2024-08-27T05:53:37Z")

</div>

Incidentally, I tried building the same project on a different PC (laptop). As before Defold 1.9.0 and Rive extension 2.3.1 worked fine, but 1.9.2 and 2.5.1 produced the same error that I noted before, plus an additional error that didn’t occur on my other PC, i.e.:

ERROR:ENGINE: Could not find ‘@render’ socket.

Here are the relevant diagnostic files:  
[\_crash.dmp.txt](https://forum.defold.com/uploads/short-url/2nxI9udA5BTriuWSfsLbBlKWHI2.txt) (170.0 KB)  
[\_crash.txt](https://forum.defold.com/uploads/short-url/2F2bzyhkE7DhLIB3i9a7l8ze23.txt) (50.0 KB)  
[call\_stack.txt](https://forum.defold.com/uploads/short-url/meZh20o3MabVZjEtzLvrTEkLIly.txt) (8.0 KB)

Please note that “\_crash.dmp.txt” and “\_crash.txt” are actually " “\_crash.dmp” and “\_crash” with a “.txt” extension tacked on the end, and “call\_stack.txt” is a cut-and-paste of the entire output displayed for the failed build in the console of the Defold editor.

---

<div class="post-metadata">

**Author:** ![xunye112](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/xunye112/32/39703_2.png) [@xunye112](https://forum.defold.com/u/xunye112)\
**Post date:** [May 14, 2025, 1:47am UTC](https://forum.defold.com/t/solved-error-executing-rive-animation/77155/13 "2025-05-14T01:47:58Z")

</div>

Hello moderator, could you share your project with me for reference? I have also encountered a problem, but I don’t know how to solve it
