microdee / Uranium

Fast and versatile implementation of CEF for Unreal Engine
MIT License
64 stars 6 forks source link

window size changes bug #4

Open N3GIS opened 3 years ago

N3GIS commented 3 years ago

【bug】When the window size changes, the plug-in causes the program to exit. Is there time to fix it

microdee commented 3 years ago

can you please provide a stack trace as well? I didn't have issues with resizing so far.

N3GIS commented 3 years ago

tes

LoginId:035a37c44fc79ddcc131909dc5a69406 EpicAccountId:7e47ef6e459b477db3d54ab7fc7991bd

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp] [Line: 198] Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0006 - 'HUNG')

UE4Editor_D3D11RHI UE4Editor_D3D11RHI UE4Editor_D3D11RHI UE4Editor_D3D11RHI UE4Editor_D3D11RHI UE4Editor_RHI UE4Editor_RenderCore UE4Editor_RenderCore UE4Editor_RenderCore UE4Editor_RenderCore UE4Editor_Engine UE4Editor_Engine UE4Editor_Engine UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_SlateCore UE4Editor_Slate UE4Editor_Slate UE4Editor_Slate UE4Editor_Slate UE4Editor_Slate UE4Editor UE4Editor UE4Editor UE4Editor UE4Editor UE4Editor kernel32 ntdll

microdee commented 3 years ago

I see well thanks for the gif and the info. I'll test it myself further. Unfortunately tho I cannot give you a direct fix for this repo as I'm working on an internal version of Uranium of which is wildly different now than the public version. At one point when the API and some platform specific shenanigans stabilize a bit, I will push back the changes as one bulk to public. The entire base architecture has been re-written/re-structured so expect big breaking changes. If you'd need this in production with a tight deadline I'd strongly suggest to either avoid Uranium until I push those changes, or familiarize yourself with the current inner workings of this plugin and CEF itself.

N3GIS commented 3 years ago

Hello, do you plan to release a version this year. Your plugin is great, we can develop maintenance together.

N3GIS commented 3 years ago

Hello, do you plan to release a version this year. Your plugin is great, we can develop maintenance together.

microdee commented 2 years ago

After a long time finally I arrived to do a backmerge. The code is last touched internally in september, and provided as-is. It should fix this crash. Until we won't pick up the browser internally again, I cannot provide interactive support, and you're left to your own devices and the scarce documentation to figure out problems. Anyway here's an architectural overview exported from our internal docs https://github.com/microdee/Uranium/blob/main/Docs/Manual/Architecture%20for%20developers.pdf

N3GIS commented 2 years ago

First of all, this is a great plugin, and the performance is absolutely better than the engine default. At the same time, I tried the current version, which is really much improved than the previous version. If I have time, I cut a branch, add the interface transparent, plug-in and engine communication function, so that I can use the plugin to do UI.

microdee commented 2 years ago

I have plans already how to do javascript interop with Unreal's reflection provided a shared UObject for the UBrowserView. CEF also has a very powerful JS interop mechanism with an included IPC messaging system.

Also be prepared that there will be a major refactor again to support multiple HTML rendering backends (only CEF remains public) and in that process the handler object façade (CEF interface, Uranium interface, Events object) will become more elegant and less cluttered (just look at the UrCefHandler.h those macros will go away most probably)