Uranium icon indicating copy to clipboard operation
Uranium copied to clipboard

window size changes bug

Open N3GIS opened this issue 3 years ago • 8 comments

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

N3GIS avatar Sep 01 '21 07:09 N3GIS

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

microdee avatar Sep 01 '21 09:09 microdee

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

N3GIS avatar Sep 01 '21 09:09 N3GIS

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.

microdee avatar Sep 01 '21 10:09 microdee

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

N3GIS avatar Sep 23 '21 09:09 N3GIS

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

N3GIS avatar Sep 23 '21 09:09 N3GIS

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

microdee avatar Dec 17 '21 19:12 microdee

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.

N3GIS avatar Dec 27 '21 04:12 N3GIS

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)

microdee avatar Dec 27 '21 14:12 microdee