I'm attempting to use a Mono wrapper for CEF (CefGlue) to embed a chrome browser as a texture for use with Unity UI.
The code was built in VS targeting Unity .net 3.5 full base where it works without issue.
Most of the code has been compiled in to a dll. The only thing I'm doing in Unity is instantiating, adding a listener for the render event, and calling the main method of a windowless renderer.
I have replicated these three lines in a console application that also targets the same implementation and that works without issue as well.
CefInstance test = new CefInstance();
test.RenderHandlerOnPainted += test_RenderHandlerOnPainted;
test.Run();
Whenever I try to run it in Unity, I get an immediate crash. They seem to be consistently Access Violations. I've seen Unknown Module mostly, libcef.dll fairly often, and I've also seen mono.dll. It seems to be Unknown when I run without being attached to a debugger, and libcef.dll when I run attached to VS.
Unfortunately, there is no stack trace available in the Editor log.
========== OUTPUTING STACK TRACE ==================
RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
========== END OF STACKTRACE ===========
When the error is 'Module unknown', this segment appears in the error log of the crash
0x005fbd98: 6f726800 2f3a656d 6e61682f 00000067 .hrome://hang...
0x005fbda8: 00000000 00000000 0000000f 00000000 ................
0x005fbdb8: 6f726800 2f3a656d 6c696b2f 0000006c .hrome://kill...
0x005fbdc8: 00000000 00000000 0000000f 00000000 ................
0x005fbdd8: 0267d700 00000000 000000d6 00000000 ..g.............
0x005fbde8: 00000000 00000000 0000000f 00000000 ................
0x005fbdf8: 0267d200 00000000 2104c040 00000000 ..g.....@..!....
0x005fbe08: 00000000 00000000 0000000f 00000000 ................
0x005fbe18: 6f726863 2f3a656d 6172632f 00006873 chrome://crash..
Which would suggest again that this is directly related to libcef.
The project that I'm attempting to run is empty with the exception of this script and a single RawImage to minimize the variables involved.
Does anyone have a thought as to what might be causing the issue or how I might attempt to figure it out myself?
So far I've attempted debugging, but it is not consistent in the way that it fails, and often it will just exit the debug with code 0 (0x0).
↧