Uranium icon indicating copy to clipboard operation
Uranium copied to clipboard

UraniumCefProcess.exe is being used by another process.

Open NickTsaizer opened this issue 2 years ago • 1 comments

Unable to instantiate module 'CefCommon': System.IO.IOException: The process cannot access the file '...\Binaries\Win64\UraniumCefProcess.exe' because it is being used by another process.

What i can do with it? I'm trying to package my project and it happened.

PS: no, i killed CefProcess before packaging and it not helped.

NickTsaizer avatar Jul 25 '22 15:07 NickTsaizer

HI there, I have a couple solutions for this issue. I also realized that killing the process from Task Manager will not work. So I successfully managed to Package using the Command Line. But that's not very practical. But it works. Anyway, the second solution was a bit more intensive but it's a lot nicer. I created another Module in the Uranium source folder named "UraniumEditor" and tied it to the Plugin.. so in essence the Uranium Plugin now has 4 Modules.. anyway - I created a Toolbar Extension with a button that upon clicking gets a reference to the process and kills it. Then I can package successfully from within the Editor.. The only caveat to this at this point is that if you try to PIE and you have assets that depend on the CEFProcess.. then it will crash the Editor - I've spent time trying to Reinitialize the SubProcess in case the user wants to do so after packaging.. but all i get is "CEF Initialialized" and then crashes the engine.. I'll have to look into this further.. Unless someone here can shed some light on this.. I will gladly share the report, seems to be happening in the "MessageLoop()". Anyway, you could easily get around this if you just restart the Editor after Shutting down the CEFProcess and Packaging. I'll include a shot of the button and the output before and after shutting the CEF down. CefShutDown

davidgbarron avatar Jul 20 '23 21:07 davidgbarron