rive-app / rive-unity-examples

A collection of examples using Rive Unity
16 stars 1 forks source link

Unity editor crashes on opening 'getting-started' DrawToCubeScene' #6

Open jorrit-de-vries opened 7 months ago

jorrit-de-vries commented 7 months ago

The last lines are the following:

--> UNITY INIT GRAPHICS EVENT
--> UNITY PROCESS DEVICE EVENT
..\..\..\pls\renderer\d3d\pls_render_context_d3d_impl.cpp:78: D3D error 0x80070057: gpu->CreateUnorderedAccessView(tex, &uavDesc, uav.GetAddressOf())
jorrit-de-vries commented 7 months ago

The ship-fui-3d project crashes in the editor when entering play mode with the following lines at the end of the log:

--> UNITY INIT GRAPHICS EVENT
--> UNITY PROCESS DEVICE EVENT
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate (Cylinder: OnMeshFilterChanged)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Rive.FuiCylinder:buildMesh () (at Assets/FuiCylinder.cs:127)
Rive.FuiCylinder:OnValidate () (at Assets/FuiCylinder.cs:40)

[Assets/FuiCylinder.cs line 127]

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate (Reflected Cylinder: OnMeshFilterChanged)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Rive.FuiCylinder:buildMesh () (at Assets/FuiCylinder.cs:127)
Rive.FuiCylinder:OnValidate () (at Assets/FuiCylinder.cs:40)

[Assets/FuiCylinder.cs line 127]

Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize:            1.185 ms
    Integration:            92.921 ms
    Integration of assets:  0.016 ms
    Thread Wait Time:       -0.006 ms
    Total Operation Time:   94.116 ms
..\..\..\pls\renderer\d3d\pls_render_context_d3d_impl.cpp:78: D3D error 0x80070057: gpu->CreateUnorderedAccessView(tex, &uavDesc, uav.GetAddressOf())
jorrit-de-vries commented 7 months ago

The visr-fui crashes the editor when entering play mode with these lines in the editor log:

--> UNITY INIT GRAPHICS EVENT
--> UNITY PROCESS DEVICE EVENT
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate (VisorMesh: OnMeshFilterChanged)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Rive.FuiHudMesh:buildMesh () (at Assets/Scripts/FuiHudMesh.cs:127)
Rive.FuiHudMesh:OnValidate () (at Assets/Scripts/FuiHudMesh.cs:40)

[Assets/Scripts/FuiHudMesh.cs line 127]

Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize:            1.239 ms
    Integration:            97.343 ms
    Integration of assets:  0.013 ms
    Thread Wait Time:       0.006 ms
    Total Operation Time:   98.601 ms
StateMachine exceeded max iterations.
..\..\..\pls\renderer\d3d\pls_render_context_d3d_impl.cpp:78: D3D error 0x80070057: gpu->CreateUnorderedAccessView(tex, &uavDesc, uav.GetAddressOf())
zplata commented 7 months ago

Hi @jorrit-de-vries - thanks for reporting! We noticed this issue recently for d3d11 and are working on addressing this check for unordered access views. In the meantime, you can try this with OpenGL while this is being addressed in a patch tag: https://help.rive.app/game-runtimes/unity/getting-started#installation

luigi-rosso commented 7 months ago

What GPU are you using @jorrit-de-vries? It seems like it doesn't support a feature we currently require on D3D11. We have a short-term patch which will warn you of this condition (and not crash) and another slightly longer one which will remove the requirement (so the Rive Renderer will work without rasterizer order views). Like @zplata mentioned, please try the OpenGL Core backend in the meantime.

jorrit-de-vries commented 7 months ago

I'm using an Nvidia RTX 2070 Super with pretty recent drivers (546.01). I'll give OpenGL a go today.

BitBarrel commented 7 months ago

Same problem here. Using a GeForce RTX 3060 on a laptop.

When I change to OpenGL Core, it crashes even when I change scenes. It also crashes when entering Play mode.

Edit: With version 0.1.22, the Unity Editor crashes when selecting any of the 3 scenes. However, with the Basic-test scene included in the package itself, the Editor doesn't crash.

BitBarrel commented 7 months ago

@jorrit-de-vries Is is adding the Rive package via the package manager working for you?

Saurabh7SSR commented 7 months ago

@BitBarrel rive package install via package manager solved by @HayesGordon

Can you try adding the rive package from the HTTP URL instead: https://github.com/rive-app/rive-unity.git?path=package#v0.1.29

there are two way to install package via name or url.

BitBarrel commented 7 months ago

Using that link it works, thanks. Please update the readme, also please add to the readme where to find the latest version:

https://github.com/rive-app/rive-unity/tags

HayesGordon commented 7 months ago

Hi @BitBarrel , we'll update the readme with this info! Also, be sure to check out the Rive Unity Help Docs that provide more information.

You can also take a look at these links if you want to resolve the problem you had to pull the package via ssh: