Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jorrit-de-vries opened this issue Nov 17, 2023 · 10 comments

Comments

@jorrit-de-vries
Copy link

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
Copy link
Author

jorrit-de-vries commented Nov 17, 2023

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
Copy link
Author

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
Copy link
Contributor

zplata commented Nov 17, 2023

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
Copy link
Contributor

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
Copy link
Author

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

@BitBarrel
Copy link

BitBarrel commented Nov 20, 2023

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
Copy link

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

@Saurabh7SSR
Copy link

@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
Copy link

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
Copy link
Contributor

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants