Closed Proaxel closed 5 years ago
Thanks for already finding out the cause of the issues. igfxEM.exe
is part of Intel's graphics driver suite. Other people were having similar issues, see this discussion on intel forums and this discussion on Subnautica forums.
It does not appear there is an easy fix, but we can try to guard the IO calls so it doesn't crash and gives you an error popup with a more helpful message instead.
Installing the driver linked on the Intel forum seems to have fixed it. Thanks!
There seems to be another issue though, although it is not as crippling. You know how recently uninstalled mods still show up as "Not Installed" if you set the launcher to show hidden mods? If you try to get rid of these mods by right-clicking on them and selecting Delete/Unsubscribe, it causes this exception (but you can hit continue and the launcher will still work).
************** Exception Text **************
System.IO.IOException: The directory is not empty.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at XCOM2Launcher.Forms.MainForm.DeleteMods()
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at BrightIdeasSoftware.ObjectListView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This is probably related, since it popped up after the launcher decided not to detect all of my WIP/dev files for mods:
Sequence contains more than one matching element
Stack:
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at XCOM2Launcher.Mod.ModList.Import(String modDir, ModSource source)
at XCOM2Launcher.Mod.ModList.ImportMods(String dir)
at XCOM2Launcher.Settings.ImportMods()
at XCOM2Launcher.Program.InitializeSettings()
at XCOM2Launcher.Program.Main()
What happens is, when you unsubscribe to a mod through clicking Unsubscribe on the workshop page, then open the launcher, the "These mods no longer exist and have been hidden" message comes up, then when you hit continue, the "an exception occurred, see error.log for details" message comes up.
In this case, I uninstalled the mod "Mod Everything" and tried to open the launcher and here is the error.log:
In order to get the launcher to work again, I had to go and delete the offending folder with Lockhunter. Lockhunter shows says that the process preventing access to the file is "igfxEM.exe". Once I deleted it the launcher worked again.
However, the mod still shows up in the Launcher if you set it to show hidden mods, under a "Not Installed" section. If you select the mod entry, the launcher immediately closes with this exception:
I delete that folder with Lockhunter. It shows the same process locking it. I open the launcher again and right click on the mod and hit Delete/Unsubscribe. This exception occurs, but the launcher still works if you hit Continue and the mod entry is removed.
What is causing these weird glitches? What is this "igfxEM.exe" and why is it locking the launcher out of accessing these uninstalled files?