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

AssetNotFoundException thrown by SharpDX.Toolkit.dll for Arial24 #1

Open
damianperera opened this issue Oct 28, 2016 · 7 comments
Open

Comments

@damianperera
Copy link

An AssetNotFoundExecption is thrown by the SharpDX.Toolkit.dll for the Arial24 font that is loaded in the TweakableManager (line 167).

The Content folder and the Arial24.xml file is present in the Project Structure, however a Arial24.bmp file is not created during the build process, which might be the reason the Toolkit throws the exception.

Find below the output from the Debug process.

The thread 0x17dc has exited with code 0 (0x0).
The thread 0x28b4 has exited with code 0 (0x0).
Exception thrown: 'SharpDX.Toolkit.Content.AssetNotFoundException' in SharpDX.Toolkit.dll
The thread 0x1064 has exited with code 0 (0x0).
The thread 0xb34 has exited with code 0 (0x0).
Fatal exception occured
   at SharpDX.Toolkit.Content.ContentManager.FindStream(String assetName)
   at SharpDX.Toolkit.Content.ContentManager.Load(Type assetType, String assetName, Object options)
   at SharpDX.Toolkit.Content.ContentManager.Load[T](String assetName, Object options)
   at HolographicStudio.Tweakables.TweakableManager.LoadContent() in E:\Projects\Mixed Reality\Holographic Studio\HolographicStudio\Tweakables\TweakableManager.cs:line 167
   at SharpDX.Toolkit.Game.LoadContentSystems()
   at SharpDX.Toolkit.Game.LoadContent()
   at HolographicStudio.HoloStudio.LoadContent() in E:\Projects\Mixed Reality\Holographic Studio\HolographicStudio\HoloStudio.cs:line 134
   at SharpDX.Toolkit.Game.InitializeBeforeRun()
   at SharpDX.Toolkit.GameWindowDesktop.RunRenderLoop()
   at SharpDX.Toolkit.Game.Run(GameContext gameContext)
   at HolographicStudio.Program.Main() in E:\Projects\Mixed Reality\Holographic Studio\HolographicStudio\Program.cs:line 28
The program '[10924] HolographicStudio.vshost.exe' has exited with code 0 (0x0).
@rolandsmeenk
Copy link
Owner

The Arial24.xml has a build action "ToolkitFont" that generates a .tkb file in the output folder. Do you have a Arial24.tkb file in the debug/Content or release/Content folder after building?

@damianperera
Copy link
Author

damianperera commented Oct 28, 2016

The output folder (HolographicStudio\bin\Debug) does not have a Content folder in it, and a Arial24.tkb file is not generated as well.

@rolandsmeenk
Copy link
Owner

Hmm, are there any .tkb files generated in the obj/Debug/Content or object/Release/Content folders?

@damianperera
Copy link
Author

There isn't a Content folder inside obj/Debug. Please find attached a screenshot of the respective folder.

capture

@rolandsmeenk
Copy link
Owner

Ok, looks like the Custom Build Actions are not functioning. These build actions are defined in the SharpDX.Toolkit.targets file that is referenced in the HolographicStudio.csproj project file. Is your project file modified?

@damianperera
Copy link
Author

It seems so. Might I ask what version of Visual Studio are you using? And how exactly is this project configured to build? It is missing a VS solution file.

@rolandsmeenk
Copy link
Owner

I am using Visual Studio 2015. Yes, I noticed that I did not add a
solution. Probably because it also includes my version of the
ProCamEnsembleCalibrationLib project (which basically contains is in the PR
for RoomAliveTk)
I just added the solution. :) You will have to manually refer it to
the ProCamEnsembleCalibrationLib assembly it needs to use. To build that I
am using my fork of the RoomAlive TK.

On Mon, Oct 31, 2016 at 12:59 PM, Damian Perera notifications@github.com
wrote:

It seems so. Might I ask what version of Visual Studio are you using? And
how exactly is this project configured to build? It is missing a VS
solution file.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdUPFwZ9NY-7gVZCQo1bgI-3JhZsH_8ks5q5dgYgaJpZM4KjDvC
.

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

2 participants