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

ArgumentNullException AssetsService.Load[T](Guid id, Boolean forceNewInstance) #6

Open
MSU-PV opened this issue Dec 28, 2022 · 0 comments

Comments

@MSU-PV
Copy link

MSU-PV commented Dec 28, 2022

Hi,
I ran into a problem when I wanted to try out the sample application
"Any CPU" + "Local Machine"
Evergine.MRTK.Demo.UWP.MixedReality
https://github.com/EvergineTeam/MixedRealityToolkit/tree/master/Samples/Evergine.MRTK.Demo
Evergine.MRTK.Demo.UWP.MixedReality.sln
Visual Studio 2022 Enterprise
Windows 11

  1. Build failed:
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error : InvalidOperationException: Create MSDF font data failed: C:/Users/(MyProfile)/.evergine/packages/Evergine.Core/2022.9.28.1/Content/Fonts/Arial.ttf ExitCode: 1
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at Evergine.Assets.Exporters.FontExporter.GenerateMSDFAtlasAndData(String fontPath, String fontDirectory, String fontName, String charsetFileName, Int32 glyphSize) in C:\azp\agent\_work\3\s\src\Engine\Common\Evergine.Assets\Exporters\Font\FontExporter.cs:line 81
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at Evergine.Assets.Exporters.FontExporter.<>c__DisplayClass2_0.<GenerateAssetParts>b__0() in C:\azp\agent\_work\3\s\src\Engine\Common\Evergine.Assets\Exporters\Font\FontExporter.cs:line 58
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Threading.Tasks.Task.Execute()
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error : --- End of stack trace from previous location where exception was thrown ---
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at Evergine.Assets.Exporters.FontExporter.<GenerateAssetParts>d__2.MoveNext() in C:\azp\agent\_work\3\s\src\Engine\Common\Evergine.Assets\Exporters\Font\FontExporter.cs:line 75
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error : --- End of stack trace from previous location where exception was thrown ---
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at Evergine.Assets.Exporters.AssetExporter`2.<ExportOutputFile>d__1.MoveNext() in C:\azp\agent\_work\3\s\src\Engine\Common\Evergine.Assets\Exporters\AssetExporter`2.cs:line 36
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error : --- End of stack trace from previous location where exception was thrown ---
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error :    at Evergine.Assets.Exporters.BaseAssetExporter`2.<BaseExport>d__3.MoveNext() in C:\azp\agent\_work\3\s\src\Engine\Common\Evergine.Assets\Exporters\BaseAssetExporter`2.cs:line 65
C:\Users\(MyProfile)\.evergine\packages\Evergine.Core\2022.9.28.1\Content\Fonts\Arial.ttf.weft : error : 

Build can be fixed by the update all NuGet Packages Evergine.* from 2022.9.28.1 to 2022.9.28.6 and Microsoft.NETCore.UniversalWindowsPlatform from 6.2.10 to 6.2.14.

  1. Application failed with ArgumentException:

Delegate to an instance method cannot have null 'this'.

   at System.MulticastDelegate.ThrowNullThisInDelegateToInstance()
   at Evergine.MixedReality.MixedRealityPlatform.OnAttached()
   at Evergine.Framework.AttachableObject.Attach()
   at Evergine.Framework.Services.ServiceInterceptor.InitializeServices()
   at Evergine.Framework.Application.Initialize()
   at Evergine.MRTK.Demo.MyApplication.Initialize() in d:\GitHub\MSU-PV\MixedRealityToolkit\Samples\Evergine.MRTK.Demo\Evergine.MRTK.Demo\MyApplication.cs:line 35

When running as "ARM" + "Device" it works on HoloLens 2.
There can be added the message when starting on a different platform.
(System.Environment.GetEnvironmentVariables()["PROCESSOR_ARCHITECTURE"] == "ARM") etc.

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

1 participant