I'm working on a school project with four others.
We're writing a game in C# and Monogame.
They pass around the source code without any problems, but I cannot run the program. I get this error on 1 out of 5 computers.
I've been researching, but can't seem to find an answer of how to fix this.
Visual studio gives the following error:
An unhandled exception of type 'SharpDX.SharpDXException' occurred in SharpDX.dll
Additional information: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: GPU-enhedsforekomsten er blevet suspenderet. Brug GetDeviceRemovedReason til at bestemme den relevante handling.
I have Nvidia SLI GT cards, and I'm afraid that's what's causing the problem.
I have no problem with other projects.
Edit:
Okay, after having solved this forever ago, and totally forgetting to write it here, here's what I recall I did:
The error was thrown because I was trying to use something outside of the bounds of the sprite sheet. Fixing that, fixed the issue. Weird how some cards react.
I guess you are right. The problem is caused by your graphic card:
here is a link which explains your error.
"DXGI_ERROR_DEVICE_REMOVED
0x887A0005
The video card has been physically removed from the system, or a driver upgrade for the video card has occurred. The application should destroy and recreate the device. For help debugging the problem, call ID3D10Device::GetDeviceRemovedReason."
I had the same issue. Figured this crap out after 2 hours. You have to go to your projects bin folder and delete all the .dll files with the word "Sharp" in it. Once thats done DO NOT build your code again, just run it. It should work.
If you build the code again, C# will generate the .dlls for you.
Let me know if you found any other better solution. Thanks
EDIT: You also have to copy all the files from the Bin of another working Monogame into the bin of your game. Sample game is found at https://farseerphysics.codeplex.com/downloads/get/722128.
Related
Whenever I attempt to open any Unity Template in order to create a new project, the importing process is interrupted by a compilation error, that prompts me to go into Safe Mode. Upon opening Safe Mode, I am confronted with 99 error messages, all in the style of
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\[myuser]\Library\Bee\artifacts\mvdfrm\Unity.VisualScripting.TextureAssets.dll_4E2F4234F69DBB7F.mvfrm'.
However, my project directory is not in that location. I have tried installing Unity on 3 different drives (2SSD, 1HDD; clean reinstall including deleting %appdata% files and Registry keys). I have also tried creating different projects (2D & 3D) in several locations. All with the same result. Copying a friends /artifacts/ directory did not solve the issue either. Upon closer inspection, I discovered that the files in question are indeed in the project\Bee\artifacts\ folder during the working installation/import and then disappear upon error message.
At this point I have tried reinstalls of Unity, UnityHub, several restarts and clean reinstalls. I tried reimporting Assets via Unity Menu, deleting singular folders in order to force a reimport, a manual reimport, manual editing of manifest.json, deleting and reinstalling packages via Package Manager all with the same result or lack thereof.
Version: 2021.3.6f1
OS: Windows 10 Build 19044.1826
I have worked successfully with Unity on this same PC before and no other programs have ever had any problems. At this point the problem just doesnt make any sense to me anymore, I appreciate every help I can get.
Thank you
EDIT: It appears to have been caused by Anaconda, which destroyed my entire primary drive during its deinstall. After fully resetting Windows and reinstalling virtually everything, Unity finally works.
However, I still dont know the exact cause of the problem, nor a solution that does not involve the nuclear option.
For educational purposes, one of our college subjects requires a project that integrates any instance of Prolog with any other GUI supportive language. I went with C# as I have the most experience with it.
I'm trying to learn by example of my fellow college colleagues from higher years. They gave me their repos to download their code and to see how it all comes together. And this is where the problems started.
No matter what I do, what tutorial I follow, what tips from other sources I apply, the error will not change: FileNotFoundException was unhandled: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in SwiPlCs.dll.
I've tried using SWI 32 bit/64 bit, VS 2015/2017 with 32/64 bit builds, redownloading the DLL as a nuget package. None of them seem to work.
InitializeComponent();
igra.popuniSlagalicu += igra_popuniSlagalicu;
igra.vratiOdgovor += igra_vratiOdgovor;
String[] param = { "-q" };
PlEngine.Initialize(param);
PlQuery.PlCall("use_module(sudoku)");
This is the first time I felt helpless and desperate while trying to debug code. Literally stuck on a single line for 5 days without any progress whatsoever.
The error is not very clear, but is caused by the fact that the program needs to know where to find the DLLs that run SWI-Prolog are located. There are a few ways to do this but the simplest is to add the directory (e.g. C:\Program Files\swipl\bin) containing the SWI-Prolog executable (swipl-win.exe) to the Windows system PATH variable.
After changing the system PATH variable you will need to restart Visual Studio if necessary.
I get the following error:
Severity Code Description Project File Line
Error Cannot open 'D:\Programming\SteamBot\SteamTrade\obj\Debug\SteamTrade.dll' for writing -- 'Access to the path 'D:\Programming\SteamBot\SteamTrade\obj\Debug\SteamTrade.dll' is denied.' SteamTrade D:\Programming\SteamBot\SteamTrade\CSC
I'm unable to compile the source with Visual Studio 2015 Community Edition on Windows 10.
After searching the internet the majority of the answer was to disable malware protection. I'm using Bitdefender Total Security 2016. First I tried to add an exception to the folder, after that even tried to disable the product, but still nothing. I can't get the project to build, failing with the same exact error.
Any idea?
Edit 1:
Still no idea. If I would be on Linux or on Drive C, I could imagine that I have actually no permission to write, but on Windows on drive D, there is no such thing. Today I'll be trying to compile it on a Virtual Machine to be sure that it's not my antivirus program. Still any suggestion is welcomed.
Alright, so after trying out everything I decided to try it on a virtual machine and it work from start. Then I tried it on a new source on my computer then it worked.
I was quite surprised why, so I removed the exception in the anti virus software, then it didn't work anymore. So I added the exception again, but it still didn't worked. So what I did next is downloaded the source in a new folder and added to the exception before I tried to build it then it worked.
Solution:
So the short answer is if you want to make it work, you get the source from git, then add it to the exception in your anti-virus software and only then you try to build it, because if you build it beforehand it won't work no matter what. This is probably related to Bitdefender Total Security 2016, but at least it started working.
i am currently facing a really weird and annoying error message after migrating my Xamarin.IOS - Project to the 64bit unified - API. The exact error message is:
/Users/falcowinkler/Dev/AHK_App -Kopie/AHK_App_iOS/../ahk_app_ios/resources/.DS_Store:
Error: The path '../ahk_app_ios/resources/.DS_Store' would result
in a file outside of the app bundle and cannot be used. (AHK_App_iOS).
I get that error not only for .DS_Store but also for two other files.
Here are the things i tried.
Clean / Rebuild
delete bin / obj Folder and rebuild
I deleted the files that throw the error, just to get another message that the project is missing these files. I added them again after that, and got the same error as above again
I tried moving my project to other locations, but the error does not change in the slightest.
I tried to remove all problematic files, before migrating, which didn't work as well.
Does anybody know where all the file references are stored in Xamarin, so i can view/edit them to find out what the error is?
I mean the DS_Store file is just a tiny file from mac - finder architecture, is not even necessary for my project, but still it is referencing it, i will just have to kick out these references i guess.
If anybody encountered these issues as well, and has a solution, pls leave a quick post here, thanks :)
Update
I am now pretty sure that there are some misplaced references to files in my project, i saw a similar issue on git hub. But how can i wipe them out? I tried removing my entire resources Folder and adding it again, but it didn't help either. Error message now looks as follows:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:
Error: Bundle Resource '../ahk_app_ios/resources/.DS_Store'
not found on disk (should be at '/Users/falcowinkler/Documents/AHKKopie/ahk_app_ios/resources/.DS_Store') (AHK_App_iOS)
If anyone else has this problem, just search your project files for the filename. The .csproj File will appear, where you will be able to wipe out the reference to the file, causing the problem.
If you are using Xamarin Studio, you can delete the .DS_Store under your Ios project [ProjectName.iOS] under the Resources folder
Recently I wrote a small winForm program using C# language. In the app I use C# to invoke a "*.dll" file written in C++. It works all right in my Visual Studio 2012 and on my computer, but when I move it to other computer, it always pops an error about “ Unable to load DLL ' *.dll',can not find specified module.(Exception from HRESULT: 0x8007007E). ”.
I've searched the internet for solution. There are also some similar questions regarding problems that others met and it seems that they also have not found the right solution yet. I also tried some methods like moving my '*.dll' file to windows\system32 or write the app current directory to System Enviroment Variable, but this also didn't work.
Now I really don't know how to deal with it. So I'll be very appreciative if someone could give some help.
I'm new here and thanks very much.
Pretty old post but shows up first in Google so I am gonna post my solution to the issue: I was writing a minimal DLL in C++ which I integrated in a minimal C# console application and got the same error that you stated above. The final fix is simple: Your target PC might not have the appropriate VS redistributable package installed. In my case (VS 2013) it was this one here: http://www.microsoft.com/en-us/download/details.aspx?id=40784 for some reason it does not work to copy the required DLLs from the system32 folder manually... what a freak bug taking me half a day to find out. I did not find this anywhere online, will do some cross-posting now...