You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make a magic leap project work, with mrtk 2.8 and the gltfast package.
Thing is, every time I load a .glb asset, unity crashes and I can't find why in the logs (accessing denied memory it seems but that doesnt help).
Mind this is an upgrade of a unity 2021.3.25f1 Built-In RP project.
It seems to happen around line n°2652 of GLTFImport.cs :
var txt = new Texture2D(
4, 4,
forceSampleLinear
? GraphicsFormat.R8G8B8A8_UNorm
: GraphicsFormat.R8G8B8A8_SRGB,
textureCreationFlags
)
{
anisoLevel = m_Settings.AnisotropicFilterLevel,
name = GetImageName(img, index)
};
This same script with same object worked fine on the old project.
To Reproduce
Steps to reproduce the behavior:
Play the project
Click on an object in the panel that shows up
crash
I can't provide the project, but can provide a video showing what's happening in both unity and VS. Mind that the errors you see are not fatal and aren't linked to this issue.
I've had the same issues and managed through trial and error figure out it's related to Magic Leaps change of graphics API to OpenGLCore for windows (which seems to be used by the simulator). I have issues with importing MRTK3 (same thing, crashing on load of GLB assets), but if I remove OpenGLCore as graphics api (or just set to automatic) it imports fine and changing it back will not cause a re-import. This works for me as I am not trying to import during runtime, and I assume the simulator needs OpenGLCore to run.
I've had the same issues and managed through trial and error figure out it's related to Magic Leaps change of graphics API to OpenGLCore for windows (which seems to be used by the simulator). I have issues with importing MRTK3 (same thing, crashing on load of GLB assets), but if I remove OpenGLCore as graphics api (or just set to automatic) it imports fine and changing it back will not cause a re-import. This works for me as I am not trying to import during runtime, and I assume the simulator needs OpenGLCore to run.
Thanks ! Replacing this OpenGLCore by Vulkan in windows graphics API prevents the crash.
Hi,
I am trying to make a magic leap project work, with mrtk 2.8 and the gltfast package.
Thing is, every time I load a .glb asset, unity crashes and I can't find why in the logs (accessing denied memory it seems but that doesnt help).
Mind this is an upgrade of a unity 2021.3.25f1 Built-In RP project.
It seems to happen around line n°2652 of GLTFImport.cs :
This same script with same object worked fine on the old project.
To Reproduce
Steps to reproduce the behavior:
Play the project
Click on an object in the panel that shows up
crash
I can't provide the project, but can provide a video showing what's happening in both unity and VS. Mind that the errors you see are not fatal and aren't linked to this issue.
Expected behavior
Intented model appears.
Screenshots
https://github.com/atteneder/glTFast/assets/22128247/4bf0d67f-5fc2-4f23-98f0-c1c04960e62b
https://github.com/atteneder/glTFast/assets/22128247/6902fb60-349c-4ab4-9d76-26616a14cd2d
Desktop (please complete the following information):
Editor.log
The text was updated successfully, but these errors were encountered: